Merge pull request 'clean a bit' (#1) from main into 2025
Reviewed-on: #1
This commit is contained in:
26
i3/config
26
i3/config
@ -50,11 +50,16 @@ exec --no-startup-id gentoo-pipewire-launcher restart &
|
||||
|
||||
set $refresh_i3status killall -SIGUSR1 i3status
|
||||
|
||||
# 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
|
||||
# Software volume should not be lower than 80% unless you want to lose dynamic range.
|
||||
set $lower-volume wpctl set-volume @DEFAULT_SINK@ 0.02- && $refresh_i3status
|
||||
set $raise-volume wpctl set-volume @DEFAULT_SINK@ 0.02+ --limit 1 && $refresh_i3status
|
||||
set $mute-sink wpctl set-mute @DEFAULT_SINK@ 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.)
|
||||
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+slash exec playerctl play-pause
|
||||
|
||||
#bindcode $mod+Shift+58 exec --no-startup-id wpctl set-mute @DEFAULT_SINK@ toggle && $refresh_i3status
|
||||
#bindcode $mod+60 exec --no-startup-id wpctl set-volume @DEFAULT_SINK@ 0.02+ --limit 1 && $refresh_i3status
|
||||
#bindcode $mod+59 exec --no-startup-id wpctl set-volume @DEFAULT_SINK@ 0.02- --limit 0 && $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
|
||||
bindsym $mod+slash exec --no-startup-id $mute-sink
|
||||
bindsym $mod+period exec --no-startup-id $raise-volume
|
||||
bindsym $mod+comma exec --no-startup-id $lower-volume
|
||||
|
||||
# Brightness key bindings
|
||||
bindsym XF86MonBrightnessUp exec brightnessctl set +5%
|
||||
@ -248,6 +249,7 @@ bindsym $mod+r mode "resize"
|
||||
#floating
|
||||
for_window [class="Signal"] floating enable
|
||||
for_window [class="Fluffychat"] floating enable
|
||||
for_window [class="Proton VPN"] floating enable
|
||||
for_window [class="Dino"] floating enable
|
||||
for_window [class="ownCloud"] floating enable
|
||||
for_window [class="firefox"] move container to workspace 1
|
||||
|
23
sway/config
23
sway/config
@ -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:
|
||||
|
Reference in New Issue
Block a user