From 70114fdc8048c78e4f9fcbee4835020547427c7c Mon Sep 17 00:00:00 2001 From: ThanosApollo Date: Sun, 20 Nov 2022 14:21:25 +0200 Subject: Add extra volkeys, disable args in mykeys --- .config/qtile/keys.py | 33 +++++++++++++++++---------------- 1 file changed, 17 insertions(+), 16 deletions(-) (limited to '.config/qtile') diff --git a/.config/qtile/keys.py b/.config/qtile/keys.py index a28b71e..c8fc0e8 100644 --- a/.config/qtile/keys.py +++ b/.config/qtile/keys.py @@ -7,26 +7,19 @@ from libqtile.config import Click, Drag class MyKeys(): """ - My usual keybindings. - - I use emacs-like keybindings, I prefer to initialize them - in config.py and change my browser and term in different - machines, or even mod if I'm on a mac. This way I won't have conflicting - keybindings between machines. + Emacs-like keybindings for qtile + I prefer having my keys seperated so I won't mess anything up, + especially if you are running the same config in different machines """ - def __init__(self, mod, browser, term, editor): + def __init__(self): """ - Usual customization. - - I usually change those quite often in my config.py. - I prefer having my keys seperated so I won't mess anything up, - especially if you are running the same config in different machines + Default customization """ - self.mod = mod - self.browser = browser - self.term = term - self.editor = editor + self.mod = "mod4" + self.browser = "firefox" + self.term = "alacritty" + self.editor = "emacsclient -c -a 'emacs'" def init_keys(self): """ @@ -136,6 +129,14 @@ class MyKeys(): Key([], "XF86AudioRaiseVolume", lazy.spawn('amixer sset Master 5%+'), ), + # I use mod+F[key] to change volume in my thinkpad, + # as I dislike using "fn" key in laptops + Key([self.mod], "F11", + lazy.spawn('amixer sset Master 5%-'), + ), + Key([self.mod], "F12", + lazy.spawn('amixer sset Master 5%+'), + ), # Music controls | MOC Key([self.mod], "u", lazy.spawn("mocp -G "), -- cgit v1.2.3