pub / theme-switchers

Switching Themes for various GNU+Linux software
git clone src.jayvii.de/pub/theme-switchers.git
Home | Log | Files | Exports | Refs | README | RSS

auto-themes.sh (267B)


      1 #!/usr/bin/env bash
      2 
      3 # exit on error
      4 set -euo pipefail
      5 
      6 # change directory
      7 cd $(dirname -- "${BASH_SOURCE[0]}")
      8 
      9 currenttime=$(date +%H:%M)
     10 if [[ "$currenttime" > "$2" || "$currenttime" < "$1" ]]; then
     11   ./switch-themes.sh "dark"
     12 else
     13   ./switch-themes.sh "light"
     14 fi