.i3/auto-start

branch
mhoward-lt
changeset 59
7171e2a98c17
parent 58
b88790409ef3
child 70
431128b5fa0c
equal deleted inserted replaced
58:b88790409ef3 59:7171e2a98c17
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 ionice -c3 nice /usr/bin/icedove & 117 # StartProg urxvt
91
92 i3-msg 'workspace 2; exec urxvtc || urxvt'
93
94 # i3-msg 'split h' 118 # i3-msg 'split h'
95 #
96 # StartProgName gvim 119 # StartProgName gvim
97
98 # i3-msg 'focus left; split v' 120 # i3-msg 'focus left; split v'
99 # 121 # StartProg urxvt
100 # StartProg xfce4-terminal
101 #
102 # i3-msg 'resize shrink height 20 px or 20 ppt' 122 # i3-msg 'resize shrink height 20 px or 20 ppt'
103 123
124 if [ -r ~/.i3/auto-start.local ]; then
125 . .i3/auto-start.local
126 fi
127
104 exit 0 128 exit 0

mercurial