phillbush / xclickroot Goto Github PK
View Code? Open in Web Editor NEWclick on root window and run a command
License: MIT License
click on root window and run a command
License: MIT License
xclickroot xclickroot runs a command every time a given mouse button is pressed on the root window. § Installation In order to build xclickroot you need the Xlib header files. Edit config.mk to match your local setup (xclickroot is installed into the /usr/local prefix by default). Then enter the following command to build and install xclickroot (if necessary as root). make clean install § Running xclickroot xclickroot gets as argument an command and its arguments and run this command every time the right mouse button is pressed on the root window. One of the options -l, -m, -r, -1, -2, -3, -4, or -5 can be passed as first argument. Those options indicates, respectivelly, that the left, middle, right or N-th mouse button is to be used instead. Call xclickroot on your ~/.xinitrc or ~/.xsession file in background, before the window manager. As the following: xclickroot -l xterm & Read the manual for more information on running xclickroot.
I like to open xfiles with double left click on desktop.
Could it be possible to add an option for double click launch?
It's really important to have a license for a project (because of legal reasons)
and it's way more clear with a license file
Recently (new machine, new Linux Installation) I noticed strange behaviour when launching subprocesses from code that was itself spawned via xclickroot: Tcl code that used exec
was giving me error messages about lost child processes. It appears that ignoring SIGCHLD is inherited by children, which shouldn't happen - as I understand it the call to signal(3) is merely intended to avoid zombie children.
I recommend using the POSIX-compatible way of avoiding to wait by using sigaction(2) with the SA_NOCLDWAIT option (see also: https://stackoverflow.com/questions/40601337/what-is-the-use-of-ignoring-sigchld-signal-with-sigaction2). Replacing the call to signal(3) with
struct sigaction sa;
sa.sa_handler = SIG_DFL;
sa.sa_flags = SA_NOCLDWAIT;
sigaction(SIGCHLD, &sa, NULL);
seems to work for me.
Hello!
I'm having some trouble getting xclickroot to work. Here is some background information:
I start xclickroot-git in ~/.xprofile:
xclickroot -r ~/.local/bin/menu
This setup works in three other of my window managers (awesome, qtile, and xmonad), but not in spectrwm.
In accordance with your advice on Issue #3, I tried to find out if another device was grabbing the mouse, but there was none. As such, after killing xclickroot, I was able to start it again in the terminal, but nothing happened when right-clicking the root window. Would you happen to know why this is, or how I might fix this?
/usr/include/features.h:195:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
195 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
Thanks again
Hi, I am trying to run this useful utility, but I see no result.
xclickroot-git
xclickroot -r urxvt
.
You can view the summary of the port here: https://www.freshports.org/x11/xclickroot/
Thanks a lot for xclickroot, it's a nice piece of software.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.