tly improvements

This commit is contained in:
Gabriel Fontes
2023-08-14 10:14:16 -03:00
parent 97179e8a90
commit 7923386f59
3 changed files with 7 additions and 3 deletions
+2
View File
@@ -38,5 +38,7 @@
nix-inspect # See which pkgs are in your PATH
ltex-ls # Spell checking LSP
tly # Tally counter
];
}
@@ -122,8 +122,9 @@
"SUPER,Print,exec,${grimblast} --notify copy window"
"ALT,Print,exec,${grimblast} --notify copy area"
# Tally counter
"SUPER,z,exec,${tly} add && ${gtk-play} -i dialog-information" # Add new entry
"SUPERCONTROL,z,exec,${tly} undo && ${gtk-play} -i dialog-warning" # Undo last entry
"SUPER,z,exec,${notify-send} -t 1000 $(${tly} time) && ${tly} add && ${gtk-play} -i dialog-information" # Add new entry
"SUPERCONTROL,z,exec,${notify-send} -t 1000 $(${tly} time) && ${tly} undo && ${gtk-play} -i dialog-warning" # Undo last entry
"SUPERCONTROLSHIFT,z,exec,${tly} reset && ${gtk-play} -i complete" # Reset
"SUPERSHIFT,z,exec,${notify-send} -t 1000 $(${tly} time)" # Show current time
] ++
+2 -1
View File
@@ -1,8 +1,9 @@
# Tally counter, also used as stopwatch
# tly <operation> [list-name]
{ lib, writeShellApplication }: (writeShellApplication {
{ lib, writeShellApplication, coreutils, gnugrep, bc }: (writeShellApplication {
name = "tly";
runtimeInputs = [ coreutils gnugrep bc ];
text = builtins.readFile ./tly.sh;
}) // {
meta = with lib; {