summaryrefslogtreecommitdiff
path: root/.config/qtile/keys.py
diff options
context:
space:
mode:
Diffstat (limited to '.config/qtile/keys.py')
-rw-r--r--.config/qtile/keys.py33
1 files changed, 17 insertions, 16 deletions
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 "),