From 23836c4cdb252f8d1077298fcfe70a9afafe9e91 Mon Sep 17 00:00:00 2001 From: Patryk Niedźwiedziński Date: Fri, 16 Oct 2020 08:43:28 +0200 Subject: Add dwmblocks todos --- platforms/linux/xorg/default.nix | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'platforms/linux/xorg/default.nix') 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 = { -- cgit 1.4.1