dotfiles/dot_bin/executable_themectl

23 lines
441 B
Plaintext
Raw Normal View History

#!/bin/bash
if [[ "$1" == "toggle" ]]; then
emacs_ctl theme toggle
tmuxctl toggle-theme
alacritty_theme toggle
elif [[ "$1" == "dark" ]]; then
emacs_ctl theme dark
tmuxctl dark-theme
alacritty_theme dark
elif [[ "$1" == "light" ]]; then
emacs_ctl theme light
tmuxctl light-theme
alacritty_theme light
else
echo 'Invalid command'
exit 1
fi
if [[ "$2" == "force" ]]; then
emacs_ctl restart
fi