I am trying to set up a "terminal as desktop wallpaper" in Openbox, as described here
Openbox has the possibility to set
<layer>below</layer>, so that window is running as desktop background, and won't be displayed by the statusbar and unaffected by "minimize windows". So instead of displaying a useless image as wallpaper, I actually have a terminal.
The actual terminal that I am running as background is
terminator, I have just created a symlink
terminator-wallpaper-1b, which are just symlinks to the terminator binary. Only so that the names are different, and I can distinguish them.
I have dual monitor setup, and I want terminator wallpaper on each monitor.
The openbox window property is set by
(if (matches (application_name) "terminator-wallpaper") (begin (wintype "desktop") ) )
And then, I have this in my openbox config, so that each wallpaper goes to corresponding monitor/desktop:
<application name="terminator-wallpaper-1a"> <focus>yes</focus> <layer>below</layer> <desktop>1</desktop> <position> <y>0</y> <x>0</x> <monitor>1</monitor> </position> <skip_taskbar>yes</skip_taskbar> <maximized>true</maximized> </application> <application name="terminator-wallpaper-1b"> <focus>yes</focus> <layer>below</layer> <desktop>1</desktop> <position> <y>0</y> <x>0</x> <monitor>2</monitor> </position> <skip_taskbar>yes</skip_taskbar> <maximized>true</maximized> </application>
Lastly, this is how I start the whole thing:
devilspie & terminator-wallpaper-1a -b & terminator-wallpaper-1b -b & xdotool set_desktop 0 xdotool search --class 'Terminator-wallpaper-1a' windowunmap --sync windowmap windowsize %1 1920 1180 xdotool search --class 'Terminator-wallpaper-1b' windowunmap --sync windowmap windowsize %1 1920 1180
Everything works nicely, and when I minimize all other windows, I actually see my terminator wallpapers. But only one of them is actually usable. ie, focused, or active. The other I cannot type into. Even when I click with the mouse, the cursors is still inactive, so that the window never becomes focused.
How can I fix this ?
after exhaustive troubleshooting with user @intika, we have identified the problem. Adding following snippet to section
<mouse> in the openbox config file fixed the issue:
<context name="Desktop"> <mousebind button="Left" action="Press"> <action name="Focus"/> <action name="Raise"/> </mousebind> </context>