tuxomss

NightMode.sh

Nov 11th, 2019
321
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/usr/bin/bash
  2.  
  3. while :
  4. do
  5. HOUR=$(date +%H)
  6. if [ "$HOUR" -ge "17" ] || [ "$HOUR" -lt "7" ]
  7. then
  8. gsettings set org.gnome.desktop.interface gtk-theme "Mc-OS-CTLina-Gnome-Dark-1.1"
  9. gsettings set org.gnome.shell.extensions.user-theme name "Mc-OS-CTLina-Gnome-Dark-1.1"
  10. else
  11. gsettings set org.gnome.desktop.interface gtk-theme "McOS-CTLina-Gnome-1.1"
  12. gsettings set org.gnome.shell.extensions.user-theme name "McOS-CTLina-Gnome-1.1"
  13. fi
  14.  
  15. sleep 1m
  16. done
RAW Paste Data