diff --git a/dot_config/qtile/config.py.tmpl b/dot_config/qtile/config.py similarity index 97% rename from dot_config/qtile/config.py.tmpl rename to dot_config/qtile/config.py index bb52abb1..99883892 100644 --- a/dot_config/qtile/config.py.tmpl +++ b/dot_config/qtile/config.py @@ -20,17 +20,10 @@ from qutils import get_num_screens, get_network_interface, get_batteries, Colors mod = "mod4" # Sets mod key to SUPER/WINDOWS myTerm = "alacritty" myBrowser = "firefox" -{{ if eq .chezmoi.hostname "t450s" }} myExplorer = "thunar" sound_ctrl = "pavucontrol" -update_distro_key = "Arch" -bt_ctrl = "blueman-manager" -{{ else }} -myExplorer = "nemo" -sound_ctrl = "cinnamon-settings sound" update_distro_key = "Ubuntu" -bt_ctrl = "blueberry" -{{ end }} +bt_ctrl = "blueman-manager" keys = [ @@ -38,7 +31,7 @@ keys = [ Key([mod], "Return", lazy.spawn(myTerm), desc='Launches My Terminal'), Key([mod], "space", lazy.spawn("rofi -show run"), desc='Run Launcher'), Key([mod], "b", lazy.spawn(myBrowser), desc='Qutebrowser'), - Key([mod], "l", lazy.spawn("cinnamon-screensaver-command -a"), desc='Qutebrowser'), + Key([mod], "l", lazy.spawn("xflock4"), desc='Screen Lock'), Key([mod], "Tab", lazy.next_layout(), desc='Toggle through layouts'), Key([mod, "shift"], "c", lazy.window.kill(), desc='Kill active window'), Key([mod, "shift"], "r", lazy.restart(), desc='Restart Qtile'), @@ -246,14 +239,14 @@ def init_widgets_list(): foreground=Colors.bg, background=Colors.orange, threshold=90, - fmt='\uf8c7 {}', + fmt='T {}', **powerline, ), widget.CheckUpdates( update_interval=1800, distro=update_distro_key, markup=False, - display_format="\uf546 {updates}", + display_format="apt {updates}", foreground=Colors.bg, colour_have_updates=Colors.bg, colour_no_updates=Colors.bg, @@ -265,19 +258,19 @@ def init_widgets_list(): background=Colors.purple, mouse_callbacks={'Button1': lambda: qtile.cmd_spawn(myTerm + ' -e htop')}, fmt='{}', - format='\uf85a{MemPercent:5.1f} %', + format='M {MemPercent:5.1f}%', **powerline, ), widget.CPU( foreground=Colors.bg, background=Colors.blue, fmt='{}', - format='\ufb19{load_percent:5.1f}%', + format='C {load_percent:5.1f}', **powerline, ), widget.Net( interface=get_network_interface(), - format='{down} ↓↑ {up}', + format='{down:6.2f} ↓↑ {up:6.2f}', prefix='M', foreground=Colors.bg, background=Colors.aqua,