7 WIN="$(xdotool getactivewindow)"
8 wmctrl -i -r ${WIN} -b remove,maximized_vert,maximized_horz
9 xdotool windowsize ${WIN} 100% 100%
10 wmctrl -i -r ${WIN} -b add,maximized_vert,maximized_horz
14 wmctrl -x -a $1 || true
19 wmctrl -x -a rhythmbox || wmctrl -x -a spotify || true
32 _cmd_appsel gnome-terminal
35 cmd_appsel_chrome () {
40 APPSEL_START=$(date +%s)
41 if [ $APPSEL_START -lt $(expr $LAST_APPSEL_START + 10) ]; then
44 LAST_APPSEL_START=$APPSEL_START
45 notify-send -t 1000 "Please select an application!" -c device -u low \
46 -i /usr/share/icons/Adwaita/24x24/devices/video-display.png
64 cmd="$(echo $l | cut -d: -f2-)"
66 echo "Got command: ${cmd}"
68 if type cmd_${cmd} >/dev/null 2>&1; then