Skip to content

Instantly share code, notes, and snippets.

@mickaelperrin
Created August 18, 2017 12:43
Show Gist options
  • Save mickaelperrin/bc754ee2c4626e283eaada109d3302bd to your computer and use it in GitHub Desktop.
Save mickaelperrin/bc754ee2c4626e283eaada109d3302bd to your computer and use it in GitHub Desktop.
chunkwm configuration
#!/bin/bash
#
# NOTE: specify the absolutepath to the directory to use when
# loading a plugin. '~' expansion is supported.
#
chunkc core::plugin_dir ~/.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
#
# 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 1_desktop_tree ~/.chunkwm_layouts/dev_1
chunkc set global_desktop_offset_top 10
chunkc set global_desktop_offset_bottom 10
chunkc set global_desktop_offset_left 10
chunkc set global_desktop_offset_right 10
chunkc set global_desktop_offset_gap 5
#chunkc set 16_desktop_offset_top 20
#chunkc set 16_desktop_offset_bottom 600
#chunkc set 16_desktop_offset_left 10
#chunkc set 16_desktop_offset_right 200
#chunkc set 16_desktop_offset_gap 15
#
#chunkc set 17_desktop_offset_top 20
#chunkc set 17_desktop_offset_bottom 600
#chunkc set 17_desktop_offset_left 10
#chunkc set 17_desktop_offset_right 200
#chunkc set 17_desktop_offset_gap 15
#
#chunkc set 18_desktop_offset_top 20
#chunkc set 18_desktop_offset_bottom 600
#chunkc set 18_desktop_offset_left 10
#chunkc set 18_desktop_offset_right 200
#chunkc set 18_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 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
#
# NOTE: shell commands require escaped quotes
# to pass value containing a whitespace.
#
# chunkc set mouse_modifier \"cmd shift\"
chunkc set mouse_modifier fn
chunkc set preselect_border_color 0xff00ff00
chunkc set preselect_border_width 1
chunkc set preselect_border_radius 0
#
# NOTE: these settings require chwm-sa.
# (https://github.com/koekeishiya/chwm-sa)
#
chunkc set window_float_topmost 0
chunkc set window_fade_inactive 0
chunkc set window_fade_alpha 0.85
chunkc set window_fade_duration 0.5
#
# NOTE: the following are config variables for the chunkwm-border plugin.
#
chunkc set focused_border_color 0x99FF0000
chunkc set focused_border_width 4
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 tiling.so
chunkc core::load ffm.so
chunkc core::load border.so
#
# NOTE: shell commands require escaped quotes
# to pass value containing a whitespace.
#
chunkc tiling::rule --owner \"System Preferences\" --subrole AXStandardWindow --state tile
chunkc tiling::rule --owner \"iTerm2\" --subrole AXStandardWindow --state tile
chunkc tiling::rule --owner \"Safari\" --subrole AXStandardWindow --state tile
chunkc tiling::rule --owner \"Chrome\" --subrole AXStandardWindow --state tile
chunkc tiling::rule --owner Finder --name Copy --state float
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment