Skip to content

Instantly share code, notes, and snippets.

@dogayuksel
Created April 13, 2018 17:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dogayuksel/dcb4eef5ffb7cec6f7d4f46132372e84 to your computer and use it in GitHub Desktop.
Save dogayuksel/dcb4eef5ffb7cec6f7d4f46132372e84 to your computer and use it in GitHub Desktop.
chunkwm settings
#!/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 5
chunkc set global_desktop_offset_bottom 5
chunkc set global_desktop_offset_left 5
chunkc set global_desktop_offset_right 5
chunkc set global_desktop_offset_gap 0
chunkc set 3_desktop_offset_top 80
chunkc set 3_desktop_offset_bottom 80
chunkc set 3_desktop_offset_left 80
chunkc set 3_desktop_offset_right 80
chunkc set 3_desktop_offset_gap 15
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 0xffd75f5f
chunkc set preselect_border_width 5
chunkc set preselect_border_radius 0
chunkc set focused_border_color 0xff0f6288
chunkc set focused_border_width 5
chunkc set focused_border_radius 5
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 core::load ffm.so
chunkc tiling::rule --owner Emacs --state tile
# focus window
cmd + alt - p : chunkc tiling::window --focus prev
cmd + alt - n : chunkc tiling::window --focus next
# send window to desktop
cmd + alt - x : chunkc tiling::window --send-to-desktop $(chunkc get _last_active_desktop)
cmd + alt - 6 : chunkc tiling::window --send-to-desktop 1
cmd + alt - 7 : chunkc tiling::window --send-to-desktop 2
cmd + alt - 8 : chunkc tiling::window --send-to-desktop 3
cmd + alt - 9 : chunkc tiling::window --send-to-desktop 4
cmd + alt - 0 : chunkc tiling::window --send-to-desktop 5
# focus monitor
cmd + alt - y : chunkc tiling::monitor -f prev
cmd + alt - u : chunkc tiling::monitor -f next
# change layout of desktop
cmd + alt - m : chunkc tiling::desktop --layout bsp
cmd + alt - 0x2B : chunkc tiling::desktop --layout monocle
cmd + alt - 0x2F : chunkc tiling::desktop --layout float
# move window
cmd + alt - j : chunkc tiling::window --warp west
cmd + alt - k : chunkc tiling::window --warp south
cmd + alt - l : chunkc tiling::window --warp north
cmd + alt - 0x29 : chunkc tiling::window --warp east
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment