We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4bd432c commit 2ac4386Copy full SHA for 2ac4386
fix-wm-class.sh
@@ -1,15 +1,10 @@
1
#!/bin/sh
2
-LOG_FILE="/tmp/wmfix.log"
3
LAST=${@:$#}
4
WM_CLASS="$LAST"
5
-echo "Starting process: $@" > $LOG_FILE
6
-echo "Window Class: $WM_CLASS" >> $LOG_FILE
7
"$@" &
8
PID=$!
9
echo "Process ID: $PID" >> $LOG_FILE
10
while kill -0 $PID 2> /dev/null; do
11
- echo "Process still running: $(date)" >> $LOG_FILE
12
xdotool search --sync --name "$LAST" set_window --classname "$WM_CLASS" --class "$WM_CLASS" %@
13
sleep 1
14
-done
15
-echo "Process ended: $(date)" >> $LOG_FILE
+done
0 commit comments