mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-25 20:59:23 +01:00
i3: fix media keys for PipeWire (pactl)
This commit is contained in:
parent
55bc7da4d8
commit
30704e6520
@ -343,10 +343,11 @@ bindsym XF86Calculator exec --no-startup-id galculator
|
|||||||
bindsym XF86AudioPlay exec --no-startup-id playerctl play-pause && notify-send -t 500 "Play-Pause pressed"
|
bindsym XF86AudioPlay exec --no-startup-id playerctl play-pause && notify-send -t 500 "Play-Pause pressed"
|
||||||
# Volume keys NOTE: won't work if nothing is playing (which I consider an improvement
|
# Volume keys NOTE: won't work if nothing is playing (which I consider an improvement
|
||||||
# over randomly stopping working as I enable and disable audio devices).
|
# over randomly stopping working as I enable and disable audio devices).
|
||||||
#set $sink $(pactl list short sinks | grep RUNNING | cut -f1)
|
# Use this for PipeWire too!
|
||||||
#bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume $sink -5% # && notify-send -t 500 "$(pulsemixer --get-volume)"
|
set $sink $(pactl list short sinks | grep RUNNING | cut -f1)
|
||||||
#bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume $sink +5% # && notify-send -t 500 "$(pulsemixer --get-volume)"
|
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume $sink -5% # && notify-send -t 500 "$(pulsemixer --get-volume)"
|
||||||
#bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute $sink toggle # mute sound
|
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume $sink +5% # && notify-send -t 500 "$(pulsemixer --get-volume)"
|
||||||
|
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute $sink toggle # mute sound
|
||||||
# Apparently pasystray alerts me of the status changes, so I don't have to
|
# Apparently pasystray alerts me of the status changes, so I don't have to
|
||||||
# echo them by myself.
|
# echo them by myself.
|
||||||
# pulseaudio bindings. pulsemixer is not available for Fedora or pipewire?
|
# pulseaudio bindings. pulsemixer is not available for Fedora or pipewire?
|
||||||
@ -355,9 +356,9 @@ bindsym XF86AudioPlay exec --no-startup-id playerctl play-pause && notify-send -
|
|||||||
#bindsym XF86AudioMute exec --no-startup-id pulsemixer --toggle-mute # && notify-send -t 500 "🔇 pressed"
|
#bindsym XF86AudioMute exec --no-startup-id pulsemixer --toggle-mute # && notify-send -t 500 "🔇 pressed"
|
||||||
|
|
||||||
# amixer / alsamixer / alsa bindings
|
# amixer / alsamixer / alsa bindings
|
||||||
bindsym XF86AudioLowerVolume exec --no-startup-id notify-send -t 500 "$(amixer -M set Master 2dB-)"
|
#bindsym XF86AudioLowerVolume exec --no-startup-id notify-send -t 500 "$(amixer -M set Master 2dB-)"
|
||||||
bindsym XF86AudioRaiseVolume exec --no-startup-id notify-send -t 500 "$(amixer -M set Master 2dB+)"
|
#bindsym XF86AudioRaiseVolume exec --no-startup-id notify-send -t 500 "$(amixer -M set Master 2dB+)"
|
||||||
bindsym XF86AudioMute exec --no-startup-id notify-send -t 500 "$(amixer -M set Master toggle)"
|
#bindsym XF86AudioMute exec --no-startup-id notify-send -t 500 "$(amixer -M set Master toggle)"
|
||||||
|
|
||||||
bindsym $mod+p exec arandr
|
bindsym $mod+p exec arandr
|
||||||
bindsym $mod+Shift+p exec arandr
|
bindsym $mod+Shift+p exec arandr
|
||||||
|
Loading…
Reference in New Issue
Block a user