summaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
authorThanosApollo <[email protected]>2022-08-14 17:11:40 +0300
committerThanosApollo <[email protected]>2022-08-14 17:11:40 +0300
commit942538e939f5ea331a8c45eb36a9f3918849807f (patch)
treea0eeda631e8c2964049b77c53157bf95ff7e641a /.config
parentcc59dafa4eddd0ce37c3e3e46797a9d73461e85f (diff)
Update Qtile
Diffstat (limited to '.config')
-rw-r--r--.config/qtile/config.py30
1 files changed, 22 insertions, 8 deletions
diff --git a/.config/qtile/config.py b/.config/qtile/config.py
index 6bf8cf6..b6fb191 100644
--- a/.config/qtile/config.py
+++ b/.config/qtile/config.py
@@ -42,6 +42,12 @@ mod1 = "alt"
mod2 = "control"
image = '~/Pictures/medicine/caduceus-crystal.jpg'
+def start_once():
+ autostart_path = os.path.expanduser('~/.config/autostart/autostart.sh')
+ subprocess.run([autostart_path])
+
+
@lazy.function
def window_to_prev_group(qtile):
if qtile.currentWindow is not None:
@@ -71,9 +77,9 @@ keys = [
lazy.spawn("dmenu_run -p 'Run: '"),
desc='Run Launcher'
),
- Key([mod], "p",
- lazy.spawn("passmenu -p 'Password for: '"),
- ),
+ # Key([mod], "p",
+ # lazy.spawn("passmenu -p 'Password for: '"),
+ # ),
Key([mod], "b",
lazy.spawn(myBrowser),
desc='Qutebrowser'
@@ -180,6 +186,19 @@ keys = [
lazy.spawn('amixer sset Master 5%+'),
desc="Increase volume"
),
+ ### Music
+ Key([mod, "shift"], "p",
+ lazy.spawn("playerctl play-pause"),
+ desc="play/pause music"
+ ),
+ Key([mod, "shift"], "l",
+ lazy.spawn("playerctl next"),
+ desc="next song"
+ ),
+ Key([mod, "shift"], "h",
+ lazy.spawn("playerctl previous"),
+ desc="previous song"
+ ),
### Change languages
Key([mod], "F1",
lazy.spawn("setxkbmap us"),
@@ -456,11 +475,6 @@ screens = init_screens()
-def start_once():
- autostart_path = os.path.expanduser('~/.config/autostart/autostart.sh')
- subprocess.run([autostart_path])
-
follow_mouse_focus = True