a26076b864
No more branches and no more Makefiles
23 lines
506 B
Bash
Executable file
23 lines
506 B
Bash
Executable file
#!/bin/bash
|
|
##################################################################
|
|
## Themer
|
|
# Switch Xresources colortheme from dark to light and back
|
|
# again.
|
|
#
|
|
|
|
statefile=~/.local/themer.state
|
|
|
|
state=$(cat $statefile)
|
|
|
|
case "$state" in
|
|
Dark) xrdb -merge ~/.bin/themer_Xresources.light
|
|
echo Light > $statefile
|
|
;;
|
|
Light) xrdb -merge ~/.bin/themer_Xresources.dark
|
|
echo Dark > $statefile
|
|
;;
|
|
esac
|
|
|
|
state=$(cat $statefile)
|
|
notify-send "Console Theme" "$state"
|
|
|