diff options
Diffstat (limited to 'bin/.local/bin/scripts/generic-theme-switch')
| -rwxr-xr-x | bin/.local/bin/scripts/generic-theme-switch | 66 |
1 files changed, 0 insertions, 66 deletions
diff --git a/bin/.local/bin/scripts/generic-theme-switch b/bin/.local/bin/scripts/generic-theme-switch deleted file mode 100755 index 9374153..0000000 --- a/bin/.local/bin/scripts/generic-theme-switch +++ /dev/null @@ -1,66 +0,0 @@ -#!/usr/bin/env bash - -WALLPAPER_DIR="$HOME/Pictures/wallpaper/Landscape" -IMAGE="vertical-your-name-cafe.jpg" - -if [[ ! -e "$WALLPAPER_DIR/$IMAGE" ]]; then - echo $WALLPAPER_DIR/$IMAGE - echo "Wallpaper file doesn't exist" - exit 1 -fi - - -themes=("Gruber Darker" - "Modus Vivendi" - "Modus Operandi Tinted") - -if [ $# -eq 0 ]; then - selected_theme=$(printf "%s\n" "${themes[@]}" | dmenu -i -p "Select a theme:") -else - selected_theme=$1 -fi - -# Exit if no theme is selected -if [ -z "$selected_theme" ]; then - exit 1 -fi - -apply_emacs_theme() { - emacsclient -e "(bard/select-theme '$1)" -} - -apply_generic_theme() { - case $selected_theme in - "Gruber Darker") - BG_COLOR="#181818" - FG_COLOR="#e4e4e4" - IMAGE_BG="#282828" - apply_emacs_theme "gruber-darker" - xrdb -merge ~/.Xresources.d/Xresources.gruber - ;; - "Modus Vivendi" | "dark") - BG_COLOR="#000000" - FG_COLOR="#ffffff" - IMAGE_BG="#535353" - apply_emacs_theme "modus-vivendi" - xrdb -merge ~/.Xresources.d/Xresources.vivendi - ;; - "Modus Operandi Tinted" | "light") - BG_COLOR="#fbf7f0" - FG_COLOR="#000000" - IMAGE_BG="#efe9dd" - apply_emacs_theme "modus-operandi-tinted" - xrdb -merge ~/.Xresources.d/Xresources.operandi-tinted - ;; - - esac -} - -create_set_wallpaper () { - magick $WALLPAPER_DIR/$IMAGE -gravity center -resize x900 -background $IMAGE_BG -extent 1920x1080 $HOME/.cache/$IMAGE-edit.png - feh --no-fehbg --bg-fill "$HOME/.cache/$IMAGE-edit.png" - echo "feh --no-fehbg --bg-fill '$HOME/.cache/$IMAGE-edit.png'" >> ~/.cache/wallpaper -} - -apply_generic_theme -create_set_wallpaper |
