GithubHelp home page GithubHelp logo

xclickroot's Introduction

                               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.

xclickroot's People

Contributors

0mp avatar omar-polo avatar phillbush avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

xclickroot's Issues

While compiling getting this warning

/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

LICENSE file

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

using signal(3) to ignore SIGCHLD is problematic

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.

Issue with xclickroot in spectrwm

Hello!

I'm having some trouble getting xclickroot to work. Here is some background information:

  • OS: Arch Linux
  • DE: spectrwm
  • Package source: aur/xmenu (script located at ~/.local/bin/menu) and aur/xclickroot-git

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?

Does not work

Hi, I am trying to run this useful utility, but I see no result.

  • Arch Linux
  • i3
  • nvidia
  • aur pkg xclickroot-git

xclickroot -r urxvt.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.