File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ This will show the window ID in hexadecimal of
9
9
a window with title ` My dialog title ` :
10
10
11
11
```
12
- wmctrl -l | egrep "My dialog title" | cut -f 1 -d ' '
12
+ wmctrl -l | grep "My dialog title" | cut -f 1 -d ' '
13
13
```
14
14
15
15
I got the value of ` 0x02800003 ` displayed on my screen,
@@ -18,7 +18,7 @@ but you will probably have a different value.
18
18
Feeding that hexadecimal value to ` xdotool ` does activate the window:
19
19
20
20
```
21
- xdotool windowactivate $(wmctrl -l | egrep "My dialog title" | cut -f 1 -d ' ')
21
+ xdotool windowactivate $(wmctrl -l | grep "My dialog title" | cut -f 1 -d ' ')
22
22
```
23
23
24
24
## How to let ` xdotool ` work with Qt applications?
@@ -31,10 +31,10 @@ If something is wrong, a workaround is to use `wmctrl`
31
31
to obtain the window ID:
32
32
33
33
```
34
- xdotool windowactivate $(wmctrl -l | egrep "My dialog title" | cut -f 1 -d ' ')
34
+ xdotool windowactivate $(wmctrl -l | grep "My dialog title" | cut -f 1 -d ' ')
35
35
```
36
36
37
37
Replace 'My dialog title' for the window name you are looking for.
38
38
39
39
Note that ` wmctrl ` displays the window ID in hexadecimal. This is no
40
- problem for ` xdotool ` !
40
+ problem for ` xdotool ` !
Original file line number Diff line number Diff line change @@ -168,7 +168,7 @@ if [ ! -z "$WINMGR" -a "$WINMGR" != "none" ] ; then
168
168
for i in 1 2 3 4 5 6 7 8 9 10 ABORT ; do
169
169
# A good signal that the WM has started is that the WM_STATE property is
170
170
# set or that any NETWM/ICCCM property is set.
171
- if xprop -root | egrep -q ' WM_STATE|^_NET' ; then
171
+ if xprop -root | grep -qE ' WM_STATE|^_NET' ; then
172
172
quiet || echo " $WINMGRNAME looks healthy. Moving on."
173
173
break ;
174
174
fi
You can’t perform that action at this time.
0 commit comments