Advertisement
carbolymer

Untitled

Jul 16th, 2020
574
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. #!/bin/bash
  2. WINDOW_CLASS="ripcord.Ripcord"
  3.  
  4. ripcord &
  5. sleep 0.5
  6. WINDOW_ID_HEX=`wmctrl -x -l | grep ${WINDOW_CLASS} | awk '{print $1}' | head -n 1`
  7. WINDOW_ID_DEC=$((${WINDOW_ID_HEX}))
  8. echo "Closing window ${WINDOW_CLASS} (${WINDOW_ID_HEX} | ${WINDOW_ID_DEC}) to force tray icon..."
  9. wmctrl -c $WINDOW_ID_HEX
  10.  
  11. # this breaks ripcord - no window will be shown ever
  12. # xdotool windowclose ${WINDOW_ID_DEC}
  13.  
  14. # this is just ignored
  15. # xdotool key --window ${WINDOW_ID_DEC} "Alt+F4"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement