From 7d954cceee4c5237c3543b1eab39f49d5dc31743 Mon Sep 17 00:00:00 2001 From: paul-loedige Date: Tue, 12 Jan 2021 18:16:49 +0100 Subject: [PATCH] improved audio hotkeys --- git/.git-credentials | 2 +- qtile/.config/qtile/config.py | 12 ++++++++---- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/git/.git-credentials b/git/.git-credentials index d4e18dd..df180db 100644 --- a/git/.git-credentials +++ b/git/.git-credentials @@ -1,3 +1,3 @@ https://paul-loedige:VhD%40R46%2ai9k%24tumJgD3T@git.ploedige.com -https://paul-loedige:5SC%24%5e%5eonvuD5Ze@git.owl-racing-team.de https://paul-loedige:yP4vs9rTriqP4b8mK4ohyNHSH@its-gitlab.init.hs-owl.de +https://paul-loedige:5SC%24%5e%5eonvuD5Ze@git.owl-racing-team.de diff --git a/qtile/.config/qtile/config.py b/qtile/.config/qtile/config.py index e8b328f..59138dc 100644 --- a/qtile/.config/qtile/config.py +++ b/qtile/.config/qtile/config.py @@ -89,14 +89,18 @@ keys = [ Key([mod],'p',lazy.spawn("bwmenu --auto-lock -1"),desc="launch bwmenu"), Key([mod],'c',lazy.spawn("rofi -show calc -show-icons -modi drun,calc,ssh"),desc="launch rofi (calc)"), + # audio hotkeys + Key([], 'XF86AudioRaiseVolume', lazy.spawn('pulseaudio-ctl up 1'), desc="increase speaker volume"), + Key([], 'XF86AudioLowerVolume', lazy.spawn('pulseaudio-ctl down 1'), desc="decrease speaker volume"), + Key([], 'XF86AudioMute', lazy.spawn('pulseaudio-ctl mute'), desc="toggle speaker mute"), + Key(['control'], 'XF86AudioRaiseVolume', lazy.spawn('amixer set Capture 1%+'), desc="increase mic volume"), + Key(['control'], 'XF86AudioLowerVolume', lazy.spawn('amixer set Capture 1%-'), desc="decrease mic volume"), + Key(['control'], 'XF86AudioMute', lazy.spawn('amixer set Capture toggle'), desc="toggle mic mute"), + # Media hotkeys - Key([], 'XF86AudioRaiseVolume', lazy.spawn('pulseaudio-ctl up 1')), - Key([], 'XF86AudioLowerVolume', lazy.spawn('pulseaudio-ctl down 1')), - Key([], 'XF86AudioMute', lazy.spawn('pulseaudio-ctl mute')), Key([], 'XF86AudioNext', lazy.spawn('playerctl next')), Key([], 'XF86AudioPrev', lazy.spawn('playerctl previous')), Key([], 'XF86AudioPlay', lazy.spawn('playerctl play-pause')), - Key([],'Pause',lazy.spawn('amixer set Capture toggle'), desc="Toggles Microphone"), ]