mirror of
https://gitlab.com/dwt1/dotfiles.git
synced 2026-08-09 17:41:12 +10:00
Minor edits
Merge branch 'master' of gitlab.com:dwt1/dotfiles
This commit is contained in:
@@ -1,37 +1,5 @@
|
|||||||
[colors]
|
[general]
|
||||||
draw_bold_text_with_bright_colors = true
|
import = ["~/.config/alacritty/themes/themes/doom_one.toml"]
|
||||||
|
|
||||||
[colors.bright]
|
|
||||||
black = "#5b6268"
|
|
||||||
blue = "#3071db"
|
|
||||||
cyan = "#46d9ff"
|
|
||||||
green = "#4db5bd"
|
|
||||||
magenta = "#a9a1e1"
|
|
||||||
red = "#da8548"
|
|
||||||
white = "#dfdfdf"
|
|
||||||
yellow = "#ecbe7b"
|
|
||||||
|
|
||||||
[colors.cursor]
|
|
||||||
cursor = "#528bff"
|
|
||||||
text = "CellBackground"
|
|
||||||
|
|
||||||
[colors.normal]
|
|
||||||
black = "#1c1f24"
|
|
||||||
blue = "#51afef"
|
|
||||||
cyan = "#5699af"
|
|
||||||
green = "#98be65"
|
|
||||||
magenta = "#c678dd"
|
|
||||||
red = "#ff6c6b"
|
|
||||||
white = "#abb2bf"
|
|
||||||
yellow = "#da8548"
|
|
||||||
|
|
||||||
[colors.primary]
|
|
||||||
background = "#282c34"
|
|
||||||
foreground = "#bbc2cf"
|
|
||||||
|
|
||||||
[colors.selection]
|
|
||||||
background = "#3e4451"
|
|
||||||
text = "CellForeground"
|
|
||||||
|
|
||||||
[env]
|
[env]
|
||||||
TERM = "xterm-256color"
|
TERM = "xterm-256color"
|
||||||
|
|||||||
@@ -242,7 +242,8 @@ keys = [
|
|||||||
Key([], "e", lazy.spawn("dm-confedit -r"), desc='Choose a config file to edit'),
|
Key([], "e", lazy.spawn("dm-confedit -r"), desc='Choose a config file to edit'),
|
||||||
Key([], "i", lazy.spawn("dm-maim -r"), desc='Take a screenshot'),
|
Key([], "i", lazy.spawn("dm-maim -r"), desc='Take a screenshot'),
|
||||||
Key([], "k", lazy.spawn("dm-kill -r"), desc='Kill processes '),
|
Key([], "k", lazy.spawn("dm-kill -r"), desc='Kill processes '),
|
||||||
Key([], "m", lazy.spawn("dm-man -r"), desc='View manpages'),
|
Key([], "m", lazy.spawn("dm-music -r"), desc='Toggle music mpc/mpd'),
|
||||||
|
Key([], "M", lazy.spawn("dm-man -r"), desc='View manpages'),
|
||||||
Key([], "n", lazy.spawn("dm-note -r"), desc='Store and copy notes'),
|
Key([], "n", lazy.spawn("dm-note -r"), desc='Store and copy notes'),
|
||||||
Key([], "o", lazy.spawn("dm-bookman -r"), desc='Browser bookmarks'),
|
Key([], "o", lazy.spawn("dm-bookman -r"), desc='Browser bookmarks'),
|
||||||
Key([], "p", lazy.spawn("rofi-pass"), desc='Password menu'),
|
Key([], "p", lazy.spawn("rofi-pass"), desc='Password menu'),
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
COLORSCHEME=doom-one
|
COLORSCHEME=tomorrow-night
|
||||||
|
|
||||||
### AUTOSTART PROGRAMS ###
|
### AUTOSTART PROGRAMS ###
|
||||||
|
|
||||||
|
|||||||
@@ -173,7 +173,8 @@ keys = [
|
|||||||
Key([], "q", lazy.spawn("dm-logout -r"), desc='Logout menu'),
|
Key([], "q", lazy.spawn("dm-logout -r"), desc='Logout menu'),
|
||||||
Key([], "r", lazy.spawn("dm-radio -r"), desc='Listen to online radio'),
|
Key([], "r", lazy.spawn("dm-radio -r"), desc='Listen to online radio'),
|
||||||
Key([], "s", lazy.spawn("dm-websearch -r"), desc='Search various engines'),
|
Key([], "s", lazy.spawn("dm-websearch -r"), desc='Search various engines'),
|
||||||
Key([], "t", lazy.spawn("dm-translate -r"), desc='Translate text')
|
Key([], "t", lazy.spawn("dm-translate -r"), desc='Translate text'),
|
||||||
|
Key([], "u", lazy.spawn("dm-music -r"), desc='Toggle music mpc/mpd')
|
||||||
])
|
])
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|||||||
+150
-31
@@ -24,76 +24,195 @@ options=("doom-one"
|
|||||||
"palenight"
|
"palenight"
|
||||||
"solarized-dark"
|
"solarized-dark"
|
||||||
"solarized-light"
|
"solarized-light"
|
||||||
"tomorrow-night")
|
"tomorrow-night"
|
||||||
|
"Quit this program")
|
||||||
|
|
||||||
choice=$(printf '%s\n' "${options[@]}" | ${DMENU} 'Choose color scheme:' "${@}")
|
main() {
|
||||||
|
|
||||||
if [[ $choice = "doom-one" ]]; then
|
choice=$(printf '%s\n' "${options[@]}" | ${MENU} 'Choose color scheme:' "${@}")
|
||||||
|
|
||||||
|
case "$choice" in
|
||||||
|
'doom-one')
|
||||||
|
## ALACRITTY ##
|
||||||
|
sed -i "s#^import = .*#import = [\"~/.config/alacritty/themes/themes/doom_one.toml\"]#" "$HOME"/.config/alacritty/alacritty.toml || echo "Error setting Alacritty colors"
|
||||||
|
## QTILE ##
|
||||||
|
sed -i "s/^colors = colors.*/colors = colors.DoomOne/g" "$HOME"/.config/qtile/config.py || echo "Cannot find colors = colors."
|
||||||
|
sed -i "s/^colors=colors.*/colors = colors.DoomOne/g" "$HOME"/.config/qtile/config.py || echo "Cannot find colors=colors."
|
||||||
|
qtile cmd-obj -o cmd -f restart && $HOME/.config/qtile/autostart.sh || echo "Qtile not running"
|
||||||
|
## CONKY ##
|
||||||
|
sed -i "s#^myConky=.*#myConky=\"$HOME/.config/conky/qtile/01/$choice.conf\"#" "$HOME"/.local/bin/conky-toggle || echo "Cannot change conky-toggle script."
|
||||||
|
conky-toggle && conky-toggle
|
||||||
## EMACS ##
|
## EMACS ##
|
||||||
sed -i "s/load-theme '.*/load-theme 'doom-one t)/g" "$HOME"/.config/emacs/config.org || echo "Cannot find config.org."
|
sed -i "s/load-theme '.*/load-theme 'doom-one t)/g" "$HOME"/.config/emacs/config.org || echo "Cannot find config.org."
|
||||||
emacsclient -e "(load-theme 'doom-one t)" || echo "Emacsclient not running."
|
emacsclient -e "(load-theme 'doom-one t)" || echo "Emacsclient not running."
|
||||||
|
;;
|
||||||
|
'dracula')
|
||||||
## ALACRITTY ##
|
## ALACRITTY ##
|
||||||
sed -i "s/^colors: .*/colors: \*$choice/g" "$HOME"/.config/alacritty/alacritty.yml || echo "Error setting Alacritty colors"
|
sed -i "s#^import = .*#import = [\"~/.config/alacritty/themes/themes/dracula.toml\"]#" "$HOME"/.config/alacritty/alacritty.toml || echo "Error setting Alacritty colors"
|
||||||
elif [[ $choice = "dracula" ]]; then
|
## QTILE ##
|
||||||
|
sed -i "s/^colors = colors.*/colors = colors.Dracula/g" "$HOME"/.config/qtile/config.py || echo "Cannot find colors = colors."
|
||||||
|
sed -i "s/^colors=colors.*/colors = colors.Dracula/g" "$HOME"/.config/qtile/config.py || echo "Cannot find colors=colors."
|
||||||
|
sed -i "s/^COLORSCHEME=.*/COLORSCHEME=$choice/g" "$HOME"/.config/qtile/autostart.sh || echo "Cannot find COLORSCHEME."
|
||||||
|
qtile cmd-obj -o cmd -f restart && $HOME/.config/qtile/autostart.sh || echo "Qtile not running"
|
||||||
|
## CONKY ##
|
||||||
|
sed -i "s#^myConky=.*#myConky=\"$HOME/.config/conky/qtile/01/$choice.conf\"#" "$HOME"/.local/bin/conky-toggle || echo "Cannot change conky-toggle script."
|
||||||
|
conky-toggle && conky-toggle
|
||||||
## EMACS ##
|
## EMACS ##
|
||||||
sed -i "s/load-theme '.*/load-theme 'doom-dracula t)/g" "$HOME"/.config/emacs/config.org || echo "Cannot find config.org."
|
sed -i "s/load-theme '.*/load-theme 'doom-dracula t)/g" "$HOME"/.config/emacs/config.org || echo "Cannot find config.org."
|
||||||
emacsclient -e "(load-theme 'doom-dracula t)" || echo "Emacsclient not running."
|
emacsclient -e "(load-theme 'doom-dracula t)" || echo "Emacsclient not running."
|
||||||
|
;;
|
||||||
|
'gruvbox-dark')
|
||||||
## ALACRITTY ##
|
## ALACRITTY ##
|
||||||
sed -i "s/^colors: .*/colors: \*$choice/g" "$HOME"/.config/alacritty/alacritty.yml || echo "Error setting Alacritty colors"
|
sed -i "s#^import = .*#import = [\"~/.config/alacritty/themes/themes/gruvbox_dark.toml\"]#" "$HOME"/.config/alacritty/alacritty.toml || echo "Error setting Alacritty colors"
|
||||||
elif [[ $choice = "gruvbox-dark" ]]; then
|
## QTILE ##
|
||||||
|
sed -i "s/^colors = colors.*/colors = colors.GruvboxDark/g" "$HOME"/.config/qtile/config.py || echo "Cannot find colors = colors."
|
||||||
|
sed -i "s/^colors=colors.*/colors = colors.GruvboxDark/g" "$HOME"/.config/qtile/config.py || echo "Cannot find colors=colors."
|
||||||
|
sed -i "s/^COLORSCHEME=.*/COLORSCHEME=$choice/g" "$HOME"/.config/qtile/autostart.sh || echo "Cannot find COLORSCHEME."
|
||||||
|
qtile cmd-obj -o cmd -f restart && $HOME/.config/qtile/autostart.sh || echo "Qtile not running"
|
||||||
|
## CONKY ##
|
||||||
|
sed -i "s#^myConky=.*#myConky=\"$HOME/.config/conky/qtile/01/$choice.conf\"#" "$HOME"/.local/bin/conky-toggle || echo "Cannot change conky-toggle script."
|
||||||
|
conky-toggle && conky-toggle
|
||||||
## EMACS ##
|
## EMACS ##
|
||||||
sed -i "s/load-theme '.*/load-theme 'doom-gruvbox t)/g" "$HOME"/.config/emacs/config.org || echo "Cannot find config.org."
|
sed -i "s/load-theme '.*/load-theme 'doom-gruvbox t)/g" "$HOME"/.config/emacs/config.org || echo "Cannot find config.org."
|
||||||
emacsclient -e "(load-theme 'doom-gruvbox t)" || echo "Emacsclient not running."
|
emacsclient -e "(load-theme 'doom-gruvbox t)" || echo "Emacsclient not running."
|
||||||
|
;;
|
||||||
|
'monokai-pro')
|
||||||
## ALACRITTY ##
|
## ALACRITTY ##
|
||||||
sed -i "s/^colors: .*/colors: \*$choice/g" "$HOME"/.config/alacritty/alacritty.yml || echo "Error setting Alacritty colors"
|
sed -i "s#^import = .*#import = [\"~/.config/alacritty/themes/themes/monokai_pro.toml\"]#" "$HOME"/.config/alacritty/alacritty.toml || echo "Error setting Alacritty colors"
|
||||||
elif [[ $choice = "monokai-pro" ]]; then
|
## QTILE ##
|
||||||
|
sed -i "s/^colors = colors.*/colors = colors.MonokaiPro/g" "$HOME"/.config/qtile/config.py || echo "Cannot find colors = colors."
|
||||||
|
sed -i "s/^colors=colors.*/colors = colors.MonokaiPro/g" "$HOME"/.config/qtile/config.py || echo "Cannot find colors=colors."
|
||||||
|
sed -i "s/^COLORSCHEME=.*/COLORSCHEME=$choice/g" "$HOME"/.config/qtile/autostart.sh || echo "Cannot find COLORSCHEME."
|
||||||
|
qtile cmd-obj -o cmd -f restart && $HOME/.config/qtile/autostart.sh || echo "Qtile not running"
|
||||||
|
## CONKY ##
|
||||||
|
sed -i "s#^myConky=.*#myConky=\"$HOME/.config/conky/qtile/01/$choice.conf\"#" "$HOME"/.local/bin/conky-toggle || echo "Cannot change conky-toggle script."
|
||||||
|
conky-toggle && conky-toggle
|
||||||
## EMACS ##
|
## EMACS ##
|
||||||
sed -i "s/load-theme '.*/load-theme 'doom-monokai-pro t)/g" "$HOME"/.config/emacs/config.org || echo "Cannot find config.org."
|
sed -i "s/load-theme '.*/load-theme 'doom-monokai-pro t)/g" "$HOME"/.config/emacs/config.org || echo "Cannot find config.org."
|
||||||
emacsclient -e "(load-theme 'doom-monokai-pro t)" || echo "Emacsclient not running."
|
emacsclient -e "(load-theme 'doom-monokai-pro t)" || echo "Emacsclient not running."
|
||||||
|
;;
|
||||||
|
'nord')
|
||||||
## ALACRITTY ##
|
## ALACRITTY ##
|
||||||
sed -i "s/^colors: .*/colors: \*$choice/g" "$HOME"/.config/alacritty/alacritty.yml || echo "Error setting Alacritty colors"
|
sed -i "s#^import = .*#import = [\"~/.config/alacritty/themes/themes/nord.toml\"]#" "$HOME"/.config/alacritty/alacritty.toml || echo "Error setting Alacritty colors"
|
||||||
elif [[ $choice = "nord" ]]; then
|
## QTILE ##
|
||||||
|
sed -i "s/^colors = colors.*/colors = colors.Nord/g" "$HOME"/.config/qtile/config.py || echo "Cannot find colors = colors."
|
||||||
|
sed -i "s/^colors=colors.*/colors = colors.Nord/g" "$HOME"/.config/qtile/config.py || echo "Cannot find colors=colors."
|
||||||
|
sed -i "s/^COLORSCHEME=.*/COLORSCHEME=$choice/g" "$HOME"/.config/qtile/autostart.sh || echo "Cannot find COLORSCHEME."
|
||||||
|
qtile cmd-obj -o cmd -f restart && $HOME/.config/qtile/autostart.sh || echo "Qtile not running"
|
||||||
|
## CONKY ##
|
||||||
|
sed -i "s#^myConky=.*#myConky=\"$HOME/.config/conky/qtile/01/$choice.conf\"#" "$HOME"/.local/bin/conky-toggle || echo "Cannot change conky-toggle script."
|
||||||
|
conky-toggle && conky-toggle
|
||||||
## EMACS ##
|
## EMACS ##
|
||||||
sed -i "s/load-theme '.*/load-theme 'doom-nord t)/g" "$HOME"/.config/emacs/config.org || echo "Cannot find config.org."
|
sed -i "s/load-theme '.*/load-theme 'doom-nord t)/g" "$HOME"/.config/emacs/config.org || echo "Cannot find config.org."
|
||||||
emacsclient -e "(load-theme 'doom-nord t)" || echo "Emacsclient not running."
|
emacsclient -e "(load-theme 'doom-nord t)" || echo "Emacsclient not running."
|
||||||
|
;;
|
||||||
|
'oceanic-next')
|
||||||
## ALACRITTY ##
|
## ALACRITTY ##
|
||||||
sed -i "s/^colors: .*/colors: \*$choice/g" "$HOME"/.config/alacritty/alacritty.yml || echo "Error setting Alacritty colors"
|
sed -i "s#^import = .*#import = [\"~/.config/alacritty/themes/themes/oceanic_next.toml\"]#" "$HOME"/.config/alacritty/alacritty.toml || echo "Error setting Alacritty colors"
|
||||||
elif [[ $choice = "oceanic-next" ]]; then
|
## QTILE ##
|
||||||
|
sed -i "s/^colors = colors.*/colors = colors.OceanicNext/g" "$HOME"/.config/qtile/config.py || echo "Cannot find colors = colors."
|
||||||
|
sed -i "s/^colors=colors.*/colors = colors.OceanicNext/g" "$HOME"/.config/qtile/config.py || echo "Cannot find colors=colors."
|
||||||
|
sed -i "s/^COLORSCHEME=.*/COLORSCHEME=$choice/g" "$HOME"/.config/qtile/autostart.sh || echo "Cannot find COLORSCHEME."
|
||||||
|
qtile cmd-obj -o cmd -f restart && $HOME/.config/qtile/autostart.sh || echo "Qtile not running"
|
||||||
|
## CONKY ##
|
||||||
|
sed -i "s#^myConky=.*#myConky=\"$HOME/.config/conky/qtile/01/$choice.conf\"#" "$HOME"/.local/bin/conky-toggle || echo "Cannot change conky-toggle script."
|
||||||
|
conky-toggle && conky-toggle
|
||||||
## EMACS ##
|
## EMACS ##
|
||||||
sed -i "s/load-theme '.*/load-theme 'doom-oceanic-next t)/g" "$HOME"/.config/emacs/config.org || echo "Cannot find config.org."
|
sed -i "s/load-theme '.*/load-theme 'doom-oceanic-next t)/g" "$HOME"/.config/emacs/config.org || echo "Cannot find config.org."
|
||||||
emacsclient -e "(load-theme 'doom-oceanic-next t)" || echo "Emacsclient not running."
|
emacsclient -e "(load-theme 'doom-oceanic-next t)" || echo "Emacsclient not running."
|
||||||
|
;;
|
||||||
|
'palenight')
|
||||||
## ALACRITTY ##
|
## ALACRITTY ##
|
||||||
sed -i "s/^colors: .*/colors: \*$choice/g" "$HOME"/.config/alacritty/alacritty.yml || echo "Error setting Alacritty colors"
|
sed -i "s#^import = .*#import = [\"~/.config/alacritty/themes/themes/palenight.toml\"]#" "$HOME"/.config/alacritty/alacritty.toml || echo "Error setting Alacritty colors"
|
||||||
elif [[ $choice = "palenight" ]]; then
|
## QTILE ##
|
||||||
|
sed -i "s/^colors = colors.*/colors = colors.Palenight/g" "$HOME"/.config/qtile/config.py || echo "Cannot find colors = colors."
|
||||||
|
sed -i "s/^colors=colors.*/colors = colors.Palenight/g" "$HOME"/.config/qtile/config.py || echo "Cannot find colors=colors."
|
||||||
|
sed -i "s/^COLORSCHEME=.*/COLORSCHEME=$choice/g" "$HOME"/.config/qtile/autostart.sh || echo "Cannot find COLORSCHEME."
|
||||||
|
qtile cmd-obj -o cmd -f restart && $HOME/.config/qtile/autostart.sh || echo "Qtile not running"
|
||||||
|
## CONKY ##
|
||||||
|
sed -i "s#^myConky=.*#myConky=\"$HOME/.config/conky/qtile/01/$choice.conf\"#" "$HOME"/.local/bin/conky-toggle || echo "Cannot change conky-toggle script."
|
||||||
|
conky-toggle && conky-toggle
|
||||||
## EMACS ##
|
## EMACS ##
|
||||||
sed -i "s/load-theme '.*/load-theme 'doom-palenight t)/g" "$HOME"/.config/emacs/config.org || echo "Cannot find config.org."
|
sed -i "s/load-theme '.*/load-theme 'doom-palenight t)/g" "$HOME"/.config/emacs/config.org || echo "Cannot find config.org."
|
||||||
emacsclient -e "(load-theme 'doom-palenight t)" || echo "Emacsclient not running."
|
emacsclient -e "(load-theme 'doom-palenight t)" || echo "Emacsclient not running."
|
||||||
|
;;
|
||||||
|
'solarized-dark')
|
||||||
## ALACRITTY ##
|
## ALACRITTY ##
|
||||||
sed -i "s/^colors: .*/colors: \*$choice/g" "$HOME"/.config/alacritty/alacritty.yml || echo "Error setting Alacritty colors"
|
sed -i "s#^import = .*#import = [\"~/.config/alacritty/themes/themes/solarized_dark.toml\"]#" "$HOME"/.config/alacritty/alacritty.toml || echo "Error setting Alacritty colors"
|
||||||
elif [[ $choice = "solarized-dark" ]]; then
|
## QTILE ##
|
||||||
|
sed -i "s/^colors = colors.*/colors = colors.SolarizedDark/g" "$HOME"/.config/qtile/config.py || echo "Cannot find colors = colors."
|
||||||
|
sed -i "s/^colors=colors.*/colors = colors.SolarizedDark/g" "$HOME"/.config/qtile/config.py || echo "Cannot find colors=colors."
|
||||||
|
sed -i "s/^COLORSCHEME=.*/COLORSCHEME=$choice/g" "$HOME"/.config/qtile/autostart.sh || echo "Cannot find COLORSCHEME."
|
||||||
|
qtile cmd-obj -o cmd -f restart && $HOME/.config/qtile/autostart.sh || echo "Qtile not running"
|
||||||
|
## CONKY ##
|
||||||
|
sed -i "s#^myConky=.*#myConky=\"$HOME/.config/conky/qtile/01/$choice.conf\"#" "$HOME"/.local/bin/conky-toggle || echo "Cannot change conky-toggle script."
|
||||||
|
conky-toggle && conky-toggle
|
||||||
## EMACS ##
|
## EMACS ##
|
||||||
sed -i "s/load-theme '.*/load-theme 'doom-solarized-dark t)/g" "$HOME"/.config/emacs/config.org || echo "Cannot find config.org."
|
sed -i "s/load-theme '.*/load-theme 'doom-solarized-dark t)/g" "$HOME"/.config/emacs/config.org || echo "Cannot find config.org."
|
||||||
emacsclient -e "(load-theme 'doom-solarized-dark t)" || echo "Emacsclient not running."
|
emacsclient -e "(load-theme 'doom-solarized-dark t)" || echo "Emacsclient not running."
|
||||||
|
;;
|
||||||
|
'solarized-light')
|
||||||
## ALACRITTY ##
|
## ALACRITTY ##
|
||||||
sed -i "s/^colors: .*/colors: \*$choice/g" "$HOME"/.config/alacritty/alacritty.yml || echo "Error setting Alacritty colors"
|
sed -i "s#^import = .*#import = [\"~/.config/alacritty/themes/themes/solarized_light.toml\"]#" "$HOME"/.config/alacritty/alacritty.toml || echo "Error setting Alacritty colors"
|
||||||
elif [[ $choice = "solarized-light" ]]; then
|
## QTILE ##
|
||||||
|
sed -i "s/^colors = colors.*/colors = colors.SolarizedLight/g" "$HOME"/.config/qtile/config.py || echo "Cannot find colors = colors."
|
||||||
|
sed -i "s/^colors=colors.*/colors = colors.SolarizedLight/g" "$HOME"/.config/qtile/config.py || echo "Cannot find colors=colors."
|
||||||
|
sed -i "s/^COLORSCHEME=.*/COLORSCHEME=$choice/g" "$HOME"/.config/qtile/autostart.sh || echo "Cannot find COLORSCHEME."
|
||||||
|
qtile cmd-obj -o cmd -f restart && $HOME/.config/qtile/autostart.sh || echo "Qtile not running"
|
||||||
|
## CONKY ##
|
||||||
|
sed -i "s#^myConky=.*#myConky=\"$HOME/.config/conky/qtile/01/$choice.conf\"#" "$HOME"/.local/bin/conky-toggle || echo "Cannot change conky-toggle script."
|
||||||
|
conky-toggle && conky-toggle
|
||||||
## EMACS ##
|
## EMACS ##
|
||||||
sed -i "s/load-theme '.*/load-theme 'doom-solarized-light t)/g" "$HOME"/.config/emacs/config.org || echo "Cannot find config.org."
|
sed -i "s/load-theme '.*/load-theme 'doom-solarized-light t)/g" "$HOME"/.config/emacs/config.org || echo "Cannot find config.org."
|
||||||
emacsclient -e "(load-theme 'doom-solarized-light t)" || echo "Emacsclient not running."
|
emacsclient -e "(load-theme 'doom-solarized-light t)" || echo "Emacsclient not running."
|
||||||
|
;;
|
||||||
|
'tomorrow-night')
|
||||||
## ALACRITTY ##
|
## ALACRITTY ##
|
||||||
sed -i "s/^colors: .*/colors: \*$choice/g" "$HOME"/.config/alacritty/alacritty.yml || echo "Error setting Alacritty colors"
|
sed -i "s#^import = .*#import = [\"~/.config/alacritty/themes/themes/tomorrow_night.toml\"]#" "$HOME"/.config/alacritty/alacritty.toml || echo "Error setting Alacritty colors"
|
||||||
elif [[ $choice = "tomorrow-night" ]]; then
|
## QTILE ##
|
||||||
|
sed -i "s/^colors = colors.*/colors = colors.TomorrowNight/g" "$HOME"/.config/qtile/config.py || echo "Cannot find colors = colors."
|
||||||
|
sed -i "s/^colors=colors.*/colors = colors.TomorrowNight/g" "$HOME"/.config/qtile/config.py || echo "Cannot find colors=colors."
|
||||||
|
sed -i "s/^COLORSCHEME=.*/COLORSCHEME=$choice/g" "$HOME"/.config/qtile/autostart.sh || echo "Cannot find COLORSCHEME."
|
||||||
|
qtile cmd-obj -o cmd -f restart && $HOME/.config/qtile/autostart.sh || echo "Qtile not running"
|
||||||
|
## CONKY ##
|
||||||
|
sed -i "s#^myConky=.*#myConky=\"$HOME/.config/conky/qtile/01/$choice.conf\"#" "$HOME"/.local/bin/conky-toggle || echo "Cannot change conky-toggle script."
|
||||||
|
conky-toggle && conky-toggle
|
||||||
## EMACS ##
|
## EMACS ##
|
||||||
sed -i "s/load-theme '.*/load-theme 'doom-tomorrow-night t)/g" "$HOME"/.config/emacs/config.org || echo "Cannot find config.org."
|
sed -i "s/load-theme '.*/load-theme 'doom-tomorrow-night t)/g" "$HOME"/.config/emacs/config.org || echo "Cannot find config.org."
|
||||||
emacsclient -e "(load-theme 'doom-tomorrow-night t)" || echo "Emacsclient not running."
|
emacsclient -e "(load-theme 'doom-tomorrow-night t)" || echo "Emacsclient not running."
|
||||||
## ALACRITTY ##
|
;;
|
||||||
sed -i "s/^colors: .*/colors: \*$choice/g" "$HOME"/.config/alacritty/alacritty.yml || echo "Error setting Alacritty colors"
|
'Quit this program')
|
||||||
fi
|
echo "Program terminated." && exit 0
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
exit 0
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
|
||||||
if [ "$choice" ]; then
|
no_opt=1
|
||||||
## QTILE ##
|
# If script is run with '-d', it will use 'dmenu'
|
||||||
sed -i "s/^colors = colors.*/colors = colors.$choice/g" "$HOME"/.config/qtile/config.py || echo "Cannot find colors = colors."
|
# If script is run with '-f', it will use 'fzf'
|
||||||
sed -i "s/^colors=colors.*/colors = colors.$choice/g" "$HOME"/.config/qtile/config.py || echo "Cannot find colors=colors."
|
# If script is run with '-d', it will use 'rofi'
|
||||||
sed -i "s/^COLORSCHEME=.*/COLORSCHEME=$choice/g" "$HOME"/.config/qtile/autostart.sh || echo "Cannot find COLORSCHEME."
|
while getopts "dfrh" arg 2>/dev/null; do
|
||||||
qtile cmd-obj -o cmd -f restart && $HOME/.config/qtile/autostart.sh || echo "Qtile not running"
|
case "${arg}" in
|
||||||
fi
|
d) # shellcheck disable=SC2153
|
||||||
|
MENU=${DMENU}
|
||||||
|
[[ "${BASH_SOURCE[0]}" == "${0}" ]] && main
|
||||||
|
;;
|
||||||
|
f) # shellcheck disable=SC2153
|
||||||
|
MENU=${FMENU}
|
||||||
|
[[ "${BASH_SOURCE[0]}" == "${0}" ]] && main
|
||||||
|
;;
|
||||||
|
r) # shellcheck disable=SC2153
|
||||||
|
MENU=${RMENU}
|
||||||
|
[[ "${BASH_SOURCE[0]}" == "${0}" ]] && main
|
||||||
|
;;
|
||||||
|
h) help ;;
|
||||||
|
*) printf '%s\n' "Error: invalid option" "Type $(basename "$0") -h for help" ;;
|
||||||
|
esac
|
||||||
|
no_opt=0
|
||||||
|
done
|
||||||
|
|
||||||
|
# If script is run with NO argument, it will use 'dmenu'
|
||||||
|
[ $no_opt = 1 ] && MENU=${DMENU} && [[ "${BASH_SOURCE[0]}" == "${0}" ]] && main "$@"
|
||||||
|
|||||||
Reference in New Issue
Block a user