i3: move from volumeicon to pasystray & pactl to pulsemixer

+ notify-send

Closes #99
This commit is contained in:
Aminda Suomalainen 2019-02-06 21:36:22 +02:00
parent 89997f8c26
commit 38d10ca94e
No known key found for this signature in database
GPG Key ID: 0C207F07B2F32B67

View File

@ -2,7 +2,7 @@
# Debian: i3 suckless-tools rxvt-unicode-256color j4-dmenu-desktop # Debian: i3 suckless-tools rxvt-unicode-256color j4-dmenu-desktop
# gnome-screenshot i3lock sudo hibernate playerctl pulseaudio-utils # gnome-screenshot i3lock sudo hibernate playerctl pulseaudio-utils
# galculator network-manager-gnome redshift-gtk x11-xserver-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 # 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 bindsym XF86AudioPlay exec --no-startup-id playerctl play-pause
# Volume keys NOTE: won't work if nothing is playing (which I consider an improvement # 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). # over randomly stopping working as I enable and disable audio devices).
set $sink $(pactl list short sinks | grep RUNNING | cut -f1) #set $sink $(pactl list short sinks | grep RUNNING | cut -f1)
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume $sink -5% #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% #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 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 # Float these apps by default
for_window [title="^Mozilla Firefox$"] floating enable for_window [title="^Mozilla Firefox$"] floating enable
@ -192,7 +196,7 @@ for_window [title="galculator"] floating enable
# Autostarts # Autostarts
exec --no-startup-id nm-applet exec --no-startup-id nm-applet
exec --no-startup-id volumeicon exec --no-startup-id pasystray --notify=all
# Wallpaper, solid black # Wallpaper, solid black
#exec --no-startup-id xsetroot -solid \#000000 #exec --no-startup-id xsetroot -solid \#000000
# ~/.wallpaper as wallpaper # ~/.wallpaper as wallpaper