diff --git a/client.c b/client.c index 02ecf80..ce79d34 100644 --- a/client.c +++ b/client.c @@ -189,24 +189,24 @@ fn_hex(uint32_t *data, int argc, char **argv) static bool fn_direction(uint32_t *data, int argc, char **argv) { - char *pos = argv[0]; - enum direction dir_sel; - - if (strcasecmp(pos, "up") == 0) - dir_sel = NORTH; - else if (strcasecmp(pos, "down") == 0) - dir_sel = SOUTH; - else if (strcasecmp(pos, "left") == 0) - dir_sel = WEST; - else if (strcasecmp(pos, "right") == 0) - dir_sel = EAST; - else - return false; - - (void)(argc); - data[0] = dir_sel; - - return true; + char *pos = argv[0]; + enum direction dir_sel; + + if (strcasecmp(pos, "up") == 0 || strcasecmp(pos, "north") == 0) + dir_sel = NORTH; + else if (strcasecmp(pos, "down") == 0 || strcasecmp(pos, "south") == 0) + dir_sel = SOUTH; + else if (strcasecmp(pos, "left") == 0 || strcasecmp(pos, "west") == 0) + dir_sel = WEST; + else if (strcasecmp(pos, "right") == 0 || strcasecmp(pos, "east") == 0) + dir_sel = EAST; + else + return false; + + (void)(argc); + data[0] = dir_sel; + + return true; } static bool diff --git a/examples/sxhkdrc b/examples/sxhkdrc index 58c0ae6..58342f9 100644 --- a/examples/sxhkdrc +++ b/examples/sxhkdrc @@ -1,56 +1,53 @@ super + {h,j,k,l} - ./waitron window_move {-20 0, 0 20, 0 -20, 20 0} + waitron window_move {-20 0, 0 20, 0 -20, 20 0} super + alt + {h,j,k,l} - ./waitron window_resize {-20 0, 0 20, 0 -20, 20 0} + waitron window_resize {-20 0, 0 20, 0 -20, 20 0} super + shift + {h,j,k,l} - ./waitron window_move {-50 0, 0 50, 0 -50, 50 0} + waitron window_move {-50 0, 0 50, 0 -50, 50 0} super + shift + alt + {h,j,k,l} - ./waitron window_resize {-50 0, 0 50, 0 -50, 50 0} + waitron window_resize {-50 0, 0 50, 0 -50, 50 0} -super + ctrl {h,j,k,l} - ./waitron window_cardinal_focus {left,down,up,right} +alt + {h,j,k,l} + waitron window_cardinal_focus {left,down,up,right} super + alt + Escape - ./waitron wm_quit 0 + waitron wm_quit 0 super + f - ./waitron window_maximize + waitron window_maximize super + w - ./waitron window_close + waitron window_close super + b - ./waitron window_hor_maximize + waitron window_hor_maximize super + v - ./waitron window_ver_maximize + waitron window_ver_maximize super + m - ./waitron window_monocle + waitron window_monocle alt + Tab - ./waitron window_cycle + waitron window_cycle alt + shift + Tab - ./waitron window_rev_cycle + waitron window_rev_cycle -super + {_,shift +}{1-4} - ./waitron {group_toggle,group_add_window} {1-4} +super + {_,shift +}{1-10} + waitron {group_toggle,group_add_window} {1-10} super + ctrl + r - ./waitron group_remove_window + waitron group_remove_window super + alt + ctrl + {1-4} - ./waitron group_remove_all_windows {1-4} + waitron group_remove_all_windows {1-4} super + Return urxvt super + {Insert,Prior,Delete,Next,End} - ./waitron window_snap {topleft,topright,bottomleft,bottomright,middle} - -super + {_,alt +}t - ./waitron mouse_toggle {move,resize} + waitron window_snap {topleft,topright,bottomleft,bottomright,middle} diff --git a/examples/windowchefrc b/examples/windowchefrc index fe54af5..68c4512 100755 --- a/examples/windowchefrc +++ b/examples/windowchefrc @@ -1,11 +1,12 @@ #!/bin/sh -./waitron wm_config border_width 5 -./waitron wm_config color_focused 0x97a293 -./waitron wm_config color_unfocused 0x393638 -./waitron wm_config gap_width all 20 -./waitron wm_config cursor_position middle -./waitron wm_config groups_nr 4 -./waitron wm_config enable_sloppy_focus true -./waitron wm_config sticky_windows false -./waitron wm_config enable_borders true +waitron wm_config border_width 5 +waitron wm_config color_focused 0x97a293 +waitron wm_config color_unfocused 0x393638 +waitron wm_config gap_width all 0 +waitron wm_config grid_gap_width 0 +waitron wm_config cursor_position middle +waitron wm_config groups_nr 10 +waitron wm_config enable_sloppy_focus true +waitron wm_config sticky_windows false +waitron wm_config enable_borders true diff --git a/man/waitron.1 b/man/waitron.1 index bfdb295..569b0e1 100644 --- a/man/waitron.1 +++ b/man/waitron.1 @@ -37,7 +37,7 @@ false values: \fBfalse\fR | \fBf\fR | \fBno\fR | \fBn\fR | \fB0\fR . .TP \fBDIRECTION\fR -\fBup\fR | \fBdown\fR | \fBleft\fR | \fBright\fR +\fBup\fR | \fBdown\fR | \fBleft\fR | \fBright\fR | \fBnorth\fR | \fBsouth\fR | \fBwest\fR | \fBeast\fR . .SH "COMMANDS" . @@ -217,5 +217,8 @@ If true, border colors will be set each time a window gets/loses focus\. Setting .SH "SEE ALSO" windowchef(1), sxhkd(1), wmutils(1), pfw(1), lsw(1), chwb2(1), lemonbar(1) . +.SH "REPORTING BUGS" +\fBwindowchef\fR issue tracker: https://github\.com/tudurom/windowchef/issues +. .SH "AUTHOR" Tudor Roman \fB\fR diff --git a/man/waitron.1.html b/man/waitron.1.html index b87b79b..8524edc 100644 --- a/man/waitron.1.html +++ b/man/waitron.1.html @@ -62,6 +62,7 @@ QUERYING CONFIGURING SEE ALSO + REPORTING BUGS AUTHOR @@ -101,7 +102,7 @@

COMMON DEFINITIONS

BOOL

true values: true | t | yes | y | 1

false values: false | f | no | n | 0

-
DIRECTION

up | down | left | right

+
DIRECTION

up | down | left | right | north | south | west | east

@@ -203,6 +204,10 @@

SEE ALSO

windowchef(1), sxhkd(1), wmutils(1), pfw(1), lsw(1), chwb2(1), lemonbar(1)

+

REPORTING BUGS

+ +

windowchef issue tracker: https://github.com/tudurom/windowchef/issues

+

AUTHOR

Tudor Roman <tudurom at gmail dot com>

diff --git a/man/waitron.1.md b/man/waitron.1.md index 4b6656a..c9f2938 100644 --- a/man/waitron.1.md +++ b/man/waitron.1.md @@ -30,7 +30,7 @@ anything on `stdout`. false values: `false` | `f` | `no` | `n` | `0` * `DIRECTION`: - `up` | `down` | `left` | `right` + `up` | `down` | `left` | `right` | `north` | `south` | `west` | `east` ## COMMANDS @@ -193,6 +193,10 @@ are: windowchef(1), sxhkd(1), wmutils(1), pfw(1), lsw(1), chwb2(1), lemonbar(1) +## REPORTING BUGS + +`windowchef` issue tracker: https://github.com/tudurom/windowchef/issues + ## AUTHOR Tudor Roman `` diff --git a/man/windowchef.1 b/man/windowchef.1 index 0fa1ede..8930ec6 100644 --- a/man/windowchef.1 +++ b/man/windowchef.1 @@ -32,11 +32,11 @@ Load script from \fIconfig_path\fR instead of \fB$XDG_CONFIG_HOME/windowchef/win .SH "SEE ALSO" waitron(1), sxhkd(1), xinit(1), xmmv(1), xmrs(1) . +.SH "REPORTING BUGS" +\fBwindowchef\fR issue tracker: https://github\.com/tudurom/windowchef/issues +. .SH "AUTHOR" Tudor Roman \fB\fR . .P The default color scheme that comes with \fBwindowchef\fR is 5725 \fIhttps://github\.com/dkeg/crayolo#5725\fR by dkeg\. -. -.SH "DERP" -I deleted all the manpages from my system by mistake while writing this manual page\. diff --git a/man/windowchef.1.html b/man/windowchef.1.html index 3a90b83..ebac2cf 100644 --- a/man/windowchef.1.html +++ b/man/windowchef.1.html @@ -58,8 +58,8 @@ DESCRIPTION OPTIONS SEE ALSO + REPORTING BUGS AUTHOR - DERP
    @@ -101,17 +101,16 @@

    SEE ALSO

    waitron(1), sxhkd(1), xinit(1), xmmv(1), xmrs(1)

    +

    REPORTING BUGS

    + +

    windowchef issue tracker: https://github.com/tudurom/windowchef/issues

    +

    AUTHOR

    Tudor Roman <tudurom at gmail dot com>

    The default color scheme that comes with windowchef is 5725 by dkeg.

    -

    DERP

    - -

    I deleted all the manpages from my system by mistake while writing this manual -page.

    -
    1. Windowchef
    2. diff --git a/man/windowchef.1.md b/man/windowchef.1.md index 976a006..7129488 100644 --- a/man/windowchef.1.md +++ b/man/windowchef.1.md @@ -31,13 +31,12 @@ overridden with the `-c` flag. waitron(1), sxhkd(1), xinit(1), xmmv(1), xmrs(1) +## REPORTING BUGS + +`windowchef` issue tracker: https://github.com/tudurom/windowchef/issues + ## AUTHOR Tudor Roman `` The default color scheme that comes with `windowchef` is [5725](https://github.com/dkeg/crayolo#5725) by dkeg. - -## DERP - -I deleted all the manpages from my system by mistake while writing this manual -page. diff --git a/xephyr.sh b/xephyr.sh index b128077..1b08289 100755 --- a/xephyr.sh +++ b/xephyr.sh @@ -1,10 +1,20 @@ #!/bin/sh +cleanup() { + rm windowchefrc sxhkdrc + exit 0 +} + +trap 'cleanup' INT + D=${D:-80} Xephyr -screen 1280x720 :$D& sleep 1 export DISPLAY=:$D -sxhkd -c examples/sxhkdrc & -exec ./windowchef -c examples/windowchefrc +cp examples/sxhkdrc sxhkdrc +cp examples/windowchefrc windowchefrc +sed -i 's/waitron/.\/waitron/g' sxhkdrc windowchefrc +sxhkd -c sxhkdrc & +./windowchef -c examples/windowchefrc