.i3/auto-start

changeset 43
958afe229467
parent 29
c3e57b348ed2
child 51
f93e63d400b5
equal deleted inserted replaced
42:68940b625e5e 43:958afe229467
1 #! /bin/sh 1 #! /bin/sh
2 2
3 # Simple autostart file for i3-wm, you can execute it from i3 config with 3 # Simple autostart file for i3-wm, you can execute it from i3 config with
4 # exec $HOME/bin/auto-start-for-i3 4 # exec $HOME/bin/auto-start-for-i3
5 # 5 #
6 # xdotool and xmessage must be installed. On BSD use jot instead of 6 # xdotool and notify-send must be installed. On BSD use jot instead of
7 # seq or install seq from ports. 7 # seq or install seq from ports.
8 8
9 9
10 # Max seconds to wait until the process is up 10 # Max seconds to wait until the process is up
11 MAXWAIT=10 11 MAXWAIT=10
21 if xdotool search --onlyvisible --pid $mypid; then 21 if xdotool search --onlyvisible --pid $mypid; then
22 return 0 22 return 0
23 fi 23 fi
24 sleep 1 24 sleep 1
25 done 25 done
26 xmessage "Error on executing: $@" & 26 notify-send "Error on executing: $@" &
27 } 27 }
28 28
29 StartProgName() 29 StartProgName()
30 { 30 {
31 "$@" & # Handle arguments with whitspaces 31 "$@" & # Handle arguments with whitspaces
87 # i3-msg resize shrink up 32 px or 32 ppt 87 # i3-msg resize shrink up 32 px or 32 ppt
88 # 88 #
89 89
90 StartProg urxvt 90 StartProg urxvt
91 91
92 i3-msg 'split h' 92 # i3-msg 'split h'
93 93 # StartProgName gvim
94 StartProgName gvim 94 # i3-msg 'focus left; split v'
95 95 # StartProg urxvt
96 i3-msg 'focus left; split v' 96 # i3-msg 'resize shrink height 20 px or 20 ppt'
97
98 StartProg urxvt
99
100 i3-msg 'resize shrink height 20 px or 20 ppt'
101 97
102 exit 0 98 exit 0

mercurial