Cleanup
This commit is contained in:
parent
4068fdf409
commit
5a42bed8d8
4 changed files with 26 additions and 24 deletions
|
@ -1,21 +0,0 @@
|
||||||
#!/usr/bin/env fish
|
|
||||||
|
|
||||||
# TODO: some kind of better time-based or last-awakened heuristic to determine
|
|
||||||
# whether or not this shows
|
|
||||||
|
|
||||||
set -l hours 08 09 10
|
|
||||||
if ! contains (date +%H) $hours
|
|
||||||
echo "Not sending notification since it isn't the morning" >>&2
|
|
||||||
exit 1
|
|
||||||
end
|
|
||||||
|
|
||||||
notify-send \
|
|
||||||
--urgency critical \
|
|
||||||
"Good morning!" \
|
|
||||||
"Activate this notification (click it) to run the script. Dismiss (Super+Ctrl+Space) to ignore." \
|
|
||||||
--action=default=Activate \
|
|
||||||
| rg default
|
|
||||||
|
|
||||||
if test $status -eq 0
|
|
||||||
hyprctl dispatch exec [float] wezterm start good-morning
|
|
||||||
end
|
|
|
@ -84,3 +84,8 @@ auto-format = false
|
||||||
[[grammar]]
|
[[grammar]]
|
||||||
name = "nim"
|
name = "nim"
|
||||||
source = { git = "https://github.com/aMOPel/tree-sitter-nim", rev = "8ce3627827e45a5835004391ff5ffcfe029ae6cf" }
|
source = { git = "https://github.com/aMOPel/tree-sitter-nim", rev = "8ce3627827e45a5835004391ff5ffcfe029ae6cf" }
|
||||||
|
|
||||||
|
[[language]]
|
||||||
|
name = "fish"
|
||||||
|
auto-format = true
|
||||||
|
indent = { tab-width = 2, unit = "\t" }
|
||||||
|
|
18
os/linux/bin/maybe-good-morning
Executable file
18
os/linux/bin/maybe-good-morning
Executable file
|
@ -0,0 +1,18 @@
|
||||||
|
#!/usr/bin/env fish
|
||||||
|
|
||||||
|
# TODO: some kind of better time-based or last-awakened heuristic to determine
|
||||||
|
# whether or not this shows
|
||||||
|
|
||||||
|
set -l hours 08 09 10
|
||||||
|
if ! contains (date +%H) $hours
|
||||||
|
echo "Not sending notification since it isn't the morning" >>&2
|
||||||
|
exit 1
|
||||||
|
end
|
||||||
|
|
||||||
|
notify-send \
|
||||||
|
--urgency critical \
|
||||||
|
"Good morning!" \
|
||||||
|
"Activate this notification (click it or Super+Shift+Space) to run the script. Dismiss (Super+Ctrl+Space) to ignore." \
|
||||||
|
--action=default=Activate \
|
||||||
|
| rg default \
|
||||||
|
&& hyprctl dispatch exec [float] wezterm start good-morning
|
Reference in a new issue