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

switch-themes.sh (396B)


      1 #!/usr/bin/env bash
      2 
      3 # exit on error
      4 set -e
      5 
      6 # change directory
      7 cd $(dirname -- "${BASH_SOURCE[0]}")
      8 
      9 # call every script that is available
     10 
     11 ## GNOME
     12 if [ -f "./gnome-switch-theme.sh" ]; then
     13   ./gnome-switch-theme.sh "$1"
     14 fi
     15 
     16 ## Bash
     17 if [ -f "./term-switch-theme.sh" ]; then
     18   ./term-switch-theme.sh "$1"
     19 fi
     20 
     21 ## Helix
     22 if [ -f "./helix-switch-theme.sh" ]; then
     23   ./helix-switch-theme.sh "$1"
     24 fi
     25