resurrect #8
10
home/deepak/config/uair/scripts/break.sh
Executable file
10
home/deepak/config/uair/scripts/break.sh
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/usr/bin/env bash
|
||||
# Notify with tmux?
|
||||
|
||||
message="Break done"
|
||||
|
||||
echo "sth"
|
||||
echo "$message"
|
||||
|
||||
tmux display-popup -T "uair" "echo -e \"$message\""
|
||||
|
||||
14
home/deepak/config/uair/scripts/notify.sh
Executable file
14
home/deepak/config/uair/scripts/notify.sh
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env bash
|
||||
# Notify with tmux?
|
||||
|
||||
message="
|
||||
$1
|
||||
|
||||
exit with ctrl-C, resume next with uairctl
|
||||
"
|
||||
|
||||
echo "sth"
|
||||
echo "$message"
|
||||
|
||||
tmux display-popup -T "uair" "echo -e \"$message\""
|
||||
|
||||
@@ -8,12 +8,12 @@ resumed_state_text = "playing"
|
||||
[[sessions]]
|
||||
id = "work"
|
||||
name = "Work"
|
||||
duration = "30m"
|
||||
command = "notify-send 'Work Done!'"
|
||||
duration = "10m"
|
||||
command = '~/.config/uair/scripts/notify.sh "Work Done!"'
|
||||
|
||||
[[sessions]]
|
||||
id = "rest"
|
||||
name = "Rest"
|
||||
duration = "5m"
|
||||
command = "notify-send 'Rest Done!'"
|
||||
duration = "2m"
|
||||
command = "~/.config/uair/scripts/break.sh"
|
||||
|
||||
@@ -101,7 +101,7 @@ in
|
||||
programs.direnv.nix-direnv.enable = true;
|
||||
|
||||
xdg.enable = true;
|
||||
xdg.configFile."uair/uair.toml".source = ./config/uair.toml;
|
||||
xdg.configFile."uair".source = ./config/uair;
|
||||
|
||||
services.nextcloud-client = pkgs.lib.mkIf specialArgs.withGUI {
|
||||
enable = true;
|
||||
@@ -404,7 +404,7 @@ in
|
||||
Restart = "always";
|
||||
};
|
||||
Install = {
|
||||
WantedBy = ["default.target"];
|
||||
WantedBy = [ "default.target" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user