From 549329635a4ed4c3ee735d6ff3c1585b0ac07a91 Mon Sep 17 00:00:00 2001 From: Colin Powell Date: Thu, 10 Jan 2019 21:16:43 -0500 Subject: [PATCH] Add chunkwm to stow --- chunkwm/.chunkwmrc | 71 ++++++++++++++++++++++++++++++++++++++++++++++ chunkwm/.skhdrc | 45 +++++++++++++++++++++++++++++ 2 files changed, 116 insertions(+) create mode 100755 chunkwm/.chunkwmrc create mode 100644 chunkwm/.skhdrc diff --git a/chunkwm/.chunkwmrc b/chunkwm/.chunkwmrc new file mode 100755 index 0000000..eb6bdbd --- /dev/null +++ b/chunkwm/.chunkwmrc @@ -0,0 +1,71 @@ +#!/bin/bash + +# +# NOTE: specify the absolutepath to the directory to use when +# loading a plugin. '~' expansion is supported. +# + +chunkc core::plugin_dir /usr/local/opt/chunkwm/share/chunkwm/plugins + +# +# NOTE: if enabled, chunkwm will monitor the specified plugin_dir +# and automatically reload any '.so' file that is changed. +# + +chunkc core::hotload 1 +chunkc core::unload tiling.so +chunkc core::unload ffm.so +chunkc core::unload border.so + +# +# NOTE: the following are config variables for the chunkwm-tiling plugin. +# + +chunkc set global_desktop_mode bsp +chunkc set 2_desktop_mode monocle +chunkc set 5_desktop_mode float + +chunkc set global_desktop_offset_top 6 +chunkc set global_desktop_offset_bottom 6 +chunkc set global_desktop_offset_left 6 +chunkc set global_desktop_offset_right 6 +chunkc set global_desktop_offset_gap 6 + +chunkc set desktop_padding_step_size 10.0 +chunkc set desktop_gap_step_size 5.0 + +chunkc set bsp_spawn_left 1 +chunkc set bsp_optimal_ratio 1.618 +chunkc set bsp_split_mode optimal +chunkc set bsp_split_ratio 0.5 + +chunkc set monitor_focus_cycle 1 +chunkc set window_focus_cycle monitor + +chunkc set mouse_follows_focus 0 +chunkc set window_float_next 0 +chunkc set window_float_center 1 +chunkc set window_region_locked 1 + +chunkc set mouse_modifier fn + +chunkc set preselect_border_color 0xaad75f5f +chunkc set preselect_border_width 7 +chunkc set preselect_border_radius 0 + +chunkc set focused_border_color 0xff0f6288 +chunkc set focused_border_width 5 +chunkc set focused_border_radius 0 +chunkc set focused_border_skip_floating 0 + +# +# NOTE: specify plugins to load when chunkwm starts. +# if chunkc plugin_dir is not set, the absolutepath is necessary. +# + +chunkc core::load border.so +chunkc core::load tiling.so + +chunkc tiling::rule --owner Finder --name Copy --state float & +chunkc tiling::rule --owner \"App Store\" --state float & +chunkc tiling::rule --owner Doom Emacs --subrole "AXStandardWindow" --except "^$" --state tile diff --git a/chunkwm/.skhdrc b/chunkwm/.skhdrc new file mode 100644 index 0000000..4823500 --- /dev/null +++ b/chunkwm/.skhdrc @@ -0,0 +1,45 @@ +# enter fullscreen mode for the focused container +alt - f : chunkc tiling::window --toggle fullscreen + +# change focus between tiling / floating windows +shift + alt - space : chunkc tiling::window --toggle float + +# change layout of desktop +alt - t : chunkc tiling::desktop --layout bsp +alt - m : chunkc tiling::desktop --layout monocle + +# kill focused window +shift + alt - q : chunkc tiling::window --close + +# change focus +alt - h : chunkc tiling::window --focus west +alt - j : chunkc tiling::window --focus south +alt - k : chunkc tiling::window --focus north +alt - l : chunkc tiling::window --focus east + +alt - p : chunkc tiling::window --focus prev +alt - n : chunkc tiling::window --focus next + +# move focused window +shift + alt - h : chunkc tiling::window --warp west +shift + alt - j : chunkc tiling::window --warp south +shift + alt - k : chunkc tiling::window --warp north +shift + alt - l : chunkc tiling::window --warp east + +alt - r : chunkc tiling::desktop --rotate 90 + +# move focused container to workspace +shift + alt - m : chunkc tiling::window --send-to-desktop $(chunkc get _last_active_desktop) +shift + alt - p : chunkc tiling::window --send-to-desktop prev +shift + alt - n : chunkc tiling::window --send-to-desktop next +shift + alt - 1 : chunkc tiling::window --send-to-desktop 1 +shift + alt - 2 : chunkc tiling::window --send-to-desktop 2 +shift + alt - 3 : chunkc tiling::window --send-to-desktop 3 +shift + alt - 4 : chunkc tiling::window --send-to-desktop 4 +shift + alt - 5 : chunkc tiling::window --send-to-desktop 5 +shift + alt - 6 : chunkc tiling::window --send-to-desktop 6 + +shift + alt - a : chunkc tiling::window --use-temporary-ratio 0.05 --adjust-window-edge west; chunkc tiling::window --use-temporary-ratio -0.05 --adjust-window-edge east +shift + alt - s : chunkc tiling::window --use-temporary-ratio 0.05 --adjust-window-edge south; chunkc tiling::window --use-temporary-ratio -0.05 --adjust-window-edge north +shift + alt - w : chunkc tiling::window --use-temporary-ratio 0.05 --adjust-window-edge north; chunkc tiling::window --use-temporary-ratio -0.05 --adjust-window-edge south +shift + alt - d : chunkc tiling::window --use-temporary-ratio 0.05 --adjust-window-edge east; chunkc tiling::window --use-temporary-ratio -0.05 --adjust-window-edge west