Xfce Forum

Sub domains
 

You are not logged in.

#1 2019-01-15 16:37:08

Leinnan
Member
Registered: 2014-09-09
Posts: 30

X hot corner manager

Some time ago I wrote pretty simple hot corners implementation for X server in modern C++. It supports config file and should work with any WM using X server.
Link to repo: https://github.com/Leinnan/lwa-hot-corners
I was thinking- which way is recommended for make it a plugin/part of XFCE?

Offline

#2 2019-01-15 19:06:13

alcornoqui
Member
Registered: 2014-07-28
Posts: 831

Re: X hot corner manager

Offline

#3 2020-01-27 01:56:04

GabrielCoutinho
Member
From: Portugal
Registered: 2019-12-15
Posts: 18

Re: X hot corner manager

Leinnan lwa-hot-corners just works great! Well, does it already exists as an XFCE plugin? It should.
I’ve tested it on Xubuntu 19.10 and it only takes about 4 mg of memory, agains the 15 mg from the python one (bl-hotcorners from MXLinux). And there's no major dependencies. I was looking for an alternative to the old Brightside to work with Skippy-xd and xdotool and it works fine with both of them. This deserves to be ‘debianized ‘ and maybe a configuration menu based on yad or something like that.

Offline

#4 2020-01-29 22:38:44

Jerry3904
Member
Registered: 2013-11-09
Posts: 850

Re: X hot corner manager

I installed it, launched it with the config location, and it has been spending the last 10 minutes generating display parameters. Once it stops that, um, how do I use it?


MX-23 (based on Debian Stable) with our flagship Xfce 4.18.

Offline

#5 2020-01-30 01:46:56

GabrielCoutinho
Member
From: Portugal
Registered: 2019-12-15
Posts: 18

Re: X hot corner manager

Jerry3904, I believe you are running it in a terminal window and the output is the mouse position. It is constantly getting the mouse position. That's how it works. There's no problem about that. It is supposed to work on the background. Also, you have to configure the config file with your commands/actions like these examples: 'bottom_right_command=exo-open --launch WebBrowser' OR 'bottom_left_command=firefox' OR  'top_right_command=xdotool key ctrl+alt+d' and so on.
I use it creating a startup entry in Session and Startup:
'lwa-hot-corners path/to/config.file'
or
bash -c "lwa-hot-corners $HOME/.config/lwa-hot-corners.conf"
I’m working on a configuration tool to debianize it togheter with an altered version of skyppy-xd that doesn’t work anymore with the latest ubuntu. I will post a link here if everything goes right.

Offline

#6 2020-02-02 04:01:04

GabrielCoutinho
Member
From: Portugal
Registered: 2019-12-15
Posts: 18

Re: X hot corner manager

Sorry, There is a little issue with the output, after all. It keeps writing the cursor position to $HOME/.xsession-errors all the time, making it grow fast. Redirecting both stdout and stderr to /dev/null solves the problem:

lwa-hot-corners $HOME/.config/lwa-hot-corners.conf  > /dev/null 2>&1

You can also use xdotool to replicate the same behavior:

xdotool behave_screen_edge --delay 500 top-right exec catfish &
xdotool behave_screen_edge --delay 500 top-left exec firefox &
xdotool behave_screen_edge --delay 500 bottom-right exec xdotool key ctrl+alt+d &
xdotool behave_screen_edge --delay 500 bottom-left exec just_another_command

But it takes about 4mg of memory per corner, which is 4x lwa-hot-corners.

Offline

#7 2020-02-03 00:18:12

GabrielCoutinho
Member
From: Portugal
Registered: 2019-12-15
Posts: 18

Re: X hot corner manager

Debianized to hot-corners-xd package.

Screen Hot Corners and composited Exposé-like window picker for
Ubuntu(s) (from 18.04 to 20.04) XFCE and LXDE bringing together Leinnan's
lwa-hot-corners and the abandoned project Skippy-XD.

The deb package was tested with Ubuntu LXDE and XFCE (Xubuntu and Lubuntu) from Bionic (18.04) to the daily release of the next (20.04).

After installing, log out and login again to start the service. Or use 'Reset to defaults' in the configuration tool. The configuration tool will show on the xfce settings panel.

Get it here:
http://nazarux.square7.net/statics.html

List of Dependencies mainly because of the skippy-xd:
libc6 (>= 2.16), libgif7 (>= 5.1), libjpeg8 (>= 8c), libx11-6, libxcomposite1 (>= 1:0.3-1), libxdamage1 (>= 1:1.1), libxfixes3, libxft2 (>> 2.1.1), libxinerama1, yad (>= 0.27.0), xdotool, libxrender1, zlib1g (>= 1:1.1.4)

I made this tool and the others for a future distro release - nazaruX
If you just want the hot corners and configuration tool, extract the debian package and manually copy the non skippy-xd files to the equivalent directories and edit the commands in the configuration tool. In that case, only YAD and XDOTOOL should be necessary.

If it's working on MX Linux please leave a reply.

Offline

#8 2020-02-03 10:31:27

Jerry3904
Member
Registered: 2013-11-09
Posts: 850

Re: X hot corner manager

If it's working on MX Linux please leave a reply.

I'll be glad to take a look--just as long as it's not dependent on systemd...


MX-23 (based on Debian Stable) with our flagship Xfce 4.18.

Offline

#9 2020-02-19 23:37:47

GabrielCoutinho
Member
From: Portugal
Registered: 2019-12-15
Posts: 18

Re: X hot corner manager

It's not a systemd service. It's started in a user level an can be disabled in Session and Startup preferences, unchecking it in the autostart tab.

Offline

#10 2020-02-20 02:07:48

Jerry3904
Member
Registered: 2013-11-09
Posts: 850

Re: X hot corner manager

I tried to install it on MX-19.1 (Debian 10.3 Buster), and it showed a missing dependency: libjpeg8 (>= 8c). That package is missing throughout Debian versions with the exception of one version in Sid.


MX-23 (based on Debian Stable) with our flagship Xfce 4.18.

Offline

#11 2020-02-21 07:07:49

Misko_2083
Member
Registered: 2015-10-13
Posts: 191
Website

Re: X hot corner manager

Jerry3904 wrote:

I tried to install it on MX-19.1 (Debian 10.3 Buster), and it showed a missing dependency: libjpeg8 (>= 8c). That package is missing throughout Debian versions with the exception of one version in Sid.

It looks like a deprecated library. I will try to sort that out in Buster.

P.S. I've been told that Leinnan's hot corner app has issue with the multi-monitor setup(s).

----

The deb package of Gabriel contains only the binaries.

skippy-xd has to be compiled in Debian Buster.
libjpeg8-dev is deprecated but there is libjpeg62-turbo-dev. Anyway, installing libjpeg-dev and libgif-dev will install all the necessary libraries.

Compiling from the source works and skippy-xd is working despite v8 isn't backwards compatible with v6 https://en.wikipedia.org/wiki/Libjpeg
Of course, this needs testing.

If you are going to make packages, skippy-xd is best to be in a separate package.

Next component is lwa-hot-corners.

And finally Gabriel's bash scripts (yad dialogs to create, configure and autostart lwa-hotcorners).

Last edited by Misko_2083 (2020-02-21 11:58:13)


Do you want to exit the Circus?
https://www.youtube.com/watch?v=ZJwQicZHp_c

Offline

#12 2020-03-05 01:28:48

GabrielCoutinho
Member
From: Portugal
Registered: 2019-12-15
Posts: 18

Re: X hot corner manager

My main lwa-hotcorners  purpose  is to have a nice and light corner launcher to toggle  desktop view and for skippy-xd , which is lightweight, simple and clear. I’ve been using it for the last 6 years through the extincted Brightside. I haven’t tested this with more than one monitor but I’ve tried using other ‘corner’ launchers, like the python bl-hotcorners, which is also referred as not supporting multi-monitor, so probably this one will have issues either. If you know other lightweight alternatives, please share.

I made this package with both binaries together to easy the installation on the squashfs of the distro I am working on and because, for me, they just make sense together.

I’ve made some changes and recompiled  lwa-hotcorners to make it more cpu friendly and also recompiled skippy-xd with the latest libjpeg 9.

To make it compatible with Debian Buster, I’ve also made a version (1.0.5-jpg62) with skippy-xd compiled with libjpeg62-turbo,  present in Buster’s repositories, which is a fork of libjpeg62 and should also work with it. But I couldn’t test it in Buster so, some feedback would be appreciated.

with libjpeg9:
http://nazarux.square7.net/statics/hot- … _amd64.deb
with libjpeg62-turbo:
http://nazarux.square7.net/statics/hot- … _amd64.deb

Offline

#13 2020-03-05 11:14:11

Jerry3904
Member
Registered: 2013-11-09
Posts: 850

Re: X hot corner manager

Thanks for both posts, will test and report.

My time has been taken up FWIW with developing mx-dockmaker for MX-Fluxbox using the 2018 wmalauncher by Sébastien Ballet, and in producing my first video, an introduction to MX-Fluxbox--man, was that a lot of work!

Last edited by Jerry3904 (2020-03-05 12:31:21)


MX-23 (based on Debian Stable) with our flagship Xfce 4.18.

Offline

#14 2020-03-06 01:38:56

Jerry3904
Member
Registered: 2013-11-09
Posts: 850

Re: X hot corner manager

The Turbo deb installs and seems to work fine here on MX-19.1 (Debian 10.3 Buster). The other one had the same dependency problem, of course.

Very nice!

Last edited by Jerry3904 (2020-03-07 12:31:55)


MX-23 (based on Debian Stable) with our flagship Xfce 4.18.

Offline

#15 2020-03-07 12:32:46

Jerry3904
Member
Registered: 2013-11-09
Posts: 850

Re: X hot corner manager

We might be interested in bringing it into the MX repo if possible, but would probably need a bit of information:

--What is the license for this package?
--Is there a source repo for it somewhere?

Thanks.


MX-23 (based on Debian Stable) with our flagship Xfce 4.18.

Offline

#16 2020-03-09 13:44:17

GabrielCoutinho
Member
From: Portugal
Registered: 2019-12-15
Posts: 18

Re: X hot corner manager

I’m glad that it works and that it may be useful.
I don’t have much time now but I will send you a message in a few days with more details. But it’s all open source and I think there’s a doc file in the deb regarding GPL2/3.
It’s not in a repo but I can create a github one or something like that if needed or send you all the sources – the major credits are for lwa-hot-corners and skippy-xd, after all. I’ve just made a few changes and the configuration scripts/interface.

Thanks.

Offline

#17 2020-05-31 10:45:10

asqwerth
Member
Registered: 2020-05-31
Posts: 1

Re: X hot corner manager

GabrielCoutinho wrote:

I’m glad that it works and that it may be useful.
I don’t have much time now but I will send you a message in a few days with more details. But it’s all open source and I think there’s a doc file in the deb regarding GPL2/3.
It’s not in a repo but I can create a github one or something like that if needed or send you all the sources – the major credits are for lwa-hot-corners and skippy-xd, after all. I’ve just made a few changes and the configuration scripts/interface.

Thanks.

Hi, this is asqwerth from MX Linux, and I'm following up on Jerry3904's last post above.

MX Linux already packages skippy-xd, so would it be possible for you to provide the necessary sources/github/details just focusing on your tweaked lwa-hot-corners and your hot-corners GUI+scripts?


Thanks!


PS. Your lwa-hot-corners + GUI work pretty nicely in MX19, by the way.

Offline

#18 2020-09-17 19:37:42

fernando-inf
Member
Registered: 2020-09-17
Posts: 1

Re: X hot corner manager

Hi GabrielCoutinho, In Debian 11 don´t work. After reboot this is log:

17/9/20 16:22    pcdebian    systemd[2642]    /etc/xdg/autostart/hot-corners.desktop:8: Unknown key name 'Path' in section 'Desktop Entry', ignoring.
17/9/20 16:22    pcdebian    systemd[2737]    /etc/xdg/autostart/hot-corners.desktop:8: Unknown key name 'Path' in section 'Desktop Entry', ignoring.
17/9/20 16:28    pcdebian    kernel    [  379.358880] traps: hot-corners-lwa[3130] trap invalid opcode ip:5629bcf1fd00 sp:7ffd93d1e9e0 error:0 in hot-corners-lwa[5629bcf1c000+8000]

Last edited by fernando-inf (2020-09-17 19:38:32)

Offline

#19 2020-09-25 16:22:39

Leinnan
Member
Registered: 2014-09-09
Posts: 30

Re: X hot corner manager

I've updated repository.

Changes:
- by default logs are disabled
- disable calls with empty command
- change default update interval in order to make update less often
- allow to change interval via config(update_interval=value in ms)

Offline

#20 2020-10-03 03:31:01

vinox14
Member
Registered: 2020-05-25
Posts: 14

Re: X hot corner manager

where would I put the config file and what should I name it?
the readme file doesn't say much aside from how to build it and not about it's configuration.

oops sorry.....never mind just found out by back reading previous comments wink

Last edited by vinox14 (2020-10-03 04:04:25)

Offline

#21 2020-10-09 07:01:51

muchimuchi
Member
Registered: 2020-10-09
Posts: 1

Re: X hot corner manager

Anyone know if there is a way to show the window cycler (that is, what's shown upon alt+tab)? Is there a command for that?

Offline

Board footer

Powered by FluxBB