diff options
Diffstat (limited to '.config')
-rw-r--r-- | .config/qtile/keys.py | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/.config/qtile/keys.py b/.config/qtile/keys.py index 538d57f..9cebc14 100644 --- a/.config/qtile/keys.py +++ b/.config/qtile/keys.py @@ -6,13 +6,12 @@ from libqtile.config import Click, Drag class MyKeys(): - def __init__(self,mod,browser,term,editor): + def __init__(self, mod, browser, term, editor): self.mod = mod self.browser = browser self.term = term self.editor = editor - def init_keys(self): my_keys = [ Key([self.mod], "Return", @@ -54,18 +53,18 @@ class MyKeys(): Key([self.mod, "shift"], "e", lazy.spawn(self.editor), ), - ### Switch focus of monitors + # Switch focus of monitors Key([self.mod], "period", lazy.next_screen(), ), - ### Treetab controls + # Treetab controls Key([self.mod, "shift"], "h", lazy.layout.move_left(), ), Key([self.mod, "shift"], "l", lazy.layout.move_right(), ), - ### Window controls + # Window controls Key([self.mod], "j", lazy.layout.down(), ), @@ -100,7 +99,7 @@ class MyKeys(): Key([self.mod], "f", lazy.window.toggle_fullscreen(), ), - ### Stack controls + # Stack controls Key([self.mod, "shift"], "Tab", lazy.layout.rotate(), lazy.layout.flip(), @@ -108,24 +107,24 @@ class MyKeys(): Key([self.mod, "shift"], "space", lazy.layout.toggle_split(), ), - ### Volume controls + # Volume controls Key([], "XF86AudioLowerVolume", lazy.spawn('amixer sset Master 5%-'), ), Key([], "XF86AudioRaiseVolume", lazy.spawn('amixer sset Master 5%+'), ), - ### Spotify + # Spotify Key([self.mod, "shift"], "p", - lazy.spawn("spotify-control play-pause"), + lazy.spawn("mocp -G "), ), Key([self.mod, "shift"], "n", - lazy.spawn("spotify-control next"), + lazy.spawn("mocp -f"), ), Key([self.mod, "shift"], "b", - lazy.spawn("spotify-control previous"), + lazy.spawn("mocp -r"), ), - ### Change languages + # Change languages Key([self.mod], "F1", lazy.spawn("setxkbmap us -option caps:swapescape"), ), |