First Commit
This commit is contained in:
commit
cae9d57360
22 changed files with 1957 additions and 0 deletions
35
bin/dark.fish
Executable file
35
bin/dark.fish
Executable file
|
|
@ -0,0 +1,35 @@
|
|||
if test -e $XDG_STATE_HOME/darkmode
|
||||
rm $XDG_STATE_HOME/darkmode
|
||||
set LIGHT 1
|
||||
else
|
||||
echo > $XDG_STATE_HOME/darkmode
|
||||
set LIGHT 0
|
||||
end
|
||||
|
||||
if test $LIGHT = 1;
|
||||
notify-send "Light mode"
|
||||
|
||||
rm -f ~/.config/kitty/colors.conf
|
||||
ln -rs ~/.config/kitty/light.conf ~/.config/kitty/colors.conf
|
||||
kill -SIGUSR1 $(pgrep kitty) # reload kitty config
|
||||
|
||||
rm -f ~/.local/share/bg/*
|
||||
ln -rs ~/.local/share/bg-light.* ~/.local/share/bg/
|
||||
hyprctl reload
|
||||
|
||||
rm -f ~/.config/rofi/colors-current.rasi
|
||||
ln -rs ~/.config/rofi/colors-light.rasi ~/.config/rofi/colors-current.rasi
|
||||
else
|
||||
notify-send "Dark mode"
|
||||
|
||||
rm -f ~/.config/kitty/colors.conf
|
||||
ln -rs ~/.config/kitty/dark.conf ~/.config/kitty/colors.conf
|
||||
kill -SIGUSR1 $(pgrep kitty) # reload kitty config
|
||||
|
||||
rm -f ~/.local/share/bg/*
|
||||
ln -rs ~/.local/share/bg-dark.* ~/.local/share/bg/
|
||||
hyprctl reload
|
||||
|
||||
rm -f ~/.config/rofi/colors-current.rasi
|
||||
ln -rs ~/.config/rofi/colors-dark.rasi ~/.config/rofi/colors-current.rasi
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue