Multiples fixes:
* [volume: Use '/usr/bin/env bash' as shebang](cd182fd4f2 (diff-210ab9e731c9c36c2c38db15c28a8d1c)) On some systems (e.g. NixOS, openBSD) Bash isn't located or symlinked at `/bin/bash`. This change ensures that the correct path is used across different operating systems. * [volume: add LABEL support](be3f4ae715 (diff-210ab9e731c9c36c2c38db15c28a8d1c)) * [volume: use injected properties](50b2b6ee53 (diff-210ab9e731c9c36c2c38db15c28a8d1c)) See #132 * [volume: pulse-detection: explicitly try the "pulse" device](777a056cce (diff-210ab9e731c9c36c2c38db15c28a8d1c)) Because it's available on some systems (for which pulse is the right option), but not the default, so `amixer info` will not give the right result. When this command succeeds, there is no more need to check the output. Additionally removed a wrong test bracket (not neccessary and not working for all bash versions). * [volume: don't check for pulse via lsmod but command](67dba4fca9 (diff-210ab9e731c9c36c2c38db15c28a8d1c)) - check if command `pulseaudio` exists - check if pulse is running - in the case that pulse is detected, still check if the mixer name "pulse" exists - instruction for manual setting in README Fixes vivien/i3blocks#236 Fixes vivien/i3blocks#201 Fixes: vivien/i3blocks#281 * [volume: allow device names to include numbers](1b3efc6e44 (diff-210ab9e731c9c36c2c38db15c28a8d1c)): Fixes: vivien/i3blocks#281
This commit is contained in:
7
config
7
config
@@ -225,9 +225,10 @@ exec --no-startup-id conky
|
||||
# exec --no-startup-id aarchup
|
||||
|
||||
# Pulse Audio controls
|
||||
bindsym XF86AudioRaiseVolume exec --no-startup-id amixer -q -D pulse sset Master 5%+; exec pkill -SIGRTMIN+10 i3blocks #increase sound volume
|
||||
bindsym XF86AudioLowerVolume exec --no-startup-id amixer -q -D pulse sset Master 5%-; exec pkill -SIGRTMIN+10 i3blocks #decrease sound volume
|
||||
bindsym XF86AudioMute exec --no-startup-id amixer -q -D pulse sset Master toggle; exec pkill -SIGRTMIN+10 i3blocks # mute sound
|
||||
exec --no-startup-id pulseaudio --start
|
||||
bindsym XF86AudioRaiseVolume exec --no-startup-id amixer -q -D pulse sset Master 5%+ && pkill -SIGRTMIN+10 i3blocks #increase sound volume
|
||||
bindsym XF86AudioLowerVolume exec --no-startup-id amixer -q -D pulse sset Master 5%- && pkill -SIGRTMIN+10 i3blocks #decrease sound volume
|
||||
bindsym XF86AudioMute exec --no-startup-id amixer -q -D pulse sset Master toggle && pkill -SIGRTMIN+10 i3blocks # mute sound
|
||||
|
||||
# Enable devices USB
|
||||
# bindsym $mod+m exec --no-startup-id "udisksctl mount -b /dev/sdb1"
|
||||
|
||||
Reference in New Issue
Block a user