MCPcopy Index your code
hub / github.com/baskerville/sxhkd

github.com/baskerville/sxhkd @0.6.3

Chat with this repo
repository ↗ · DeepWiki ↗ · release 0.6.3 ↗ · + Follow
55 symbols 138 edges 11 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

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.

Core symbols most depended-on inside this repo

warn
called by 11
src/helpers.c
modfield_from_keysym
called by 10
src/parse.c
grab_key_button_checked
called by 8
src/grab.c
get_token
called by 7
src/parse.c
put_status
called by 5
src/sxhkd.c
err
called by 5
src/helpers.c
load_config
called by 4
src/parse.c
render_next
called by 4
src/parse.c

Shape

Function 52
Class 3

Languages

C95%
C++5%

Modules by API surface

src/parse.c19 symbols
src/types.c12 symbols
src/sxhkd.c9 symbols
src/helpers.c7 symbols
src/grab.c5 symbols
src/types.h2 symbols
src/parse.h1 symbols

For agents

$ claude mcp add sxhkd \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page