Git Product home page Git Product logo

goxhkd's Introduction

goxhkd

A simple X11 hotkey daemon using xgbutil.

The config file is a shell script. It should contain a shebang and be executable. It's executed by the goxhkd daemon on start after a small delay. The following paths are checked:

  • $XDG_CONFIG_HOME/goxhkd/goxhkdrc (if $XDG_CONFIG_HOME isn't set, it falls back to $HOME/.config)
  • $HOME/.goxhkdrc
  • /etc/goxhkd/goxhkdrc

Building

  • make build will build and place the binaries into the project root.
  • make install will install them to $GOPATH/bin.

Example config

#!/bin/sh
goxhkc -clearall

for i in $(seq 9); do
      goxhkc -button Mod4-$i bspc desktop -f "^$i"
      goxhkc -button Mod4-Shift-$i bspc node -d "^$i"
done

goxhkc -button Mod4-Q bspc node -c
goxhkc -button Mod4-Return xterm
goxhkc -button Mod4-W notify-send "text" "subtext"

Controller

Usage of goxhkc:
  -address string
        specify connection address (socket path, host, ...) (default "/tmp/goxhkd.sock")
  -button string
        specify a button
  -clearall
        clear all bindings
  -multi
        allow for multiple bindings to the same button
  -network string
        specify connection network (unix, tcp, ...) (default "unix")
  -onrelease
        run command on button release
  -repeat
        repeatedly run command while the button is pressed
  -sh
        run command with 'sh -c ...'
  -version
        print version and exit
  -window uint
        specify a window

Daemon

Usage of goxhkd:
  -address string
        specify connection address (socket path, host, ...) (default "/tmp/goxhkd.sock")
  -network string
        specify connection network (unix, tcp, ...) (default "unix")
  -version
        print version and exit

goxhkd's People

Contributors

nwwdles avatar conraythefirst avatar

Stargazers

 avatar Lucas Burns avatar  avatar

Watchers

 avatar

Forkers

conraythefirst

goxhkd's Issues

problem building

Can you include a how to install? Running:

go build

in the directory resulting from cloning the file does not work. Gives error:
no Go files in directory

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.