Advertisement
tubbadu

Untitled

Feb 7th, 2022 (edited)
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.38 KB | None | 0 0
  1. #!/usr/bin/bash
  2.  
  3. xfce4-terminal --drop-down --hide-scrollbar --hide-menubar -x mocp & #run the toggle command
  4. sleep 0.1 # wait for the window to come out
  5. IDs=($(xdotool search --class xfce4-terminal)) # get the list of IDs returned by xdotool and convert it to array
  6. xdotool windowactivate ${IDs[-1]} #focus the last one of the IDs (if this doesn't work try changing the -1 index)
  7.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement