diff options
author | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2020-10-16 08:43:28 +0200 |
---|---|---|
committer | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2020-10-16 08:43:28 +0200 |
commit | 23836c4cdb252f8d1077298fcfe70a9afafe9e91 (patch) | |
tree | e12a82c07d983a88287a3f5f8cf6d5611b49612b /platforms/linux/xorg/default.nix | |
parent | fcc118a3d98748f02a7ccbac615ed0d16db719ae (diff) | |
download | dots-23836c4cdb252f8d1077298fcfe70a9afafe9e91.tar.gz dots-23836c4cdb252f8d1077298fcfe70a9afafe9e91.zip |
Add dwmblocks todos
Diffstat (limited to 'platforms/linux/xorg/default.nix')
-rw-r--r-- | platforms/linux/xorg/default.nix | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/platforms/linux/xorg/default.nix b/platforms/linux/xorg/default.nix index 06ccbac..34a1aea 100644 --- a/platforms/linux/xorg/default.nix +++ b/platforms/linux/xorg/default.nix @@ -16,11 +16,21 @@ let ]; header_config_file = ./config.h; }; + + todos = pkgs.writeScriptBin "todos" '' + #!${pkgs.stdenv.shell} + case $BLOCK_BUTTON in + 1) notify-send "Tasks" "\n$(todoist l | cut -d\ -f5- | sed 's/^/* /')" ;; + 6) "$TERMINAL" -e "$EDITOR" "$0" ;; + esac + + echo "✅$(todoist list | wc -l)" + ''; in { imports = [ ./dunst - }; + ]; home.packages = with pkgs; [ mpd @@ -29,7 +39,7 @@ in nur.repos.pn.dockd pndwmblocks pndwm - roboto-slab + todos ]; xsession = { |