sxhkd-rc

[fork] simple X hotkey daemon (but for the rc shell)
Log | Files | Refs | README | LICENSE

commit d11bfe6adafbc803d0f15d37fdd9047d14b48979
parent f103446d1f4db3e3b28b7c620871c6d61af6f200
Author: Bastien Dejean <nihilhill@gmail.com>
Date:   Thu, 27 Jun 2013 12:18:27 +0200

Put the examples back into the manual

Diffstat:
Mdoc/sxhkd.1 | 54++++++++++++++++++++++++++++++++++++++++++++++++++++++
Mdoc/sxhkd.1.txt | 54++++++++++++++++++++++++++++++++++++++++++++++++++++--
Dexample/sxhkdrc | 46----------------------------------------------
3 files changed, 106 insertions(+), 48 deletions(-)

diff --git a/doc/sxhkd.1 b/doc/sxhkd.1 @@ -145,6 +145,60 @@ What is actually executed is \fBSHELL\fR \fI\-c\fR \fBCOMMAND\fR, which means yo If \fBsxhkd\fR receives a \fISIGUSR1\fR signal, it will reload its configuration file\&. .sp If no configuration file is specified via the \fI\-c\fR option, the following is used: \fB$XDG_CONFIG_HOME/sxhkd/sxhkdrc\fR\&. +.SH "EXAMPLE BINDINGS" +.sp +.if n \{\ +.RS 4 +.\} +.nf +XF86Audio{Prev,Next} + mpc \-q {prev,next} + +@XF86LaunchA + scrot \-s \-e \*(Aqimage_viewer $f\*(Aq + +super + shift + equal + sxiv \-rt "$HOME/image" + +XF86LaunchB + xdotool selectwindow | xsel \-bi + +super + {h,j,k,l} + bspc focus {left,down,up,right} + +super + alt + {0\-9} + mpc \-q seek {0\-9}0% + +super + {alt,ctrl,alt + ctrl} + XF86Eject + sudo systemctl {suspend,reboot,poweroff} + +:button1 + bspc grab_pointer focus + +super + button{1\-3} + bspc grab_pointer {move,resize_side,resize_corner} + +super + !button{1\-3} + bspc track_pointer %i %i + +super + @button{1\-3} + bspc ungrab_pointer + +super + {_,shift + }{h,j,k,l} + bspc {focus,shift} {left,down,up,right} + +{_,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 fence_ratio {left,down,up,right} 0\&.{0\-9} +.fi +.if n \{\ +.RE +.\} .SH "AUTHOR" .sp Bastien Dejean <baskerville at lavabit\&.com> diff --git a/doc/sxhkd.1.txt b/doc/sxhkd.1.txt @@ -50,14 +50,14 @@ Each line of the configuration file is interpreted as so: General syntax: ---------------------------------------------------------- +---- HOTKEY COMMAND HOTKEY := CHORD_1 ; CHORD_2 ; … ; CHORD_n CHORD_i := [MODIFIER_i][@|!|:]KEYSYM_i MODIFIER_i := MODIFIER_i1 + MODIFIER_i2 + … + MODIFIER_ik ---------------------------------------------------------- +---- The valid modifier names are: _super_, _hyper_, _meta_, _alt_, _control_, _ctrl_, _shift_, _mode_switch_, _lock_, _mod1_, _mod2_, _mod3_, _mod4_ and _mod5_. @@ -89,6 +89,56 @@ If *sxhkd* receives a _SIGUSR1_ signal, it will reload its configuration file. If no configuration file is specified via the _-c_ option, the following is used: *$XDG_CONFIG_HOME/sxhkd/sxhkdrc*. +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 focus {left,down,up,right} + +super + alt + {0-9} + mpc -q seek {0-9}0% + +super + {alt,ctrl,alt + ctrl} + XF86Eject + sudo systemctl {suspend,reboot,poweroff} + +:button1 + bspc grab_pointer focus + +super + button{1-3} + bspc grab_pointer {move,resize_side,resize_corner} + +super + !button{1-3} + bspc track_pointer %i %i + +super + @button{1-3} + bspc ungrab_pointer + +super + {_,shift + }{h,j,k,l} + bspc {focus,shift} {left,down,up,right} + +{_,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 fence_ratio {left,down,up,right} 0.{0-9} +---- + Author ------ diff --git a/example/sxhkdrc b/example/sxhkdrc @@ -1,46 +0,0 @@ -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 focus {left,down,up,right} - -super + alt + {0-9} - mpc -q seek {0-9}0% - -super + {alt,ctrl,alt + ctrl} + XF86Eject - sudo systemctl {suspend,reboot,poweroff} - -:button1 - bspc grab_pointer focus - -super + button{1-3} - bspc grab_pointer {move,resize_side,resize_corner} - -super + !button{1-3} - bspc track_pointer %i %i - -super + @button{1-3} - bspc ungrab_pointer - -super + {_,shift + }{h,j,k,l} - bspc {focus,shift} {left,down,up,right} - -{_,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 fence_ratio {left,down,up,right} 0.{0-9} - -# vim: set ft=sxhkdrc: