dotfiles/.bin/OLD/wslauncher.sh

18 lines
293 B
Bash
Raw Normal View History

#!/bin/sh
# current WS if nothing is specified
WS=$_SWM_WS
# specify target WS for some programs
# note: the actual WS is +1 so use 6 for something to spawn on WS 7.
case $1 in
firefox) WS=6; ;;
chrome) WS=1; ;;
esac
# move to desktop
wmctrl -s $WS
# spawn program
_SWM_WS=$WS $@