Skip to content

Commit

Permalink
Add wob support
Browse files Browse the repository at this point in the history
adding wob indicator for volume and brightness. Partially addresses #12
  • Loading branch information
denisok authored Jul 31, 2020
1 parent 70b35df commit 685d167
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .config/sway/config.d/50-openSUSE.conf
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,14 @@ bindsym --to-code {
}

# Media keys
bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
bindsym XF86AudioMicMute exec pactl set-source-mute @DEFAULT_SOURCE@ toggle
bindsym XF86MonBrightnessDown exec brightnessctl set 5%-
bindsym XF86MonBrightnessUp exec brightnessctl set +5%

bindsym XF86MonBrightnessDown exec brightnessctl -q set 5%- && brightnessctl get > $SWAYSOCK.wob
bindsym XF86MonBrightnessUp exec brightnessctl -q set +5% && brightnessctl get > $SWAYSOCK.wob

bindsym XF86AudioRaiseVolume exec pamixer -ui 2 && pamixer --get-volume > $SWAYSOCK.wob
bindsym XF86AudioLowerVolume exec pamixer -ud 2 && pamixer --get-volume > $SWAYSOCK.wob
bindsym XF86AudioMute exec pamixer --toggle-mute && ( pamixer --get-mute && echo 0 > $SWAYSOCK.wob )

#
# Status Bar:
Expand All @@ -48,4 +50,5 @@ exec_always {
gsettings set org.gnome.desktop.interface gtk-theme 'Adwaita-dark'
gsettings set org.gnome.desktop.interface icon-theme 'Adwaita-dark'
gsettings set org.gnome.desktop.interface cursor-theme 'Adwaita-dark'
mkfifo $SWAYSOCK.wob && tail -f $SWAYSOCK.wob | wob
}

0 comments on commit 685d167

Please sign in to comment.