clean a bit

This commit is contained in:
nnduc
2025-08-04 10:12:42 +07:00
parent e4e6c4e7b1
commit 8deeba646d
2 changed files with 28 additions and 21 deletions

View File

@ -87,14 +87,19 @@ exec --no-startup-id xset m 1/1 0
exec --no-startup-id /usr/lib/pam_kwallet_init
# Use pactl to adjust volume in PulseAudio.
bindsym XF86AudioRaiseVolume exec --no-startup-id wpctl set-volume @DEFAULT_SINK@ 0.02+ --limit 1 && $refresh_i3status
bindsym XF86AudioLowerVolume exec --no-startup-id wpctl set-volume @DEFAULT_SINK@ 0.02- --limit 0 && $refresh_i3status
bindsym XF86AudioMute exec --no-startup-id wpctl set-mute @DEFAULT_SINK@ toggle && $refresh_i3status
bindsym XF86AudioMicMute exec --no-startup-id wpctl set-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status
bindsym $mod+slash exec --no-startup-id wpctl set-mute @DEFAULT_SINK@ toggle && $refresh_i3status
bindsym $mod+period exec --no-startup-id wpctl set-volume @DEFAULT_SINK@ 0.02+ --limit 1 && $refresh_i3status
bindsym $mod+comma exec --no-startup-id wpctl set-volume @DEFAULT_SINK@ 0.02- --limit 0 && $refresh_i3status
set $lower-volume wpctl set-volume @DEFAULT_SINK@ 0.02-
set $raise-volume wpctl set-volume @DEFAULT_SINK@ 0.02+ --limit 1
set $mute-sink wpctl set-mute @DEFAULT_SINK@ toggle
set $mute-source wpctl set-mute @DEFAULT_SOURCE@ toggle
bindsym XF86AudioRaiseVolume exec --no-startup-id raise-volume
bindsym XF86AudioLowerVolume exec --no-startup-id lower-volume
bindsym XF86AudioMute exec --no-startup-id $mute-sink
bindsym XF86AudioMicMute exec --no-startup-id $mute-source
bindsym $mod+slash exec --no-startup-id wpctl $mute-sink
bindsym $mod+period exec --no-startup-id $raise-volume
bindsym $mod+comma exec --no-startup-id $lower-volume
# Brightness key bindings
@ -139,7 +144,7 @@ bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
#bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
bindsym $mod+Shift+p exec systemctl poweroff
bindsym $mod+Shift+p exec loginctl poweroff
bindsym $mod+Shift+l exec swaymsg exit
#
# Moving around: