You are not logged in.

#1 2020-08-06 15:28:41

JCN-9000
Member
From: Turin, Italy
Registered: 2016-04-22
Posts: 10

bl-exit and focus

Hi great ppl,
long time fan of Focus Follow Mouse, always hated Click to Focus, I've noticed that bl-exit disappears on unfocus ( yad --close-on-unfocus ), which is nice, but annoying if for some reason you move around the mice and it goes Puff before you reach it.

I know how to work around it ( close/hide everything before, just use keyboard or boldly edit the script ) but maybe a test to see how focus is configured on DE might help ?

Thanks.

Offline

#2 2020-08-06 15:48:36

damo
....moderator....
Registered: 2015-08-20
Posts: 6,271

Re: bl-exit and focus

JCN-9000 wrote:

Hi great ppl,
long time fan of Focus Follow Mouse, always hated Click to Focus, I've noticed that bl-exit disappears on unfocus ( yad --close-on-unfocus ), which is nice, but annoying if for some reason you move around the mice and it goes Puff before you reach it.

I know how to work around it ( close/hide everything before, just use keyboard or boldly edit the script ) but maybe a test to see how focus is configured on DE might help ?

Thanks.

Have you looked at Preferences > Openbox > WM Preferences > Mouse?


Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#3 2020-08-06 16:16:41

JCN-9000
Member
From: Turin, Italy
Registered: 2016-04-22
Posts: 10

Re: bl-exit and focus

Hi,
yes, my setup is Focus Follow Mouse, and with this setup I get bl-exit menu to disappear if I start it for example from the tray Power Button/Logout/Shutdown and then travel through the desktop to reach it, while having other windows on the route.

--close-on-unfocus should be disabled with this setup.

Offline

#4 2020-08-08 00:45:39

hhh
Meep!
Registered: 2015-09-17
Posts: 10,505
Website

Re: bl-exit and focus

So obconf>Mouse>check the first box, "Focus windows when the mouse pointer moves over them", restart openbox or logout/login.

Confirmed, if you move the mouse from any distance from over another window the logout dialog disappears.

Workaround, the logout dialog should open focused, press and hold the Alt key to see the underlined shortcuts, then add the letter to your keyboard input (example, Alt shows S underlined for Suspend, hit 's' while holding 'Alt' to suspend. Logout is already focused, simply hit 'Enter' without pressing 'Alt' to logout, or use 'Alt+l').

Script workaround... Open /bin/bl-exit as root, and delete " --close-on-unfocus" from line #183 so it looks like this...

    yad --class=WmanExit --title "Exit" --undecorated --center --on-top --borders=10 --window-icon=system-log-out \

You'll need to back that new script up so you can restore/compare it if bl-exit gets updated.

I haven't tested this, but it should work. I was the one who added --close-on-unfocus in the first place.

Offline

#5 2020-08-08 00:54:27

damo
....moderator....
Registered: 2015-08-20
Posts: 6,271

Re: bl-exit and focus

You'll need to back that new script up so you can restore/compare it if bl-exit gets updated.

I would copy /usr/bin/bl-exit to ~/bin and edit that. It will run as the default bl-exit command (unless $PATH has been changed by the user), and won't be affected by future upgrades.

I'm still using the Helium bl-exit python script using this method wink


Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#6 2020-08-08 01:58:31

hhh
Meep!
Registered: 2015-09-17
Posts: 10,505
Website

Re: bl-exit and focus

damo wrote:

I would copy /usr/bin/bl-exit to ~/bin and edit that. It will run as the default bl-exit command...

Plus 1. smile

Offline

#7 2020-08-08 03:03:20

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 7,308
Website

Re: bl-exit and focus

damo wrote:

I'm still using the Helium bl-exit python script using this method wink

In fact there is a package bunsen-exit-python you can install to get the Helium-style python app. Installing it will automatically remove the yad version.


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), idle Twitterings and GitStuff )

Introduction to the Bunsenlabs Lithium Desktop

Offline

#8 2020-08-08 03:11:28

DeepDayze
Like sands through an hourglass...
From: In Linux Land
Registered: 2017-05-28
Posts: 994

Re: bl-exit and focus

johnraff wrote:
damo wrote:

I'm still using the Helium bl-exit python script using this method wink

In fact there is a package bunsen-exit-python you can install to get the Helium-style python app. Installing it will automatically remove the yad version.

Can the OP try this package?


Real Men Use Linux

Offline

#9 2020-08-08 04:12:32

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 7,308
Website

Re: bl-exit and focus

^Indeed - that's another option.


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), idle Twitterings and GitStuff )

Introduction to the Bunsenlabs Lithium Desktop

Offline

#10 2020-08-08 08:28:53

ohnonot
...again
Registered: 2015-09-29
Posts: 4,882
Website

Re: bl-exit and focus

JCN-9000 wrote:

yes, my setup is Focus Follow Mouse, and with this setup I get bl-exit menu to disappear if I start it for example from the tray Power Button/Logout/Shutdown and then travel through the desktop to reach it, while having other windows on the route.

--close-on-unfocus should be disabled with this setup.

Isn't the openbox menu calling bl-exit with that parameter?
Or a .desktop launcher?
Why don't you just edit menu.xml or the .desktop file and change that line?


BL quote proposals to this thread please.
my repos / my repos
---
Thank you for posting direct image links!

Offline

#11 2020-08-08 09:09:32

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 7,308
Website

Re: bl-exit and focus

ohnonot wrote:
JCN-9000 wrote:

yes, my setup is Focus Follow Mouse, and with this setup I get bl-exit menu to disappear if I start it for example from the tray Power Button/Logout/Shutdown and then travel through the desktop to reach it, while having other windows on the route.

--close-on-unfocus should be disabled with this setup.

Isn't the openbox menu calling bl-exit with that parameter?
Or a .desktop launcher?
Why don't you just edit menu.xml or the .desktop file and change that line?

Oh dear, @ohnonot I'm afraid BL must have changed a bit since you last used it. Mostly Arch these days I guess?

The menu is jgmenu so the file to edit would be ~/.config/jgmenu/prepend.csv
(There are no desktop launchers by default.)

But, no, bl-exit is not called from the menu with any --close-on-unfocus option. (There are cli options available to shut down via a terminal. See 'bl-exit --help'.) --close-on-unfocus is an internal option of bl-exit which is passed to yad.


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), idle Twitterings and GitStuff )

Introduction to the Bunsenlabs Lithium Desktop

Offline

#12 2020-08-10 08:29:32

JCN-9000
Member
From: Turin, Italy
Registered: 2016-04-22
Posts: 10

Re: bl-exit and focus

Hi, thanks for the attention.

I know how to work around this, so it is not a problem for me.
I already edited the script as I prefer to get the issue again, so i am alerted that something changed in the script if this reappears.
Yes, I could revert to the python version: I indeed like the Icons, but again I'm not raising an issue here.

I was just suggesting that such behavior can discomfort newcomers.

Offline

Board footer

Powered by FluxBB