···11+#!/bin/bash
22+33+if [ -r ~/.cache/wal/chunkwmcolors ]; then
44+ source ~/.cache/wal/chunkwmcolors
55+fi
66+77+NFOCUS=$(echo $FOCUS | sed 's/#//')
88+NPRESE=$(echo $PRESE | sed 's/#//')
99+1010+#
1111+# NOTE: specify the absolutepath to the directory to use when
1212+# loading a plugin. '~' expansion is supported.
1313+#
1414+1515+chunkc core::plugin_dir /usr/local/opt/chunkwm/share/chunkwm/plugins
1616+1717+#
1818+# NOTE: if enabled, chunkwm will monitor the specified plugin_dir
1919+# and automatically reload any '.so' file that is changed.
2020+#
2121+2222+chunkc core::hotload 1
2323+chunkc core::unload tiling.so
2424+chunkc core::unload ffm.so
2525+chunkc core::unload border.so
2626+2727+#
2828+# NOTE: the following are config variables for the chunkwm-tiling plugin.
2929+#
3030+3131+chunkc set global_desktop_mode bsp
3232+3333+chunkc set global_desktop_offset_top 5
3434+chunkc set global_desktop_offset_bottom 5
3535+chunkc set global_desktop_offset_left 10
3636+chunkc set global_desktop_offset_right 10
3737+chunkc set global_desktop_offset_gap 5
3838+3939+chunkc set bsp_optimal_ratio 1.618
4040+chunkc set bsp_split_mode optimal
4141+chunkc set bsp_split_ratio 0.5
4242+4343+# chunkc set mouse_move_window shift
4444+# chunkc set mouse_resize_window shift
4545+# chunkc set mouse_motion_interval 35
4646+4747+chunkc set monitor_focus_cycle 1
4848+chunkc set window_focus_cycle monitor
4949+5050+chunkc set window_float_next 0
5151+chunkc set window_float_center 1
5252+chunkc set window_region_locked 1
5353+5454+chunkc set focused_border_color "$NFOCUS"
5555+chunkc set focused_border_width 5
5656+chunkc set focused_border_radius 0
5757+chunkc set focused_border_skip_floating 0
5858+5959+chunkc tiling::rule --owner Dash --state float
6060+6161+#
6262+# NOTE: specify plugins to load when chunkwm starts.
6363+# if chunkc plugin_dir is not set, the absolutepath is necessary.
6464+#
6565+6666+chunkc core::load border.so
6767+chunkc core::load tiling.so
6868+chunkc core::load ffm.so
-12
wm/Makefile
···11-PWD = $(shell pwd)
22-UTILS = chunkwmrc skhdrc
33-44-$(UTILS):
55- $(LN) ${PWD}/$@ ${HOME}/.$@
66-77-install: $(UTILS)
88-99-clear:
1010- for util in $(UTILS); do rm ${HOME}/.$$util; done
1111-1212-.PHONY: install clear $(UTILS)
-61
wm/chunkwmrc
···11-#!/bin/bash
22-33-#
44-# NOTE: specify the absolutepath to the directory to use when
55-# loading a plugin. '~' expansion is supported.
66-#
77-88-chunkc core::plugin_dir /usr/local/opt/chunkwm/share/chunkwm/plugins
99-1010-#
1111-# NOTE: if enabled, chunkwm will monitor the specified plugin_dir
1212-# and automatically reload any '.so' file that is changed.
1313-#
1414-1515-chunkc core::hotload 1
1616-chunkc core::unload tiling.so
1717-chunkc core::unload ffm.so
1818-chunkc core::unload border.so
1919-2020-#
2121-# NOTE: the following are config variables for the chunkwm-tiling plugin.
2222-#
2323-2424-chunkc set global_desktop_mode bsp
2525-2626-chunkc set global_desktop_offset_top 5
2727-chunkc set global_desktop_offset_bottom 5
2828-chunkc set global_desktop_offset_left 10
2929-chunkc set global_desktop_offset_right 10
3030-chunkc set global_desktop_offset_gap 5
3131-3232-chunkc set bsp_optimal_ratio 1.618
3333-chunkc set bsp_split_mode optimal
3434-chunkc set bsp_split_ratio 0.5
3535-3636-# chunkc set mouse_move_window shift
3737-# chunkc set mouse_resize_window shift
3838-# chunkc set mouse_motion_interval 35
3939-4040-chunkc set monitor_focus_cycle 1
4141-chunkc set window_focus_cycle monitor
4242-4343-chunkc set window_float_next 0
4444-chunkc set window_float_center 1
4545-chunkc set window_region_locked 1
4646-4747-chunkc set focused_border_color 0xff008097
4848-chunkc set focused_border_width 5
4949-chunkc set focused_border_radius 0
5050-chunkc set focused_border_skip_floating 0
5151-5252-chunkc tiling::rule --owner Dash --state float
5353-5454-#
5555-# NOTE: specify plugins to load when chunkwm starts.
5656-# if chunkc plugin_dir is not set, the absolutepath is necessary.
5757-#
5858-5959-chunkc core::load border.so
6060-chunkc core::load tiling.so
6161-chunkc core::load ffm.so