Archived
1
0
Fork 0
This repository has been archived on 2024-10-31. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles/simpleDots/bin/themer

24 lines
506 B
Text
Raw Normal View History

#!/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"