From 01ff71dd60602f5d02b7804293be52ded145f6c5 Mon Sep 17 00:00:00 2001 From: ThanosApollo Date: Sun, 7 Aug 2022 15:09:49 +0300 Subject: restracture, add greek keybinding --- .config/qtile/config.py | 468 ++++++++++++++++++++++++------------------------ 1 file changed, 237 insertions(+), 231 deletions(-) (limited to '.config/qtile') diff --git a/.config/qtile/config.py b/.config/qtile/config.py index c51aadf..6a70b17 100644 --- a/.config/qtile/config.py +++ b/.config/qtile/config.py @@ -62,132 +62,135 @@ myTerm = "alacritty" # My terminal of choice myBrowser = "qutebrowser" # My browser of choice keys = [ - ### The essentials - Key([mod], "Return", - lazy.spawn(myTerm), - desc='Launches My Terminal' - ), - Key([mod], "Tab", - lazy.spawn("dmenu_run -p 'Run: '"), - desc='Run Launcher' - ), - Key([mod], "p", - lazy.spawn("passmenu -p 'Password for: '"), - ), - Key([mod], "b", - lazy.spawn(myBrowser), - desc='Qutebrowser' - ), - Key([mod, "shift"], "c", - lazy.next_layout(), - desc='Toggle through layouts' - ), - Key([mod], "q", - lazy.window.kill(), - desc='Kill active window' - ), - Key([mod, "shift"], "r", - lazy.restart(), - desc='Restart Qtile' - ), - Key([mod, "shift"], "0", - lazy.shutdown(), - desc='Shutdown Qtile' - ), - Key([mod, "shift"], "e", - lazy.spawn("emacsclient -c -a 'emacs'"), - desc='Doom Emacs' - ), - ### Switch focus of monitors - Key([mod], "period", - lazy.next_screen(), - desc='Move focus to next monitor' - ), - Key([mod], "comma", - lazy.prev_screen(), - desc='Move focus to prev monitor' - ), - ### Treetab controls - Key([mod, "shift"], "h", - lazy.layout.move_left(), - desc='Move up a section in treetab' - ), - Key([mod, "shift"], "l", - lazy.layout.move_right(), - desc='Move down a section in treetab' - ), - ### Window controls - Key([mod], "j", - lazy.layout.down(), - desc='Move focus down in current stack pane' - ), - Key([mod], "k", - lazy.layout.up(), - desc='Move focus up in current stack pane' - ), - Key([mod, "shift"], "j", - lazy.layout.shuffle_down(), - lazy.layout.section_down(), - desc='Move windows down in current stack' - ), - Key([mod, "shift"], "k", - lazy.layout.shuffle_up(), - lazy.layout.section_up(), - desc='Move windows up in current stack' - ), - Key([mod], "h", - lazy.layout.shrink(), - lazy.layout.decrease_nmaster(), - desc='Shrink window (MonadTall), decrease number in master pane (Tile)' - ), - Key([mod], "l", - lazy.layout.grow(), - lazy.layout.increase_nmaster(), - desc='Expand window (MonadTall), increase number in master pane (Tile)' - ), - Key([mod], "n", - lazy.layout.normalize(), - desc='normalize window size ratios' - ), - Key([mod], "m", - lazy.layout.maximize(), - desc='toggle window between minimum and maximum sizes' - ), - Key([mod, "shift"], "f", - lazy.window.toggle_floating(), - desc='toggle floating' - ), - Key([mod], "f", - lazy.window.toggle_fullscreen(), - desc='toggle fullscreen' - ), - ### Stack controls - Key([mod, "shift"], "Tab", - lazy.layout.rotate(), - lazy.layout.flip(), - desc='Switch which side main pane occupies (XmonadTall)' - ), - Key([mod, "shift"], "space", - lazy.layout.toggle_split(), - desc='Toggle between split and unsplit sides of stack' - ), - ### Volume controls - Key([], "XF86AudioLowerVolume", - lazy.spawn('amixer sset Master 5%-'), - desc="Decrease volume" - ), - Key([], "XF86AudioRaiseVolume", - lazy.spawn('amixer sset Master 5%+'), - desc="Increase volume" + ### The essentials + Key([mod], "Return", + lazy.spawn(myTerm), + desc='Launches My Terminal' ), + Key([mod], "Tab", + lazy.spawn("dmenu_run -p 'Run: '"), + desc='Run Launcher' + ), + Key([mod], "p", + lazy.spawn("passmenu -p 'Password for: '"), + ), + Key([mod], "b", + lazy.spawn(myBrowser), + desc='Qutebrowser' + ), + Key([mod, "shift"], "c", + lazy.next_layout(), + desc='Toggle through layouts' + ), + Key([mod], "q", + lazy.window.kill(), + desc='Kill active window' + ), + Key([mod, "shift"], "r", + lazy.restart(), + desc='Restart Qtile' + ), + Key([mod, "shift"], "0", + lazy.shutdown(), + desc='Shutdown Qtile' + ), + Key([mod, "shift"], "e", + lazy.spawn("emacsclient -c -a 'emacs'"), + desc='Doom Emacs' + ), + ### Switch focus of monitors + Key([mod], "period", + lazy.next_screen(), + desc='Move focus to next monitor' + ), + Key([mod], "comma", + lazy.prev_screen(), + desc='Move focus to prev monitor' + ), + ### Treetab controls + Key([mod, "shift"], "h", + lazy.layout.move_left(), + desc='Move up a section in treetab' + ), + Key([mod, "shift"], "l", + lazy.layout.move_right(), + desc='Move down a section in treetab' + ), + ### Window controls + Key([mod], "j", + lazy.layout.down(), + desc='Move focus down in current stack pane' + ), + Key([mod], "k", + lazy.layout.up(), + desc='Move focus up in current stack pane' + ), + Key([mod, "shift"], "j", + lazy.layout.shuffle_down(), + lazy.layout.section_down(), + desc='Move windows down in current stack' + ), + Key([mod, "shift"], "k", + lazy.layout.shuffle_up(), + lazy.layout.section_up(), + desc='Move windows up in current stack' + ), + Key([mod], "h", + lazy.layout.shrink(), + lazy.layout.decrease_nmaster(), + desc='Shrink window (MonadTall), decrease number in master pane (Tile)' + ), + Key([mod], "l", + lazy.layout.grow(), + lazy.layout.increase_nmaster(), + desc='Expand window (MonadTall), increase number in master pane (Tile)' + ), + Key([mod], "n", + lazy.layout.normalize(), + desc='normalize window size ratios' + ), + Key([mod], "m", + lazy.layout.maximize(), + desc='toggle window between minimum and maximum sizes' + ), + Key([mod, "shift"], "f", + lazy.window.toggle_floating(), + desc='toggle floating' + ), + Key([mod], "f", + lazy.window.toggle_fullscreen(), + desc='toggle fullscreen' + ), + ### Stack controls + Key([mod, "shift"], "Tab", + lazy.layout.rotate(), + lazy.layout.flip(), + desc='Switch which side main pane occupies (XmonadTall)' + ), + Key([mod, "shift"], "space", + lazy.layout.toggle_split(), + desc='Toggle between split and unsplit sides of stack' + ), + ### Volume controls + Key([], "XF86AudioLowerVolume", + lazy.spawn('amixer sset Master 5%-'), + desc="Decrease volume" + ), + Key([], "XF86AudioRaiseVolume", + lazy.spawn('amixer sset Master 5%+'), + desc="Increase volume" + ), ### Change languages Key([mod], "F1", - lazy.spawn("setxkbmap us"), - desc= "change to US layout"), + lazy.spawn("setxkbmap us"), + desc= "change to US layout" + ), Key([mod],"F2", - lazy.spawn("setxkbmap gr"), - desc= "change to greek layout"), - ] + lazy.spawn("setxkbmap gr"), + desc= "change to greek layout" + ), + + ] @@ -298,126 +301,129 @@ widget_defaults = init_widgets_defaults() def init_widgets_list(): widgets_list = [ - widget.Sep( + widget.Sep( linewidth = 1, padding = 6, foreground = colors[2], background = colors[1] - ), - widget.Image( - filename = image, - scale = "True", - mouse_callbacks = {'Button1': lambda: qtile.cmd_spawn(myTerm)} - ), - widget.GroupBox(font="FontAwesome", - fontsize = 20, - margin_y = 3, - margin_x = 0, - padding_y = 6, - padding_x = 5, - borderwidth = 1, - disable_drag = True, - active = colors[5], - inactive = colors[10], - rounded = False, - highlight_color = colors[1], - highlight_method = "line", - this_current_screen_border = colors[11], - other_current_screen_border = colors[10], - foreground = colors[2], - background = colors[1], - ), - widget.Sep( - linewidth = 1, - padding = 10, - foreground = colors[2], - background = colors[1] - ), - widget.CurrentLayout( - font = "Noto Sans Bold", - foreground = colors[4], - background = colors[1] - ), - widget.Sep( - linewidth = 1, - padding = 10, - foreground = colors[2], - background = colors[1] - ), - widget.WindowName(font="Noto Sans", - fontsize = 12, - foreground = colors[8], - background = colors[1], - ), - widget.Sep( - linewidth = 1, - padding = 10, - foreground = colors[2], - background = colors[1] - ), + ), + widget.Image( + filename = image, + scale = "True", + mouse_callbacks = {'Button1': lambda: qtile.cmd_spawn(myTerm)} + ), + widget.GroupBox( + font="FontAwesome", + fontsize = 20, + margin_y = 3, + margin_x = 0, + padding_y = 6, + padding_x = 5, + borderwidth = 1, + disable_drag = True, + active = colors[5], + inactive = colors[10], + rounded = False, + highlight_color = colors[1], + highlight_method = "line", + this_current_screen_border = colors[11], + other_current_screen_border = colors[10], + foreground = colors[2], + background = colors[1], + ), + widget.Sep( + linewidth = 1, + padding = 10, + foreground = colors[2], + background = colors[1] + ), + widget.CurrentLayout( + font = "Noto Sans Bold", + foreground = colors[4], + background = colors[1] + ), + widget.Sep( + linewidth = 1, + padding = 10, + foreground = colors[2], + background = colors[1] + ), + widget.WindowName(font="Noto Sans", + fontsize = 12, + foreground = colors[8], + background = colors[1], + ), + widget.Sep( + linewidth = 1, + padding = 10, + foreground = colors[2], + background = colors[1] + ), widget.Net( format='{interface}: U {up} D {down} T {total}' ), widget.Sep( - linewidth = 1, - padding = 10, - foreground = colors[2], - background = colors[1] - ), + linewidth = 1, + padding = 10, + foreground = colors[2], + background = colors[1] + ), widget.Memory( - measure_mem="G", - fontsize=15, - graph_color = colors[11] - ), - widget.MemoryGraph(), - widget.Sep( - linewidth = 1, - padding = 10, - foreground = colors[2], - background = colors[1] - ), + measure_mem="G", + fontsize=15, + graph_color = colors[11] + ), + widget.MemoryGraph( + type='box' + ), + widget.Sep( + linewidth = 1, + padding = 10, + foreground = colors[2], + background = colors[1] + ), widget.ThermalSensor( - format='{tag}: {temp:.Of}{unit}', - threshold=50, - fontsize=15, - ), + format='{tag}: {temp:.Of}{unit}', + threshold=50, + fontsize=15, + ), widget.CPUGraph( - type='box', - graph_color = colors[5] - ), - widget.Sep( - linewidth = 1, - padding = 10, - foreground = colors[2], - background = colors[1] - ), - widget.TextBox( - font="FontAwesome", - text="  ", - foreground=colors[4], - background=colors[1], - padding = 0, - fontsize=18 - ), - widget.Clock( - font='Mono', - foreground = colors[3], - background = colors[1], - fontsize = 18, - format="%d-%m-%Y | %H:%M" - ), - widget.Sep( - linewidth = 1, - padding = 3, - foreground = colors[2], - background = colors[1] - ), - widget.Systray( - background=colors[1], - icon_size=21, - padding = 10 - ), - ] + type='box', + graph_color = colors[5] + ), + widget.Sep( + linewidth = 1, + padding = 10, + foreground = colors[2], + background = colors[1] + ), + widget.TextBox( + font="FontAwesome", + text="  ", + foreground=colors[4], + background=colors[1], + padding = 0, + fontsize=18 + ), + widget.Clock( + font='Mono', + foreground = colors[3], + background = colors[1], + fontsize = 18, + format="%d-%m-%Y | %H:%M" + ), + widget.Sep( + linewidth = 1, + padding = 3, + foreground = colors[2], + background = colors[1] + ), + widget.Systray( + background=colors[1], + icon_size=21, + padding = 10 + ), + ] return widgets_list widgets_list = init_widgets_list() -- cgit v1.2.3