Skip to content

NOWWORKINGON

several tool available

  • devilspie
  • cinamon config
  • applets
  • windowing apps
  • shell tools
    - wmctrl command
    - xdotool
    - …

window identification

xdotool search –name “Mousepad”
=> 24415619 , 125829245 , … en lijst van alle  X window identifiers. ( is dit windowPID ? , dit zijn geen PID , ook geen WinID)
1 voor elke instance ? bijvb. op elke desktop ?

wmctrl -lp
winID & PID

get the id :
xdotool getactivewindow
to search for the id, by application name or the pid :

xdotool search --onlyvisible --name nameofapp
xdotool search --pid pid

do not show /manage a specific window schow on the tasbar or in alt tab

wmctrl -r "Mousepad" -b add,skip_taskbar
0x0a400003 -1 22935 lapwm *Untitled 1 - Mousepad
undo :
wmctrl -r "Mousepad" -b remove,skip_taskbar

show specific window on all desktops (workspaces)

wmctrl -r "Mousepad" -b add,sticky 

un minimize a window

xdotool windowminimize 24415619
wmctrl -r "Mousepad" -b remove,hidden   ==> does not work 

hide and unhide windows

xdotool windowunmap id
xdotool windowmap id

xdotool windowmap 125829121 && xdotool windowmap 125829245 && xdotool windowmap 125906910 && xdotool windowmap 125929779 && xdotool windowmap 125829123
nope

move to a specific desktop

voorbeeld , mov obs’ & zotero naar andere workspaces
scripta - Obsidian v0.15.9
notes.IT - Obsidian v0.15.9
notes - Obsidian v0.15.9
Zotero

ok
wmctrl -l | grep scripta - Obsidian => 0x06000009 3 lapwm paywall omzeilen - scripta - Obsidian v0.15.9
sh -c “wmctrl -i -r 0x06000009 -t 6”

nok
sh -c “wmctrl -i -r ‘wmctrl -l | grep scripta - Obsidian’ -t 6” => Cannot convert argument to number

cmd=$(wmctrl -l | grep scripta - Obsidian)
echo $cmd : 0x06000009 6 lapwm paywall omzeilen - scripta - Obsidian v0.15.9
echo $cmd | cut -d ” ” -f 1 > 0x06000009
-d delimiter met spatie
-f 1 retain field 1

final zie bash script

cmd=$(wmctrl -l | grep 'scripta - Obsidian' | cut -d " " -f 1 )
# echo $cmd
sh -c "wmctrl -i -r $cmd -t 4"