clean a bit #1

Merged
nnduc merged 2 commits from main into 2025 2025-08-04 03:15:29 +00:00
3 changed files with 28 additions and 30 deletions
Showing only changes of commit 8deeba646d - Show all commits

View File

@ -50,11 +50,16 @@ exec --no-startup-id gentoo-pipewire-launcher restart &
set $refresh_i3status killall -SIGUSR1 i3status set $refresh_i3status killall -SIGUSR1 i3status
# Use pactl to adjust volume in PulseAudio. # Software volume should not be lower than 80% unless you want to lose dynamic range.
bindsym XF86AudioRaiseVolume exec --no-startup-id wpctl set-volume @DEFAULT_SINK@ 0.02+ --limit 1 && $refresh_i3status set $lower-volume wpctl set-volume @DEFAULT_SINK@ 0.02- && $refresh_i3status
bindsym XF86AudioLowerVolume exec --no-startup-id wpctl set-volume @DEFAULT_SINK@ 0.02- --limit 0 && $refresh_i3status set $raise-volume wpctl set-volume @DEFAULT_SINK@ 0.02+ --limit 1 && $refresh_i3status
bindsym XF86AudioMute exec --no-startup-id wpctl set-mute @DEFAULT_SINK@ toggle && $refresh_i3status set $mute-sink wpctl set-mute @DEFAULT_SINK@ toggle && $refresh_i3status
bindsym XF86AudioMicMute exec --no-startup-id wpctl set-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status set $mute-source wpctl set-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status
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
# Media player key bindings (need media-sound/playerctl for playerctl.) # Media player key bindings (need media-sound/playerctl for playerctl.)
bindsym XF86AudioPlay exec playerctl play bindsym XF86AudioPlay exec playerctl play
@ -66,13 +71,9 @@ bindsym $mod+Shift+comma exec playerctl previous
bindsym $mod+Shift+period exec playerctl next bindsym $mod+Shift+period exec playerctl next
bindsym $mod+Shift+slash exec playerctl play-pause bindsym $mod+Shift+slash exec playerctl play-pause
#bindcode $mod+Shift+58 exec --no-startup-id wpctl set-mute @DEFAULT_SINK@ toggle && $refresh_i3status bindsym $mod+slash exec --no-startup-id $mute-sink
#bindcode $mod+60 exec --no-startup-id wpctl set-volume @DEFAULT_SINK@ 0.02+ --limit 1 && $refresh_i3status bindsym $mod+period exec --no-startup-id $raise-volume
#bindcode $mod+59 exec --no-startup-id wpctl set-volume @DEFAULT_SINK@ 0.02- --limit 0 && $refresh_i3status bindsym $mod+comma exec --no-startup-id $lower-volume
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
# Brightness key bindings # Brightness key bindings
bindsym XF86MonBrightnessUp exec brightnessctl set +5% bindsym XF86MonBrightnessUp exec brightnessctl set +5%
@ -248,6 +249,7 @@ bindsym $mod+r mode "resize"
#floating #floating
for_window [class="Signal"] floating enable for_window [class="Signal"] floating enable
for_window [class="Fluffychat"] floating enable for_window [class="Fluffychat"] floating enable
for_window [class="Proton VPN"] floating enable
for_window [class="Dino"] floating enable for_window [class="Dino"] floating enable
for_window [class="ownCloud"] floating enable for_window [class="ownCloud"] floating enable
for_window [class="firefox"] move container to workspace 1 for_window [class="firefox"] move container to workspace 1

View File

@ -87,14 +87,19 @@ exec --no-startup-id xset m 1/1 0
exec --no-startup-id /usr/lib/pam_kwallet_init exec --no-startup-id /usr/lib/pam_kwallet_init
# Use pactl to adjust volume in PulseAudio. set $lower-volume wpctl set-volume @DEFAULT_SINK@ 0.02-
bindsym XF86AudioRaiseVolume exec --no-startup-id wpctl set-volume @DEFAULT_SINK@ 0.02+ --limit 1 && $refresh_i3status set $raise-volume wpctl set-volume @DEFAULT_SINK@ 0.02+ --limit 1
bindsym XF86AudioLowerVolume exec --no-startup-id wpctl set-volume @DEFAULT_SINK@ 0.02- --limit 0 && $refresh_i3status set $mute-sink wpctl set-mute @DEFAULT_SINK@ toggle
bindsym XF86AudioMute exec --no-startup-id wpctl set-mute @DEFAULT_SINK@ toggle && $refresh_i3status set $mute-source wpctl set-mute @DEFAULT_SOURCE@ toggle
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 XF86AudioRaiseVolume exec --no-startup-id raise-volume
bindsym $mod+comma exec --no-startup-id wpctl set-volume @DEFAULT_SINK@ 0.02- --limit 0 && $refresh_i3status 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 # Brightness key bindings
@ -139,7 +144,7 @@ bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session) # 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+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 bindsym $mod+Shift+l exec swaymsg exit
# #
# Moving around: # Moving around: