diff --git a/.config/qtile/README.org b/.config/qtile/README.org index 9c22103..a0dfba3 100644 --- a/.config/qtile/README.org +++ b/.config/qtile/README.org @@ -242,15 +242,15 @@ keys = [ 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([], "k", lazy.spawn("dm-kill -r"), desc='Kill processes '), - Key([], "m", lazy.spawn("dm-music -r"), desc='Toggle music mpc/mpd'), - Key([], "M", lazy.spawn("dm-man -r"), desc='View manpages'), + Key([], "m", lazy.spawn("dm-man -r"), desc='View manpages'), Key([], "n", lazy.spawn("dm-note -r"), desc='Store and copy notes'), Key([], "o", lazy.spawn("dm-bookman -r"), desc='Browser bookmarks'), Key([], "p", lazy.spawn("rofi-pass"), desc='Password menu'), Key([], "q", lazy.spawn("dm-logout -r"), desc='Logout menu'), Key([], "r", lazy.spawn("dm-radio -r"), desc='Listen to online radio'), 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') ]) ] @@ -263,14 +263,14 @@ Groups are really workspaces. group_names should remain 1-9 so the MOD+1-9 keyb groups = [] group_names = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "0"] +# Uncomment only one of the following lines +group_labels = ["", "", "", "", "", "", "⧳", "", "", "⛨"] #group_labels = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10"] #group_labels = ["DEV", "WWW", "SYS", "DOC", "VBOX", "CHAT", "MUS", "VID", "GFX", "MISC"] -group_labels = ["", "", "", "", "", "", "⧳", "", "", "⛨"] -#group_labels = [" ", " ", " ", " ", " ", " ", "⛨ ", " ", " "] +# The default layout for each of the 10 workspaces group_layouts = ["monadtall", "monadtall", "monadtall", "monadtall", "monadtall", "monadtall", "monadtall", "monadtall", "monadtall", "monadtall"] - for i in range(len(group_names)): groups.append( Group( @@ -406,9 +406,9 @@ def init_widgets_list(): foreground = colors[1] ), widget.GroupBox( - fontsize = 10, + fontsize = 12, margin_y = 5, - margin_x = 12, + margin_x = 16, padding_y = 0, padding_x = 0, borderwidth = 3, @@ -435,8 +435,8 @@ def init_widgets_list(): ("📁", "pcmanfm", "PCManFM file manager"), ("🎸", "vlc", "VLC media player") ], - fontsize = 10, - padding = 10, + fontsize = 12, + padding = 12, foreground = colors[3], ), widget.TextBox( @@ -459,24 +459,25 @@ def init_widgets_list(): ), widget.WindowName( foreground = colors[6], - padding = 4, + padding = 8, max_chars = 40 ), widget.GenPollText( update_interval = 300, func = lambda: subprocess.check_output("printf $(uname -r)", shell=True, text=True), foreground = colors[3], - padding = 6, + padding = 8, fmt = '❤ {}', ), widget.CPU( - format = ' Cpu: {load_percent}%', foreground = colors[4], - padding = 6, + padding = 8, + mouse_callbacks = {'Button1': lambda: qtile.cmd_spawn(myTerm + ' -e htop')}, + format = ' Cpu: {load_percent}%', ), widget.Memory( foreground = colors[8], - padding = 6, + padding = 8, mouse_callbacks = {'Button1': lambda: qtile.cmd_spawn(myTerm + ' -e htop')}, format = '{MemUsed: .0f}{mm}', fmt = '🖥 Mem: {}', @@ -484,8 +485,8 @@ def init_widgets_list(): widget.DF( update_interval = 60, foreground = colors[5], - padding = 6, - mouse_callbacks = {'Button1': lambda: qtile.cmd_spawn(myTerm + ' -e df')}, + padding = 8, + mouse_callbacks = {'Button1': lambda: qtile.cmd_spawn('notify-disk')}, partition = '/', #format = '[{p}] {uf}{m} ({r:.0f}%)', format = '{uf}{m} free', @@ -494,15 +495,19 @@ def init_widgets_list(): ), widget.Volume( foreground = colors[7], - padding = 6, + padding = 8, fmt = '🕫 Vol: {}', ), widget.Clock( foreground = colors[8], - padding = 6, - format = "⧗ %a, %b %d - %H:%M", + padding = 8, + mouse_callbacks = {'Button1': lambda: qtile.cmd_spawn('notify-date')}, + ## Uncomment for date and time + # format = "⧗ %a, %b %d - %H:%M", + ## Uncomment for time only + format = "⧗ %I:%M %p", ), - widget.Systray(padding = 3), + widget.Systray(padding = 6), widget.Spacer(length = 8), ] @@ -528,9 +533,9 @@ def init_widgets_screen2(): # For ex: Screen(top=bar.Bar(widgets=init_widgets_screen2(), background="#00000000", size=24)), def init_screens(): - return [Screen(top=bar.Bar(widgets=init_widgets_screen1(), margin=[8, 12, 0, 12], size=28)), - Screen(top=bar.Bar(widgets=init_widgets_screen2(), margin=[8, 12, 0, 12], size=28)), - Screen(top=bar.Bar(widgets=init_widgets_screen2(), margin=[8, 12, 0, 12], size=28))] + return [Screen(top=bar.Bar(widgets=init_widgets_screen1(), margin=[8, 12, 0, 12], size=30)), + Screen(top=bar.Bar(widgets=init_widgets_screen2(), margin=[8, 12, 0, 12], size=30)), + Screen(top=bar.Bar(widgets=init_widgets_screen2(), margin=[8, 12, 0, 12], size=30))] if __name__ in ["config", "__main__"]: screens = init_screens() diff --git a/.config/qtile/autostart.sh b/.config/qtile/autostart.sh index 48e61cc..af8b14c 100755 --- a/.config/qtile/autostart.sh +++ b/.config/qtile/autostart.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -COLORSCHEME=tomorrow-night +COLORSCHEME=doom-one ### AUTOSTART PROGRAMS ### diff --git a/.config/qtile/config.py b/.config/qtile/config.py index bc88f5f..2a2a102 100644 --- a/.config/qtile/config.py +++ b/.config/qtile/config.py @@ -181,14 +181,14 @@ keys = [ groups = [] group_names = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "0"] +# Uncomment only one of the following lines +group_labels = ["", "", "", "", "", "", "⧳", "", "", "⛨"] #group_labels = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10"] #group_labels = ["DEV", "WWW", "SYS", "DOC", "VBOX", "CHAT", "MUS", "VID", "GFX", "MISC"] -group_labels = ["", "", "", "", "", "", "⧳", "", "", "⛨"] -#group_labels = [" ", " ", " ", " ", " ", " ", "⛨ ", " ", " "] +# The default layout for each of the 10 workspaces group_layouts = ["monadtall", "monadtall", "monadtall", "monadtall", "monadtall", "monadtall", "monadtall", "monadtall", "monadtall", "monadtall"] - for i in range(len(group_names)): groups.append( Group( @@ -284,9 +284,9 @@ def init_widgets_list(): foreground = colors[1] ), widget.GroupBox( - fontsize = 10, + fontsize = 12, margin_y = 5, - margin_x = 12, + margin_x = 16, padding_y = 0, padding_x = 0, borderwidth = 3, @@ -313,8 +313,8 @@ def init_widgets_list(): ("📁", "pcmanfm", "PCManFM file manager"), ("🎸", "vlc", "VLC media player") ], - fontsize = 10, - padding = 10, + fontsize = 12, + padding = 12, foreground = colors[3], ), widget.TextBox( @@ -337,24 +337,25 @@ def init_widgets_list(): ), widget.WindowName( foreground = colors[6], - padding = 4, + padding = 8, max_chars = 40 ), widget.GenPollText( update_interval = 300, func = lambda: subprocess.check_output("printf $(uname -r)", shell=True, text=True), foreground = colors[3], - padding = 6, + padding = 8, fmt = '❤ {}', ), widget.CPU( - format = ' Cpu: {load_percent}%', foreground = colors[4], - padding = 6, + padding = 8, + mouse_callbacks = {'Button1': lambda: qtile.cmd_spawn(myTerm + ' -e htop')}, + format = ' Cpu: {load_percent}%', ), widget.Memory( foreground = colors[8], - padding = 6, + padding = 8, mouse_callbacks = {'Button1': lambda: qtile.cmd_spawn(myTerm + ' -e htop')}, format = '{MemUsed: .0f}{mm}', fmt = '🖥 Mem: {}', @@ -362,8 +363,8 @@ def init_widgets_list(): widget.DF( update_interval = 60, foreground = colors[5], - padding = 6, - mouse_callbacks = {'Button1': lambda: qtile.cmd_spawn(myTerm + ' -e df')}, + padding = 8, + mouse_callbacks = {'Button1': lambda: qtile.cmd_spawn('notify-disk')}, partition = '/', #format = '[{p}] {uf}{m} ({r:.0f}%)', format = '{uf}{m} free', @@ -372,15 +373,19 @@ def init_widgets_list(): ), widget.Volume( foreground = colors[7], - padding = 6, + padding = 8, fmt = '🕫 Vol: {}', ), widget.Clock( foreground = colors[8], - padding = 6, - format = "⧗ %a, %b %d - %H:%M", + padding = 8, + mouse_callbacks = {'Button1': lambda: qtile.cmd_spawn('notify-date')}, + ## Uncomment for date and time + # format = "⧗ %a, %b %d - %H:%M", + ## Uncomment for time only + format = "⧗ %I:%M %p", ), - widget.Systray(padding = 3), + widget.Systray(padding = 6), widget.Spacer(length = 8), ] @@ -400,9 +405,9 @@ def init_widgets_screen2(): # For ex: Screen(top=bar.Bar(widgets=init_widgets_screen2(), background="#00000000", size=24)), def init_screens(): - return [Screen(top=bar.Bar(widgets=init_widgets_screen1(), margin=[8, 12, 0, 12], size=28)), - Screen(top=bar.Bar(widgets=init_widgets_screen2(), margin=[8, 12, 0, 12], size=28)), - Screen(top=bar.Bar(widgets=init_widgets_screen2(), margin=[8, 12, 0, 12], size=28))] + return [Screen(top=bar.Bar(widgets=init_widgets_screen1(), margin=[8, 12, 0, 12], size=30)), + Screen(top=bar.Bar(widgets=init_widgets_screen2(), margin=[8, 12, 0, 12], size=30)), + Screen(top=bar.Bar(widgets=init_widgets_screen2(), margin=[8, 12, 0, 12], size=30))] if __name__ in ["config", "__main__"]: screens = init_screens() diff --git a/.local/bin/dtos-colorscheme b/.local/bin/dtos-colorscheme index 4b1bce4..7207468 100755 --- a/.local/bin/dtos-colorscheme +++ b/.local/bin/dtos-colorscheme @@ -33,153 +33,204 @@ main() { 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." + 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 + killall conky && conky -c $HOME/.config/conky/qtile/01/$choice.conf & + ## EMACS ## 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." + ;; 'dracula') + ## ALACRITTY ## sed -i "s#^import = .*#import = [\"~/.config/alacritty/themes/themes/dracula.toml\"]#" "$HOME"/.config/alacritty/alacritty.toml || echo "Error setting Alacritty colors" + ## 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 + killall conky && conky -c $HOME/.config/conky/qtile/01/$choice.conf & + ## EMACS ## 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." + ;; 'gruvbox-dark') + ## ALACRITTY ## sed -i "s#^import = .*#import = [\"~/.config/alacritty/themes/themes/gruvbox_dark.toml\"]#" "$HOME"/.config/alacritty/alacritty.toml || echo "Error setting Alacritty colors" + ## 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 + killall conky && conky -c $HOME/.config/conky/qtile/01/$choice.conf & + ## EMACS ## 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." + ;; 'monokai-pro') + ## ALACRITTY ## sed -i "s#^import = .*#import = [\"~/.config/alacritty/themes/themes/monokai_pro.toml\"]#" "$HOME"/.config/alacritty/alacritty.toml || echo "Error setting Alacritty colors" + ## 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 + killall conky && conky -c $HOME/.config/conky/qtile/01/$choice.conf & + ## EMACS ## 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." + ;; 'nord') + ## ALACRITTY ## sed -i "s#^import = .*#import = [\"~/.config/alacritty/themes/themes/nord.toml\"]#" "$HOME"/.config/alacritty/alacritty.toml || echo "Error setting Alacritty colors" + ## 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 + killall conky && conky -c $HOME/.config/conky/qtile/01/$choice.conf & + ## EMACS ## 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." + ;; 'oceanic-next') + ## ALACRITTY ## sed -i "s#^import = .*#import = [\"~/.config/alacritty/themes/themes/oceanic_next.toml\"]#" "$HOME"/.config/alacritty/alacritty.toml || echo "Error setting Alacritty colors" + ## 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 + killall conky && conky -c $HOME/.config/conky/qtile/01/$choice.conf & + ## EMACS ## 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." + ;; 'palenight') + ## ALACRITTY ## sed -i "s#^import = .*#import = [\"~/.config/alacritty/themes/themes/palenight.toml\"]#" "$HOME"/.config/alacritty/alacritty.toml || echo "Error setting Alacritty colors" + ## 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 + killall conky && conky -c $HOME/.config/conky/qtile/01/$choice.conf & + ## EMACS ## 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." + ;; 'solarized-dark') + ## ALACRITTY ## sed -i "s#^import = .*#import = [\"~/.config/alacritty/themes/themes/solarized_dark.toml\"]#" "$HOME"/.config/alacritty/alacritty.toml || echo "Error setting Alacritty colors" + ## 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 + killall conky && conky -c $HOME/.config/conky/qtile/01/$choice.conf & + ## EMACS ## 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." + ;; 'solarized-light') + ## ALACRITTY ## sed -i "s#^import = .*#import = [\"~/.config/alacritty/themes/themes/solarized_light.toml\"]#" "$HOME"/.config/alacritty/alacritty.toml || echo "Error setting Alacritty colors" + ## 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 + killall conky && conky -c $HOME/.config/conky/qtile/01/$choice.conf & + ## EMACS ## 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." + ;; 'tomorrow-night') + ## ALACRITTY ## sed -i "s#^import = .*#import = [\"~/.config/alacritty/themes/themes/tomorrow_night.toml\"]#" "$HOME"/.config/alacritty/alacritty.toml || echo "Error setting Alacritty colors" + ## 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 + killall conky && conky -c $HOME/.config/conky/qtile/01/$choice.conf & + ## EMACS ## 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." + ;; 'Quit this program') echo "Program terminated." && exit 0