diff options
Diffstat (limited to '.config/qtile/config.py')
-rw-r--r-- | .config/qtile/config.py | 71 |
1 files changed, 57 insertions, 14 deletions
diff --git a/.config/qtile/config.py b/.config/qtile/config.py index b0f7fe8..c51aadf 100644 --- a/.config/qtile/config.py +++ b/.config/qtile/config.py @@ -33,7 +33,7 @@ import os import re import socket import subprocess -from typing import List # noqa: F401 +from typing import List from libqtile import layout, bar, widget, hook from libqtile.config import Click, Drag, Group, Key, Match, Screen, Rule from libqtile.command import lazy @@ -43,7 +43,7 @@ from libqtile.widget import Spacer mod = "mod4" mod1 = "alt" mod2 = "control" -image = '~/Pictures/symbols/arch-linux.png' +image = '~/Pictures/medicine/caduceus-crystal.jpg' @lazy.function def window_to_prev_group(qtile): @@ -173,14 +173,21 @@ keys = [ ), ### Volume controls Key([], "XF86AudioLowerVolume", - lazy.spawn('amixer -D pulse sset Master 5%-'), + lazy.spawn('amixer sset Master 5%-'), desc="Decrease volume" ), Key([], "XF86AudioRaiseVolume", - lazy.spawn('amixer -D pulse sset Master 5%+'), + lazy.spawn('amixer sset Master 5%+'), desc="Increase volume" ), - ] + ### Change languages + Key([mod], "F1", + lazy.spawn("setxkbmap us"), + desc= "change to US layout"), + Key([mod],"F2", + lazy.spawn("setxkbmap gr"), + desc= "change to greek layout"), + ] @@ -265,7 +272,7 @@ def init_colors(): ["#2F343F", "#2F343F"], # color 2 ["#c0c5ce", "#c0c5ce"], # color 3 ["#fba922", "#fba922"], # color 4 - ["#3384d0", "#3384d0"], # Blue + ["#3384d0", "#3384d0"], # Blue 5 ["#f3f4f5", "#f3f4f5"], # color 6 ["#cd1f3f", "#cd1f3f"], # color 7 ["#62FF00", "#62FF00"], # color 8 @@ -348,14 +355,50 @@ def init_widgets_list(): foreground = colors[2], background = colors[1] ), - # widget.TextBox( - # font="FontAwesome", - # text=" ", - # foreground=colors[4], - # background=colors[1], - # padding = 0, - # fontsize=18 - # ), + widget.Net( + format='{interface}: U {up} D {down} T {total}' + ), + widget.Sep( + 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] + ), + widget.ThermalSensor( + 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], |