diff options
author | Christopher R. Nelson <christopher.nelson@languidnights.com> | 2024-01-20 20:49:52 -0500 |
---|---|---|
committer | Christopher R. Nelson <christopher.nelson@languidnights.com> | 2024-01-20 20:49:52 -0500 |
commit | 93363b78285f826745e8533c7d716498b0c50d82 (patch) | |
tree | 0432a9454ac7908be6cd96a4730d00e189ab65b7 | |
parent | 8c9002cf75f4e82f5dd87a2601d02983dd3e5f7d (diff) |
sway-contrib: additional useful scripts for swaywm
-rw-r--r-- | crn/packages/patches/sway-contrib-python.patch | 26 | ||||
-rw-r--r-- | crn/packages/wm.scm | 39 |
2 files changed, 48 insertions, 17 deletions
diff --git a/crn/packages/patches/sway-contrib-python.patch b/crn/packages/patches/sway-contrib-python.patch index 78f8f0b..ff4f344 100644 --- a/crn/packages/patches/sway-contrib-python.patch +++ b/crn/packages/patches/sway-contrib-python.patch @@ -1,18 +1,10 @@ -diff --unified a/contrib/autoname-workspaces.py b/contrib/autoname-workspaces.py ---- a/contrib/autoname-workspaces.py 2023-05-13 13:02:45.738991799 -0400 -+++ b/contrib/autoname-workspaces.py 2023-05-13 13:04:08.494950048 -0400 -@@ -1,4 +1,4 @@ --#!/usr/bin/python +diff --git a/firefox-focus-monitor.py b/firefox-focus-monitor.py +old mode 100644 +new mode 100755 +index d2a2d42..659b893 +--- a/firefox-focus-monitor.py ++++ b/firefox-focus-monitor.py +@@ -1,2 +1,3 @@ +#!/usr/bin/env python3 - - # This script requires i3ipc-python package (install it from a system package manager - # or pip). -diff --unified a/contrib/inactive-windows-transparency.py b/contrib/inactive-windows-transparency.py ---- a/contrib/inactive-windows-transparency.py 2023-05-13 12:52:44.367358344 -0400 -+++ b/contrib/inactive-windows-transparency.py 2023-05-13 12:29:43.700170305 -0400 -@@ -1,4 +1,4 @@ --#!/usr/bin/python -+#!/usr/bin/env python3 - - # This script requires i3ipc-python package (install it from a system package manager - # or pip). + """ + Utility to selectively disable keypresses to specific windows. diff --git a/crn/packages/wm.scm b/crn/packages/wm.scm new file mode 100644 index 0000000..21a13fc --- /dev/null +++ b/crn/packages/wm.scm @@ -0,0 +1,39 @@ +(define-module (crn packages wm) + #:use-module (crn packages) + #:use-module (gnu packages wm) + #:use-module (gnu packages image) + #:use-module (gnu packages python) + #:use-module (gnu packages python-xyz) + #:use-module (gnu packages web) + #:use-module (guix build-system copy) + #:use-module (guix git-download) + #:use-module (guix gexp) + #:use-module (guix packages) + #:use-module ((guix licenses) #:prefix licenses:)) + +(define-public sway-contrib + (package + (name "sway-contrib") + (version "0.0.0-2024.01.20") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/OctopusET/sway-contrib") + (commit "b7825b2"))) + (file-name (git-file-name name version)) + (sha256 + (base32 "16fa8l81zjy25nsky1i525hb7zjprqz74mbirm9b76pvksschdv5")) + (patches (crn/search-patches "sway-contrib-python.patch")))) + (build-system copy-build-system) + (arguments + '(#:install-plan + '(("." "bin" #:include (".py")) + ("." "bin" #:include ("grimshot")) + ("." "man" #:include ("grimshot.1"))))) + (inputs (list sway python-wrapper)) + (propagated-inputs (list python-i3ipc jq grim)) + (home-page "https://github.com/OctopusET/sway-contrib") + (synopsis "A collection of user-contributed scripts for sway") + (description "Sway-Contrib is a community-driven effort to share and showcase various user-created configurations, scripts, themes, and other resources that enhance and help the Sway experience.") + (license licenses:expat))) |