switched from pactl to wpctl
This commit is contained in:
parent
9cc8295b61
commit
1f222800b7
2 changed files with 8 additions and 9 deletions
|
@ -55,7 +55,7 @@ Font "Noto Sans" Regular 14
|
||||||
timeout 180 'swaymsg "output * power off"' resume 'swaymsg "output * power on"' \
|
timeout 180 'swaymsg "output * power off"' resume 'swaymsg "output * power on"' \
|
||||||
timeout 185 'systemctl suspend' \
|
timeout 185 'systemctl suspend' \
|
||||||
before-sleep '$lock' \
|
before-sleep '$lock' \
|
||||||
|
# You can get the names of your inputs by running: swaymsg -t get_outputs
|
||||||
|
|
||||||
### Input configuration
|
### Input configuration
|
||||||
input type:keyboard {
|
input type:keyboard {
|
||||||
|
@ -106,10 +106,10 @@ Font "Noto Sans" Regular 14
|
||||||
# Multimedia keys
|
# Multimedia keys
|
||||||
#
|
#
|
||||||
# Pulse Audio controls
|
# Pulse Audio controls
|
||||||
bindsym --locked XF86AudioRaiseVolume exec wpctl set-sink-volume @DEFAULT_SINK@ +5%
|
bindsym --locked XF86AudioRaiseVolume exec wpctl set-volume @DEFAULT_SINK@ 5%+ -l 1.2
|
||||||
bindsym --locked XF86AudioLowerVolume exec wpctl set-sink-volume @DEFAULT_SINK@ -5%
|
bindsym --locked XF86AudioLowerVolume exec wpctl set-volume @DEFAULT_SINK@ 5%- -l 1.2
|
||||||
bindsym --locked XF86AudioMute exec wpctl set-sink-mute @DEFAULT_SINK@ toggle
|
bindsym --locked XF86AudioMute exec wpctl set-mute @DEFAULT_SINK@ toggle
|
||||||
bindsym --locked XF86AudioMicMute exec wpctl set-source-mute @DEFAULT_SOURCE@ toggle
|
bindsym --locked XF86AudioMicMute exec wpctl set-mute @DEFAULT_SOURCE@ toggle
|
||||||
# Display controls
|
# Display controls
|
||||||
bindsym --locked XF86MonBrightnessDown exec brightnessctl set 5%-
|
bindsym --locked XF86MonBrightnessDown exec brightnessctl set 5%-
|
||||||
bindsym --locked XF86MonBrightnessUp exec brightnessctl set +5%
|
bindsym --locked XF86MonBrightnessUp exec brightnessctl set +5%
|
||||||
|
|
|
@ -8,8 +8,8 @@ audio_muted=$(
|
||||||
pactl get-sink-mute @DEFAULT_SINK@ |
|
pactl get-sink-mute @DEFAULT_SINK@ |
|
||||||
awk '{ print $2=="yes" ? "🔇":"🔉" }')
|
awk '{ print $2=="yes" ? "🔇":"🔉" }')
|
||||||
audio_volume=$(
|
audio_volume=$(
|
||||||
pactl get-sink-volume @DEFAULT_SINK@ |
|
wpctl get-volume @DEFAULT_SINK@ |
|
||||||
awk '{ print $5 }')
|
awk '{ print $2 }')
|
||||||
|
|
||||||
is_wayland=$(
|
is_wayland=$(
|
||||||
swaymsg -t get_tree |
|
swaymsg -t get_tree |
|
||||||
|
@ -29,5 +29,4 @@ battery=$(
|
||||||
|
|
||||||
output=""
|
output=""
|
||||||
if [[ $is_wayland != "" ]]; then output="$is_wayland | "; fi
|
if [[ $is_wayland != "" ]]; then output="$is_wayland | "; fi
|
||||||
if [[ $battery != "" ]]; then ouptut="$output$battery | "; fi
|
echo $output $battery "|" $audio_volume $audio_muted "|" $date_formatted
|
||||||
echo $output $audio_volume $audio_muted "|" $date_formatted
|
|
||||||
|
|
Loading…
Reference in a new issue