From 4e7a8977443c54839d194320e88b204b00d613da Mon Sep 17 00:00:00 2001 From: Thanos Apollo Date: Mon, 8 Apr 2024 18:02:25 +0300 Subject: qtile: Update keybindings --- .config/qtile/config.py | 32 +++++++++++++++++--------------- 1 file changed, 17 insertions(+), 15 deletions(-) (limited to '.config/qtile/config.py') diff --git a/.config/qtile/config.py b/.config/qtile/config.py index 18bfec4..aa00e5c 100644 --- a/.config/qtile/config.py +++ b/.config/qtile/config.py @@ -100,6 +100,7 @@ def init_widgets_list(): widget.Spacer(length=7, padding=10,), widget.Volume( fontsize=15, + get_volume_command="amixer get Master | awk '/Front Left:/ { print substr($5, 2, length($5)-2) }'", fmt='{} ', foreground=monokai['yellow'], margin=10,), @@ -190,22 +191,23 @@ browser = "firefox" keys = [ Key([mod],"r",lazy.spawn("rofi -show drun -modi drun -show-icons"),), Key([mod, "shift"], "l", lazy.spawn("slock")), - Key([mod],"q",lazy.window.kill(),), - Key([mod,"shift"],"r",lazy.restart(),), + Key([mod],"q",lazy.window.kill()), + Key([mod,"shift"],"r",lazy.restart()), # Switch focus of monitors - Key([mod],"period",lazy.next_screen(),), + Key([mod],"period",lazy.next_screen()), # Treetab controls - Key([mod,"shift"],"b",lazy.layout.move_left(),), - Key([mod,"shift"],"f",lazy.layout.move_right(),), + Key([mod,"shift"],"b",lazy.layout.move_left()), + Key([mod,"shift"],"f",lazy.layout.move_right()), # Emacs Key([mod], "Return", lazy.spawn("emacsclient -c")), - KeyChord([mod], "e", [ - Key([], "o", lazy.spawn("emacs")), - Key([], "e", lazy.spawn("emacsclient -c")), - Key([], "p", lazy.spawn("emacsclient -e '(thanos/pass-launcher)'")), - Key([], "d", lazy.spawn("emacs --daemon")), - - ]), + Key([mod], "w", lazy.spawn("emacsclient -e '(thanos/pass-launcher)'")), + # KeyChord([mod], "e", [ + # Key([], "o", lazy.spawn("emacs")), + # Key([], "e", lazy.spawn("emacsclient -c")), + # Key([], "p", lazy.spawn("emacsclient -e '(thanos/pass-launcher)'")), + # Key([], "d", lazy.spawn("emacs --daemon")), + + # ]), # Layout control KeyChord([mod], "l", [ Key([], "n", lazy.next_layout()), @@ -231,9 +233,9 @@ keys = [ Key([],"F9", lazy.spawn("setxkbmap gr -option ctrl:swapcas")), Key([],"F10", lazy.spawn("setxkbmap us -option ctrl:swapcaps")), # Thinkpad - Key([],"F1", lazy.spawn("doas brightnessctl --device='intel_backlight' set 5%-")), - Key([],"F2", lazy.spawn("doas brightnessctl --device='intel_backlight' set +5%")), - Key([],"F4", (lazy.spawn("doas /home/thanos/.scripts/keyboard-light-x220.sh"))), + Key([],"F1", lazy.spawn("brightnessctl --device='intel_backlight' set 5%-")), + Key([],"F2", lazy.spawn("brightnessctl --device='intel_backlight' set +5%")), + Key([],"F4", (lazy.spawn("/home/thanos/.scripts/keyboard-light-x220.sh"))), Key([mod, "control"], "q", lazy.shutdown()), ] -- cgit v1.2.3