Skip to content

Commit

Permalink
feat: allow audio buttons during lockscreen (#103)
Browse files Browse the repository at this point in the history
Use-case scenario when music is playing, but the screen is locked and you quickly would like to mute the device.
  • Loading branch information
nnuel authored and boredland committed Aug 11, 2022
1 parent 25bbc93 commit 8142c2c
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions community/sway/etc/sway/modes/default
Original file line number Diff line number Diff line change
Expand Up @@ -25,22 +25,24 @@ floating_modifier $mod normal
## Action // Reload Sway Configuration ##
$bindsym $mod+Shift+c reload

## Action // Toggle Waybar ##
## Action // Toggle Waybar ##
# --locked flags allow the buttons to be used whilst the screen is locked.

$bindsym $mod+Shift+b exec pkill -SIGUSR1 waybar

$bindsym XF86AudioRaiseVolume exec $volume_up
$bindsym --locked XF86AudioRaiseVolume exec $volume_up

$bindsym XF86AudioLowerVolume exec $volume_down
$bindsym --locked XF86AudioLowerVolume exec $volume_down

$bindsym XF86AudioMute exec $volume_mute
$bindsym --locked XF86AudioMute exec $volume_mute

$bindsym XF86AudioMicMute exec $mic_mute

$bindsym --locked XF86MonBrightnessUp exec $brightness_up

$bindsym --locked XF86MonBrightnessDown exec $brightness_down

$bindsym XF86AudioPlay exec playerctl play-pause
$bindsym --locked XF86AudioPlay exec playerctl play-pause

$bindsym XF86AudioNext exec playerctl next

Expand All @@ -52,7 +54,6 @@ $bindsym XF86PowerOff exec $shutdown

$bindsym XF86TouchpadToggle input type:touchpad events toggle enabled disabled

#
# Moving around:
#
# Move your focus around
Expand Down

0 comments on commit 8142c2c

Please sign in to comment.