add os config
This commit is contained in:
parent
d8d692d313
commit
33bf5ec883
30 changed files with 271 additions and 5 deletions
|
|
@ -1,35 +0,0 @@
|
|||
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