From 942538e939f5ea331a8c45eb36a9f3918849807f Mon Sep 17 00:00:00 2001 From: ThanosApollo Date: Sun, 14 Aug 2022 17:11:40 +0300 Subject: Update Qtile --- .config/qtile/config.py | 30 ++++++++++++++++++++++-------- 1 file changed, 22 insertions(+), 8 deletions(-) (limited to '.config/qtile') 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' +@hook.subscribe.startup_once +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() -@hook.subscribe.startup_once -def start_once(): - autostart_path = os.path.expanduser('~/.config/autostart/autostart.sh') - subprocess.run([autostart_path]) - follow_mouse_focus = True -- cgit v1.2.3