changes to neovim and tmux
This commit is contained in:
@@ -61,8 +61,6 @@ static const Key keys[] = {
|
||||
|
||||
{ 0, XF86XK_AudioRaiseVolume, spawn, SHCMD("sh /home/andrew/.config/suckless/dwm/scripts/volume.sh up") },
|
||||
{ 0, XF86XK_AudioLowerVolume, spawn, SHCMD("sh /home/andrew/.config/suckless/dwm/scripts/volume.sh down") },
|
||||
// { 0, XF86XK_AudioRaiseVolume, spawn, SHCMD("pactl set-sink-volume @DEFAULT_SINK@ +2%") },
|
||||
// { 0, XF86XK_AudioLowerVolume, spawn, SHCMD("pactl set-sink-volume @DEFAULT_SINK@ -2%") },
|
||||
|
||||
TAGKEYS( XK_1, 0 )
|
||||
TAGKEYS( XK_2, 1 )
|
||||
|
||||
@@ -7,4 +7,8 @@ elif [ "$1" == "down" ]; then
|
||||
fi
|
||||
|
||||
TEST=$(wpctl get-volume @DEFAULT_AUDIO_SINK@ | awk '{printf "%d%%", $2 * 100}')
|
||||
dunstify "Volume: ${TEST}" -h int:value:${TEST%%%} -h string:synchronous:volume
|
||||
if [[ -z "${TEST}" ]]; then
|
||||
dunstify "Volume: No working" -h string:synchronous:volume
|
||||
else
|
||||
dunstify "Volume: ${TEST}" -h int:value:${TEST%%%} -h string:synchronous:volume
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user