From 285f2e92cc2ef2fb0090d03817af4018673b7b70 Mon Sep 17 00:00:00 2001 From: Joseph Ferano Date: Mon, 4 Dec 2023 18:40:46 +0700 Subject: [PATCH] QTile: A few keybindings --- .config/qtile/config.py | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.config/qtile/config.py b/.config/qtile/config.py index 9356809..f91e30e 100644 --- a/.config/qtile/config.py +++ b/.config/qtile/config.py @@ -68,11 +68,14 @@ keys = [ # Switch between windows # .when(wm_class != 'kitty') # Key([mod], "h", lazy.function(move_focus, direction='left'), desc="Move focus to left"), - Key([mod], "h", lazy.layout.left().when(focused=Match(wm_class=re.compile('(?![Ee]macs)'))), desc="Move focus to left"), - Key([mod], "j", lazy.layout.down().when(focused=Match(wm_class=re.compile('(?![Ee]macs)'))), desc="Move focus to left"), - Key([mod], "k", lazy.layout.up().when(focused=Match(wm_class=re.compile('(?![Ee]macs)'))), desc="Move focus to left"), - Key([mod], "l", lazy.layout.right().when(focused=Match(wm_class=re.compile('(?![Ee]macs)'))), desc="Move focus to left"), - Key([alt], "tab", lazy.layout.next(), desc="Move window focus to other window"), + # Key([mod], "h", lazy.layout.left().when(focused=Match(wm_class=re.compile('(?![Ee]macs)'))), desc="Move focus to left"), + # Key([mod], "j", lazy.layout.down().when(focused=Match(wm_class=re.compile('(?![Ee]macs)'))), desc="Move focus to left"), + # Key([mod], "k", lazy.layout.up().when(focused=Match(wm_class=re.compile('(?![Ee]macs)'))), desc="Move focus to left"), + # Key([mod], "l", lazy.layout.right().when(focused=Match(wm_class=re.compile('(?![Ee]macs)'))), desc="Move focus to left"), + # Key([alt], "tab", lazy.layout.next(), desc="Move window focus to other window"), + + Key([mod], "o", lazy.layout.normalize(), desc="Move window focus to other window"), + Key([alt], "tab", lazy.layout.previous(), desc="Move window focus to other window"), Key([mod], "tab", lazy.screen.toggle_group(), desc="Toggle Group"), # Eventually we should switch back to emacs app launcher Key([mod], "space", lazy.spawn("rofi -show drun -theme Arc-Dark.rasi"), desc="Open Rofi"), @@ -105,6 +108,7 @@ keys = [ Key([mod, "shift"], "comma", lazy.prev_screen(), desc="Move focus to left screen"), Key([mod, "shift"], "period", lazy.next_screen(), desc="Move focus to left screen"), Key([mod], "w", lazy.next_layout(), desc="Toggle between layouts"), + Key([mod], "s", lazy.spawn("flameshot gui"), desc="Flameshot screenshot"), # TODO: Figure out another binding for this # Key([mod], "n", lazy.layout.normalize(), desc="Reset all window sizes"),