Skip to content

Commit

Permalink
preparing for 0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
tudurom committed Feb 26, 2017
1 parent 81944d8 commit 6896206
Show file tree
Hide file tree
Showing 10 changed files with 86 additions and 68 deletions.
36 changes: 18 additions & 18 deletions client.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
41 changes: 19 additions & 22 deletions examples/sxhkdrc
Original file line number Diff line number Diff line change
@@ -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}
19 changes: 10 additions & 9 deletions examples/windowchefrc
Original file line number Diff line number Diff line change
@@ -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
5 changes: 4 additions & 1 deletion man/waitron.1
Original file line number Diff line number Diff line change
Expand Up @@ -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"
.
Expand Down Expand Up @@ -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<tudurom at gmail dot com>\fR
7 changes: 6 additions & 1 deletion man/waitron.1.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion man/waitron.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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 `<tudurom at gmail dot com>`
6 changes: 3 additions & 3 deletions man/windowchef.1
Original file line number Diff line number Diff line change
Expand Up @@ -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<tudurom at gmail dot com>\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\.
11 changes: 5 additions & 6 deletions man/windowchef.1.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 4 additions & 5 deletions man/windowchef.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 `<tudurom at gmail dot com>`

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.
14 changes: 12 additions & 2 deletions xephyr.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 6896206

Please sign in to comment.