1
0
mirror of https://github.com/balkian/dotfiles.git synced 2024-11-24 21:22:29 +00:00

New scripts for xfce4 and awesomewm

This commit is contained in:
J.Fernando Sánchez 2012-12-10 13:13:59 +01:00
parent 31c66736a7
commit 3dea661140
4 changed files with 20 additions and 0 deletions

14
change-xfce4-alt-tab.sh Executable file
View 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
View 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
View 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
View File

@ -0,0 +1,2 @@
#!/bin/sh
pacmd dump|awk --non-decimal-data '$1~/set-sink-volume/{system ("pacmd "$1" "$2" "$3+1000)}'