From 38d10ca94e715ab95e54b88281850ce482af2f83 Mon Sep 17 00:00:00 2001 From: Mikaela Suomalainen Date: Wed, 6 Feb 2019 21:36:22 +0200 Subject: [PATCH] i3: move from volumeicon to pasystray & pactl to pulsemixer + notify-send Closes #99 --- conf/i3/config | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/conf/i3/config b/conf/i3/config index 4ba516f2..77cd706f 100644 --- a/conf/i3/config +++ b/conf/i3/config @@ -2,7 +2,7 @@ # Debian: i3 suckless-tools rxvt-unicode-256color j4-dmenu-desktop # gnome-screenshot i3lock sudo hibernate playerctl pulseaudio-utils # galculator network-manager-gnome redshift-gtk x11-xserver-utils -# volumeicon-alsa feh rofi +# pasystray feh rofi pulsemixer libnotify-bin # Search also for CHANGEME near the bottom @@ -180,10 +180,14 @@ bindsym Mod1+Tab exec --no-startup-id rofi -show window bindsym XF86AudioPlay exec --no-startup-id playerctl play-pause # 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). -set $sink $(pactl list short sinks | grep RUNNING | cut -f1) -bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume $sink -5% -bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume $sink +5% -bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute $sink toggle # mute sound +#set $sink $(pactl list short sinks | grep RUNNING | cut -f1) +#bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume $sink -5% && notify-send -t 500 "$(pulsemixer --get-volume)" +#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 +bindsym XF86AudioLowerVolume exec --no-startup-id pulsemixer --change-volume -5 && notify-send -t 500 "$(pulsemixer --get-volume)" +bindsym XF86AudioRaiseVolume exec --no-startup-id pulsemixer --change-volume +5 && notify-send -t 500 "$(pulsemixer --get-volume)" +bindsym XF86AudioMute exec --no-startup-id pulsemixer --toggle-mute && notify-send -t 500 "🔇 pressed" + # Float these apps by default for_window [title="^Mozilla Firefox$"] floating enable @@ -192,7 +196,7 @@ for_window [title="galculator"] floating enable # Autostarts exec --no-startup-id nm-applet -exec --no-startup-id volumeicon +exec --no-startup-id pasystray --notify=all # Wallpaper, solid black #exec --no-startup-id xsetroot -solid \#000000 # ~/.wallpaper as wallpaper