Skip to content

Instantly share code, notes, and snippets.

@mcsepes
Created April 30, 2017 00:56
Show Gist options
  • Save mcsepes/b90f88736ec2403b9f6866f118ef582a to your computer and use it in GitHub Desktop.
Save mcsepes/b90f88736ec2403b9f6866f118ef582a to your computer and use it in GitHub Desktop.
#!/bin/bash
function getPanelIdImpl() {
PANEL="`wmctrl -l | sed -n -e '/xfce4-panel$/ s_ .*$__ p' | sed -n -e $1' p'`"
}
function getPanelId() {
getPanelIdImpl $1
while [[ x == x$PANEL ]] ;do
sleep 0.5s
getPanelIdImpl $1
done
}
function putPanelDown() {
PANEL=""
getPanelId $1
wmctrl -i -r $PANEL -b add,below
}
putPanelDown 2
putPanelDown 3
putPanelDown 4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment