From 4a6ddb5e4f15c32650bb62111218298cacb24fa7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20Wadstr=C3=B6m?= Date: Mon, 25 May 2020 10:38:45 +0200 Subject: [PATCH] Removed fault tmux bindings and added media keys to sway --- .config/sway/config | 12 ++++++++++++ .tmux.conf | 2 -- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/.config/sway/config b/.config/sway/config index 39c8c6b..d346755 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -41,6 +41,18 @@ bindsym $mod+Shift+e exec swaynag -t warning -m 'Do you want to exit?' -b 'Yes' bindsym --release $mod+Escape exec makoctl dismiss +# Media controls +bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5% +bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5% +bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle +bindsym XF86AudioMicMute exec pactl set-source-mute @DEFAULT_SOURCE@ toggle +bindsym XF86MonBrightnessDown exec brightnessctl set 5%- +bindsym XF86MonBrightnessUp exec brightnessctl set +5% +bindsym --locked XF86AudioPlay exec playerctl play-pause +bindsym XF86AudioNext exec playerctl next +bindsym XF86AudioPrev exec playerctl previous + + # # Moving around: # diff --git a/.tmux.conf b/.tmux.conf index 1a05897..48775f0 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -45,10 +45,8 @@ bind-key -r -T prefix k select-pane -U bind-key -r -T prefix l select-pane -R # Swap panes using shift -bind-key -r -T prefix H swap-pane -L bind-key -r -T prefix J swap-pane -D bind-key -r -T prefix K swap-pane -U -bind-key -r -T prefix L swap-pane -R # Resize by holding ctrl bind-key -r -T prefix C-h resize-pane -L 10