38 fi |
38 fi |
39 sleep 1 |
39 sleep 1 |
40 done |
40 done |
41 notify-send "Error on executing: $@" |
41 notify-send "Error on executing: $@" |
42 } |
42 } |
|
43 |
|
44 WaitProgName() |
|
45 { |
|
46 echo "Waiting on $1" |
|
47 for i in `seq $MAXWAIT` # count from 1 to MAXWAIT |
|
48 do |
|
49 if xdotool search --onlyvisible --name $1; then |
|
50 return 0 |
|
51 fi |
|
52 sleep 1 |
|
53 done |
|
54 notify-send "Error waiting on $1: $@" |
|
55 } |
|
56 |
|
57 WaitClassName() |
|
58 { |
|
59 echo "Waiting on window class $1" |
|
60 for i in `seq $MAXWAIT` # count from 1 to MAXWAIT |
|
61 do |
|
62 if xdotool search --onlyvisible --class $1; then |
|
63 return 0 |
|
64 fi |
|
65 sleep 1 |
|
66 done |
|
67 notify-send "Error waiting on $1: $@" |
|
68 } |
|
69 |
43 |
70 |
44 # ### --- emacs --- ### |
71 # ### --- emacs --- ### |
45 # StartProg emacs |
72 # StartProg emacs |
46 # |
73 # |
47 # ### --- ding ---- ### |
74 # ### --- ding ---- ### |
85 # # terminal without border and make it smaller |
112 # # terminal without border and make it smaller |
86 # i3-msg border none |
113 # i3-msg border none |
87 # i3-msg resize shrink up 32 px or 32 ppt |
114 # i3-msg resize shrink up 32 px or 32 ppt |
88 # |
115 # |
89 |
116 |
90 StartProg urxvt |
117 # StartProg urxvt |
91 |
|
92 # i3-msg 'split h' |
118 # i3-msg 'split h' |
93 # StartProgName gvim |
119 # StartProgName gvim |
94 # i3-msg 'focus left; split v' |
120 # i3-msg 'focus left; split v' |
95 # StartProg urxvt |
121 # StartProg urxvt |
96 # i3-msg 'resize shrink height 20 px or 20 ppt' |
122 # i3-msg 'resize shrink height 20 px or 20 ppt' |
97 |
123 |
|
124 if [ -r ~/.i3/auto-start.local ]; then |
|
125 . .i3/auto-start.local |
|
126 fi |
|
127 |
98 exit 0 |
128 exit 0 |