• Stars
    star
    2,755
  • Rank 16,528 (Top 0.4 %)
  • Language
    C
  • License
    BSD 2-Clause "Sim...
  • Created almost 12 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Simple X hotkey daemon

Description

sxhkd is an X daemon that reacts to input events by executing commands.

Its configuration file is a series of bindings that define the associations between the input events and the commands.

The format of the configuration file supports a simple notation for mapping multiple shortcuts to multiple commands in parallel.

Example Bindings

XF86Audio{Prev,Next}
	mpc -q {prev,next}

@XF86LaunchA
	scrot -s -e 'image_viewer $f'

super + shift + equal
	sxiv -rt "$HOME/image"

XF86LaunchB
	xdotool selectwindow | xsel -bi

super + {h,j,k,l}
	bspc node -f {west,south,north,east}

super + alt + {0-9}
	mpc -q seek {0-9}0%

super + {alt,ctrl,alt + ctrl} + XF86Eject
	sudo systemctl {suspend,reboot,poweroff}

super + {_,shift + }{h,j,k,l}
	bspc node -{f,s} {west,south,north,east}

{_,shift + ,super + }XF86MonBrightness{Down,Up}
	bright {-1,-10,min,+1,+10,max}

super + o ; {e,w,m}
	{gvim,firefox,thunderbird}

super + alt + control + {h,j,k,l} ; {0-9}
	bspc node @{west,south,north,east} -r 0.{0-9}

super + alt + p
	bspc config focus_follows_pointer {true,false}

# Smart resize, will grow or shrink depending on location.
# Will always grow for floating nodes.
super + ctrl + alt + {Left,Down,Up,Right}
  n=10; \
  { d1=left;   d2=right;  dx=-$n; dy=0;   \
  , d1=bottom; d2=top;    dx=0;   dy=$n;  \
  , d1=top;    d2=bottom; dx=0;   dy=-$n; \
  , d1=right;  d2=left;   dx=$n;  dy=0;   \
  } \
  bspc node --resize $d1 $dx $dy || bspc node --resize $d2 $dx $dy

Editor Plugins

Vim

VS Code

Emacs


For further information, check the man pages.

More Repositories

1

bspwm

A tiling window manager based on binary space partitioning
C
7,693
star
2

plato

Document reader
Rust
1,258
star
3

xdo

Small X utility to perform elementary actions on windows
C
301
star
4

xtitle

Outputs X window titles
C
120
star
5

diana

A command line interface to the aria2 daemon
Python
112
star
6

bubblegum

A vim color scheme based on xoria256
Vim Script
88
star
7

shkd

Simple HotKey Daemon
C
72
star
8

xresources-color-schemes

Various Xresources Color Schemes
50
star
9

vim-sxhkdrc

Vim syntax for sxhkd's configuration files
Vim Script
49
star
10

sutils

Small command-line utilities
C
42
star
11

ciecam02

An implementation of CIECAM02
JavaScript
39
star
12

etc-linux

Configuration files
Vim Script
35
star
13

bin-linux

Various shell scripts
Python
34
star
14

fmon

File monitor
C
32
star
15

keydouble

A little X utility to enable the use of ordinary keys as modifiers
C
30
star
16

txtw

Return the pixel width of the given strings for the given font
C
29
star
17

xlsw

List the X window tree contents
C
26
star
18

Coal-Graal.tmTheme

A dark and lispy TextMate theme.
26
star
19

owlman

A pacman and cower wrapper
Shell
24
star
20

sketch

Draw sketches on e-paper
Rust
19
star
21

xqp

X Query pointer
C
19
star
22

sdunpack

Unpack a StarDict dictionary as plain text
Rust
18
star
23

paragraph-breaker

An implementation of the Knuth-Plass algorithm for breaking paragraphs into lines
Rust
17
star
24

sres

Print the current screen resolution on stdout
C
16
star
25

backlight

Get and set the backlight brightness
C
15
star
26

bin

Shell scripts
Shell
14
star
27

xwinfo

Print window informations
C
14
star
28

invisibone

Terminal color scheme
14
star
29

Common-Lisp.tmbundle

A Slimy Common Lisp TextMate bundle.
Perl
11
star
30

thmkit

Utilities aimed at producing homogeneous color themes
Python
11
star
31

sieve

Generates a palette from an image
Python
11
star
32

fdb

Path frecency database
Rust
10
star
33

etc

Configuration files
Vim Script
9
star
34

ewmhstatus

Outputs the current EWMH desktop name and window title
C
8
star
35

aco2gpl

Converts a Photoshop palette to a GIMP palette
C
7
star
36

Z

Fast terminal directory jumping
Go
7
star
37

homebrew-formulae

Homebrew formulae
Ruby
4
star
38

ciebase

Basic building blocks for CIE color spaces
JavaScript
4
star
39

hestia

A CLI Interface to the mldonkey Daemon
Python
3
star
40

stoic

Tiny static site generator
Python
3
star
41

baskerville.github.com

The Art of Baskerville
HTML
2
star
42

Flexible-Words-TextMate

A TextMate Plugin
Objective-C
2
star
43

SimpleIcons

Simple scalable grid based icon set
2
star
44

ledcns

Set the state of the keyboard LEDs
C
2
star
45

eat

A CLI interface to Ge.tt's API
Python
2
star
46

Inconsolata

Personal fork of Raph Levien's font
2
star
47

dmenu_qxyw

A patch for dmenu providing "width / offsets / quiet" options
1
star
48

PKGBUILDs

Arch Linux user packages
Shell
1
star
49

vim-quirks

Personal vim workarounds
Vim Script
1
star
50

vanisher

Mac OS X utility that hides the mouse pointer on demand
C
1
star