summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2019-10-04 22:04:28 +0200
committerAlan Pearce2019-10-04 22:04:28 +0200
commitf261abcfbd6f3b2e635e554e2a50331ad9e3f577 (patch)
treef86883495de8e2c50677bd05e0204c6a217982b7
parentc729b723076fa4e0c3112ab7d4a48a4a59c77948 (diff)
downloadnixfiles-f261abcfbd6f3b2e635e554e2a50331ad9e3f577.tar.lz
nixfiles-f261abcfbd6f3b2e635e554e2a50331ad9e3f577.tar.zst
nixfiles-f261abcfbd6f3b2e635e554e2a50331ad9e3f577.zip
Inline sxhkd config
-rw-r--r--user/modules/sxhkd.nix29
-rw-r--r--user/sxhkd/.config/sxhkd/sxhkdrc29
2 files changed, 25 insertions, 33 deletions
diff --git a/user/modules/sxhkd.nix b/user/modules/sxhkd.nix
index 47a5b5fc..7160ec08 100644
--- a/user/modules/sxhkd.nix
+++ b/user/modules/sxhkd.nix
@@ -1,8 +1,29 @@
 { config, pkgs, ... }:
 
 {
-  xdg.configFile.sxhkd = {
-    recursive = true;
-    source = ../sxhkd/.config/sxhkd;
-  };
+  xdg.configFile."sxhkd/sxhkdrc".text = ''
+    XF86AudioMute
+      pamixer --toggle-mute
+
+    XF86Audio{Lower,Raise}Volume
+      pamixer --{decrease,increase} 1
+
+    @XF86AudioMicMute
+      pamixer --source 2 --toggle-mute
+
+    XF86MonBrightness{Down,Up}
+      light -{U,A} 2%
+
+    XF86Display
+      disper -C
+
+    XF86AudioPlay
+      cmus-remote --pause
+
+    XF86Audio{Prev,Next}
+      cmus-remote --{prev,next}
+
+    XF86Tools
+      networkmanager_dmenu
+  '';
 }
diff --git a/user/sxhkd/.config/sxhkd/sxhkdrc b/user/sxhkd/.config/sxhkd/sxhkdrc
deleted file mode 100644
index 35179e9d..00000000
--- a/user/sxhkd/.config/sxhkd/sxhkdrc
+++ /dev/null
@@ -1,29 +0,0 @@
-XF86AudioMute
-  pamixer --toggle-mute
-
-XF86Audio{Lower,Raise}Volume
-  pamixer --{decrease,increase} 1
-
-@XF86AudioMicMute
-  pamixer --source 2 --toggle-mute
-
-XF86MonBrightness{Down,Up}
-  light -{U,A} 2%
-
-XF86Display
-  disper -C
-
-XF86AudioPlay
-  cmus-remote --pause
-
-XF86Audio{Prev,Next}
-  cmus-remote --{prev,next}
-
-# XF86WLAN
-
-XF86Tools
-  networkmanager_dmenu
-
-# XF86Search
-# XF86LaunchA
-# XF86Explorer
\ No newline at end of file