Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- WINDOW_CLASS="ripcord.Ripcord"
- ripcord &
- sleep 0.5
- WINDOW_ID_HEX=`wmctrl -x -l | grep ${WINDOW_CLASS} | awk '{print $1}' | head -n 1`
- WINDOW_ID_DEC=$((${WINDOW_ID_HEX}))
- echo "Closing window ${WINDOW_CLASS} (${WINDOW_ID_HEX} | ${WINDOW_ID_DEC}) to force tray icon..."
- wmctrl -c $WINDOW_ID_HEX
- # this breaks ripcord - no window will be shown ever
- # xdotool windowclose ${WINDOW_ID_DEC}
- # this is just ignored
- # xdotool key --window ${WINDOW_ID_DEC} "Alt+F4"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement