Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 2715

Raspberry Pi OS • Re: Bookworm - focus follows mouse

$
0
0
Sorry to resurrect a dormant thread, but all my Google searching keeps turning this up as the top pick. I generally keep my Raspberry Pi boards (of which nearly a dozen headless units are currently in use for various projects around the house) up to date when a new release comes out. As such, I maintain a file on how to quickly configure the new release to the state that I've found most useful over the years. One of these requirements is "focus follows mouse", which I've found to be quite helpful. In the past, under X11, I've used the utility "obconf" to set this as the mode of operation but obviously, with Wayland now being the default, that is no longer an option. I've gone through this thread as best as I can but, unfortunately, I'm a hardware guy struggling in what's becoming an increasingly software world. In a post above "bjtheone" seems to have solved the problem I'm faced with but I don't understand some of what was said. Specifically, "Can then just lift out the extra plugins that you want" - how do I do this? Preferably on a Raspberry Pi running a recent release. Also, "Once the plugin is installed...". How to install on a Raspberry Pi? As a wiser person than I once said, "Instructions using small words and assuming I am an idiot, would not hurt my feelings." Or, in other words, "Explain it to me as if I were 5". Or, more accurately, 75 which, sadly, I am.

Dave
1. Download the extra plugins from https://voidlinux.pkgs.org/current/void ... .xbps.html
2. Find the plugin "libfollow-focus.so" and put it in /usr/lib/aarch64-linux-gnu/wayfire/
3. Find the config file "follow-focus.xml" and put it in /usr/share/wayfire/metadata/
4. Add "follow-focus" to the plugins list in /etc/wayfire/defaults.ini
5. Configure your usage of the plugin via changes to ~/.configs/wayfire.ini

Code:

# config ffm - with no window raise[follow-focus]change_output=truechange_view=truefocus_delay=50raise_on_top=falsethreshold=10
Basically you are avoiding having to compile the extra plugins, since focus-follows-mouse for some daft reason is not included in the base set of plugins. Downloading a precompiled set and then just harvesting the 2 files is easier than setting up a build environment and potentially breaking Wayfire entirely. Step 1 gets you the compiled files, steps 2 & 3 "install them" in the required place, step 4 enables the plugin and step 5 configures it.
{rpi5/bookworm 64} Thank you for the clear simple steps, however... apparently I am even simpler.
I obtained the xbps file, extracted the .so & .xml you specify & copied them into the dirs you specify. Permissions match the previous inhabitants. I add the plugin name to /etc/wayfire/defaults.ini. I append the specified lines to the ~/.config/wayfire.ini file (note: not /.config_s_). Reboot. But I don't get the expected behavior & I don't find any new config controls added anywhere to enable the fnx.
What am I doing wrong?
(And why is this even a thing? I've used focus follows mouse for 30 years!)

Statistics: Posted by emk — Wed Jun 26, 2024 3:02 pm



Viewing all articles
Browse latest Browse all 2715

Trending Articles