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 || \
20 wmctrl -x -a banshee || wmctrl -x -a kodi || true
33 _cmd_appsel gnome-terminal
36 cmd_appsel_chrome () {
41 if [ ! -z "${DISABLE_APPSEL_START}" ]; then
45 APPSEL_START=$(date +%s)
46 if [ $APPSEL_START -lt $(expr $LAST_APPSEL_START + 10) ]; then
49 LAST_APPSEL_START=$APPSEL_START
50 notify-send -t 1000 "Please select an application!" -c device -u low \
51 -i /usr/share/icons/Adwaita/24x24/devices/video-display.png
55 teensy_loader_cli -v -w ~/src/ext/qmk_firmware/algernon.hex --mcu atmega32u4 || true
73 cmd="$(echo $l | cut -d: -f2-)"
75 echo "Got command: ${cmd}"
77 if type cmd_${cmd} >/dev/null 2>&1; then