Update 2024-02-14 07:51 OpenBSD/amd64-x13
This commit is contained in:
17
.bin/OLD/wslauncher.sh
Executable file
17
.bin/OLD/wslauncher.sh
Executable file
@@ -0,0 +1,17 @@
|
||||
#!/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 $@
|
||||
Reference in New Issue
Block a user