diff options
author | ThanosApollo <[email protected]> | 2022-10-31 10:09:48 +0200 |
---|---|---|
committer | ThanosApollo <[email protected]> | 2022-10-31 10:09:48 +0200 |
commit | 448b1de1642a163e96c330c123036c94ddf3bf20 (patch) | |
tree | 77cf150475236cb5fc0622370087e15a77352970 | |
parent | 970ffdd161485cf32b0acf31a1804df3f57983f5 (diff) |
Style, swap spotify with moc
-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"), ), |