about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2020-09-21 10:47:16 +0200
committerPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2020-09-21 10:54:20 +0200
commitc856ece9e407433bfe1e6952873d99df75cd51f5 (patch)
tree472e906078a6545b6e4a61c3361a91d5580d716b /pkgs
parent615680844198513bd7fdded72c433741ed4cd433 (diff)
downloadpnpkgs-c856ece9e407433bfe1e6952873d99df75cd51f5.tar.gz
pnpkgs-c856ece9e407433bfe1e6952873d99df75cd51f5.zip
Add autostart
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/dwm/dwm-autostart.diff12
-rw-r--r--pkgs/dwm/pndwm.nix1
2 files changed, 13 insertions, 0 deletions
diff --git a/pkgs/dwm/dwm-autostart.diff b/pkgs/dwm/dwm-autostart.diff
new file mode 100644
index 0000000..190fd2d
--- /dev/null
+++ b/pkgs/dwm/dwm-autostart.diff
@@ -0,0 +1,12 @@
+diff --git a/dwm.c b/dwm.c
+index 127ab8a..8b2478a 100644
+--- a/dwm.c
++++ b/dwm.c
+@@ -1773,6 +1773,8 @@ run(void)
+ void
+ runAutostart(void) {
+ 	system("killall -q dwmblocks; dwmblocks &");
++	system("for app in `ls ~/.config/autostart/*.desktop`; do $(grep '^Exec' $app | sed 's/^Exec=//') &; done");
+ }
+
+ void
diff --git a/pkgs/dwm/pndwm.nix b/pkgs/dwm/pndwm.nix
index aece419..95d0f1a 100644
--- a/pkgs/dwm/pndwm.nix
+++ b/pkgs/dwm/pndwm.nix
@@ -5,6 +5,7 @@ let
       ./dwm-systray.diff
       ./dwm-center.diff
       ./dwm-apps.diff
+      ./dwm-autostart.diff
     ];
   };
 in