Created
April 5, 2015 00:25
-
-
Save kozak127/8f438bbdb32253a92415 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#Give a name to the terminal window. | |
TITLE="desktop_terminal" | |
#HxW size given in # of charactors. Example: 25x60 | |
DIMENSIONS=130x45 | |
#X+Y position given in pixels. Example: 100+200 | |
POSITION=0+0 | |
TERMOPTS="--default-working-directory=~ --display=:0 --maximize --hide-borders --hide-toolbar --hide-menubar --title=$TITLE" | |
if [[ -z $DIMENSIONS || -z $POSITION ]] || [[ -z $TITLE ]] ; then | |
echo "wallterm has not been configured! Please edit this script before running it." | |
exit 1 | |
fi | |
#xfce4-terminal $TERMOPTS --geometry=$DIMENSIONS+$POSITION & | |
xfce4-terminal $TERMOPTS & | |
#gnome-terminal $TERMOPTS --geometry=$DIMENSIONS+$POSITION & | |
opt1="-r "$TITLE" -b add,below,sticky" | |
opt2="-r "$TITLE" -b add,skip_taskbar,skip_pager" | |
while true | |
do | |
if [[ "$(wmctrl -l | grep -o "$TITLE")" = $TITLE ]] ; then | |
wmctrl $opt1 && wmctrl $opt2 | |
echo 'done!' | |
break | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment