11 echo "Did not find 'sed', script cannot continue."
16 echo "Did not find rofi, there is no point to continue."
21 # Create if not exists, then removes #include of .theme file (if present) and add the selected theme to the end.
22 # Repeated calls should leave the config clean-ish
26 CDIR
="${HOME}/.config/rofi/"
31 if [ -f "${CDIR}/config" ]
33 ${SED} -i "/rofi\.theme: .*\.rasi$/d" "${CDIR}/config"
35 echo "rofi.theme: ${1}" >> "${CDIR}/config"
39 if [ "$HOUR" -gt "19" ] ||
[ "$HOUR" -lt "7" ]
41 feh
--bg-scale $HOME/usr
/pics
/island_night_by_arsenixc-d6cz757.jpg
42 xrdb
-merge $HOME/.Xresources.d
/gruvbox-dark.xresources
43 set_theme
"/usr/share/rofi/themes//gruvbox-dark.rasi"
45 feh
--bg-scale $HOME/usr
/pics
/island_day_by_arsenixc-d6ctqon.jpg
46 xrdb
-merge $HOME/.Xresources.d
/gruvbox-light.xresources
47 set_theme
"/usr/share/rofi/themes//gruvbox-light.rasi"