mirror of
https://github.com/balkian/dotfiles.git
synced 2024-11-21 19:52:29 +00:00
New scripts for xfce4 and awesomewm
This commit is contained in:
parent
31c66736a7
commit
3dea661140
14
change-xfce4-alt-tab.sh
Executable file
14
change-xfce4-alt-tab.sh
Executable file
@ -0,0 +1,14 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
OLD_VALUE=$(xfconf-query -c xfwm4 -p /general/cycle_workspaces)
|
||||||
|
|
||||||
|
if [ $OLD_VALUE == "true" ]; then
|
||||||
|
echo 'will now disable workspace cycling'
|
||||||
|
NEW_VALUE="false"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ $OLD_VALUE == "false" ]; then
|
||||||
|
echo 'will now turn on workspace cycling'
|
||||||
|
NEW_VALUE="true"
|
||||||
|
fi
|
||||||
|
|
||||||
|
xfconf-query -c xfwm4 -p /general/cycle_workspaces -s $NEW_VALUE
|
2
volume-down.sh
Executable file
2
volume-down.sh
Executable file
@ -0,0 +1,2 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
pacmd dump|awk --non-decimal-data '$1~/set-sink-volume/{system ("pacmd "$1" "$2" "$3-1000)}'
|
2
volume-toggle-mute.sh
Executable file
2
volume-toggle-mute.sh
Executable file
@ -0,0 +1,2 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
pacmd dump|awk --non-decimal-data '$1~/set-sink-mute/{system ("pacmd "$1" "$2" "($3=="yes"?"no":"yes"))}'
|
2
volume-up.sh
Executable file
2
volume-up.sh
Executable file
@ -0,0 +1,2 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
pacmd dump|awk --non-decimal-data '$1~/set-sink-volume/{system ("pacmd "$1" "$2" "$3+1000)}'
|
Loading…
Reference in New Issue
Block a user