generated from andy/linux-nixos-hyprland-config-dotfiles
Initial commit
This commit is contained in:
9
home/.config/fish/functions/check_night_mode.fish
Normal file
9
home/.config/fish/functions/check_night_mode.fish
Normal file
@@ -0,0 +1,9 @@
|
||||
function check_night_mode
|
||||
set target_process wlsunset
|
||||
|
||||
if pgrep $target_process >/dev/null
|
||||
echo "{ \"text\":\"\", \"tooltip\": \"night-mode <span color='#a6da95'>on</span>\", \"class\": \"on\" }"
|
||||
else
|
||||
echo "{ \"text\":\"\", \"tooltip\": \"night-mode <span color='#ee99a0'>off</span>\", \"class\": \"off\" }"
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user