[aranea] i3: replace volumeicon with keybindings + status element

This commit is contained in:
Lexi / Zoe 2020-03-01 20:07:28 +01:00
parent b710c5b433
commit 713cce8fef
Signed by: binaryDiv
GPG Key ID: F8D4956E224DA232
2 changed files with 12 additions and 1 deletions

View File

@ -341,6 +341,11 @@ bindsym XF86Tools exec --no-startup-id "loginctl lock-session"
# ~~ Display/projector key: auto detect displays # ~~ Display/projector key: auto detect displays
bindsym XF86Display exec --no-startup-id "~/bin/xrandr-autodetect" bindsym XF86Display exec --no-startup-id "~/bin/xrandr-autodetect"
# ~~ Volume keys
bindsym XF86AudioRaiseVolume exec --no-startup-id "volctl up"
bindsym XF86AudioLowerVolume exec --no-startup-id "volctl down"
bindsym XF86AudioMute exec --no-startup-id "volctl mute toggle"
# ~~ Switch between PulseAudio profiles (analog/HDMI) using Shift + Mute key # ~~ Switch between PulseAudio profiles (analog/HDMI) using Shift + Mute key
# TODO # TODO
#bindsym Shift+XF86AudioMute exec --no-startup-id "~/bin/paprofile -n toggle" #bindsym Shift+XF86AudioMute exec --no-startup-id "~/bin/paprofile -n toggle"
@ -357,6 +362,5 @@ bindsym $mod+Print exec gnome-screenshot -i
# ~~ Run background applications # ~~ Run background applications
exec --no-startup-id redshift-gtk exec --no-startup-id redshift-gtk
exec --no-startup-id volumeicon
exec --no-startup-id nextcloud exec --no-startup-id nextcloud

View File

@ -23,6 +23,7 @@ order += "battery 1"
order += "cpu_temperature 0" order += "cpu_temperature 0"
order += "load" order += "load"
order += "tztime local" order += "tztime local"
order += "volume master"
order += "spaceapi" order += "spaceapi"
@ -80,6 +81,12 @@ tztime local {
format = "%Y-%m-%d %H:%M:%S" format = "%Y-%m-%d %H:%M:%S"
} }
# ~~ Volume control display
volume master {
format = "🔉 %volume"
format_muted = "🔇 %volume"
device = "pulse"
}
# ~~ CPU temperature # ~~ CPU temperature
cpu_temperature 0 { cpu_temperature 0 {