Add Volume info to status bar and add backlight controls

This commit is contained in:
Alexander Hosking 2017-05-12 15:07:44 -04:00
parent 8cc6adee58
commit 3ce18805c4
2 changed files with 18 additions and 4 deletions

View File

@ -49,10 +49,16 @@ bindsym Control+space exec --no-startup-id i3-dmenu-desktop
# installed.
# bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
## Volume
bindsym XF86AudioRaiseVolume exec amixer -q set Master 2dB+ unmute
bindsym XF86AudioLowerVolume exec amixer -q set Master 2dB- unmute
bindsym XF86AudioMute exec amixer -q set Master toggle
# Pulse Audio controls
## requires alsa-utils pulseaudio
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl -- set-sink-volume 0 +5% #increase sound volume
bindsym XF86AudioLowerVolume exec --no-startup-id pactl -- set-sink-volume 0 -5% #decrease sound volume
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle # mute sound
# Sreen brightness controls
## requires xbacklight
bindsym XF86MonBrightnessUp exec xbacklight -inc 20 # increase screen brightness
bindsym XF86MonBrightnessDown exec xbacklight -dec 20 # decrease screen brightness
# change focus
bindsym $mod+h focus left

View File

@ -12,6 +12,7 @@ general {
}
#order += "ipv6"
order += "volume master"
order += "disk /"
#order += "run_watch DHCP"
order += "run_watch VPN"
@ -69,3 +70,10 @@ load {
disk "/" {
format = "%avail"
}
volume master {
format = "♪: %volume"
format_muted = "♪: muted (%volume)"
device = "sysdefault"
mixer = "Master"
}