Adding configs for MacOS
This commit is contained in:
117
.chunkwmrc
Normal file
117
.chunkwmrc
Normal file
@@ -0,0 +1,117 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
#
|
||||||
|
# NOTE: specify the absolutepath of the file to use for logging.
|
||||||
|
# 'stdout' and 'stderr' are valid values.
|
||||||
|
#
|
||||||
|
|
||||||
|
chunkc core::log_file stdout
|
||||||
|
|
||||||
|
#
|
||||||
|
# NOTE: specify the desired level of logging.
|
||||||
|
#
|
||||||
|
# - none, debug, warn, error
|
||||||
|
#
|
||||||
|
|
||||||
|
chunkc core::log_level error
|
||||||
|
|
||||||
|
#
|
||||||
|
# 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 0
|
||||||
|
|
||||||
|
#
|
||||||
|
# NOTE: the following are config variables for the chunkwm-tiling plugin.
|
||||||
|
#
|
||||||
|
|
||||||
|
chunkc set global_desktop_mode bsp
|
||||||
|
chunkc set global_desktop_offset_top 20
|
||||||
|
chunkc set global_desktop_offset_bottom 20
|
||||||
|
chunkc set global_desktop_offset_left 20
|
||||||
|
chunkc set global_desktop_offset_right 20
|
||||||
|
chunkc set global_desktop_offset_gap 15
|
||||||
|
|
||||||
|
#
|
||||||
|
# NOTE: syntax for desktop-specific settings
|
||||||
|
#
|
||||||
|
# chunkc set 2_desktop_mode monocle
|
||||||
|
# chunkc set 5_desktop_mode float
|
||||||
|
# chunkc set 3_desktop_offset_top 190
|
||||||
|
# chunkc set 3_desktop_offset_bottom 190
|
||||||
|
# chunkc set 3_desktop_offset_left 190
|
||||||
|
# chunkc set 3_desktop_offset_right 190
|
||||||
|
# chunkc set 3_desktop_offset_gap 30
|
||||||
|
#
|
||||||
|
|
||||||
|
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 intrinsic
|
||||||
|
chunkc set window_float_next 0
|
||||||
|
chunkc set window_region_locked 1
|
||||||
|
|
||||||
|
chunkc set mouse_move_window \"fn 1\"
|
||||||
|
chunkc set mouse_resize_window \"fn 2\"
|
||||||
|
|
||||||
|
chunkc set preselect_border_color 0xffd75f5f
|
||||||
|
chunkc set preselect_border_width 5
|
||||||
|
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.25
|
||||||
|
chunkc set window_use_cgs_move 0
|
||||||
|
|
||||||
|
#
|
||||||
|
# NOTE: the following are config variables for the chunkwm-border plugin.
|
||||||
|
#
|
||||||
|
|
||||||
|
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: the following are config variables for the chunkwm-ffm plugin.
|
||||||
|
#
|
||||||
|
|
||||||
|
chunkc set mouse_modifier fn
|
||||||
|
|
||||||
|
#
|
||||||
|
# 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
|
||||||
|
|
||||||
|
#
|
||||||
|
# NOTE: sample rules for the tiling plugin
|
||||||
|
#
|
||||||
|
|
||||||
|
chunkc tiling::rule --owner Finder --name Copy --state float
|
||||||
|
chunkc tiling::rule --owner \"App Store\" --state float
|
||||||
12
.zshrc
12
.zshrc
@@ -1,11 +1,19 @@
|
|||||||
|
|
||||||
# Path to your oh-my-zsh installation.
|
# Path to your oh-my-zsh installation.
|
||||||
export ZSH=/home/tristan/.oh-my-zsh
|
export ZSH=$HOME/.oh-my-zsh
|
||||||
|
|
||||||
|
UNAME="$(uname -s)"
|
||||||
|
case "${UNAME}" in
|
||||||
|
Linux*) hostname=$(</etc/hostname);;
|
||||||
|
Darwin*) hostname=$(hostname);;
|
||||||
|
CYGWIN*) machine=Cygwin;;
|
||||||
|
MINGW*) machine=MinGw;;
|
||||||
|
*) hostname=$(</etc/hostname);;
|
||||||
|
esac
|
||||||
|
|
||||||
# Set name of the theme to load. Optionally, if you set this to "random"
|
# Set name of the theme to load. Optionally, if you set this to "random"
|
||||||
# it'll load a random theme each time that oh-my-zsh is loaded.
|
# it'll load a random theme each time that oh-my-zsh is loaded.
|
||||||
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
|
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
|
||||||
hostname=$(</etc/hostname)
|
|
||||||
if [[ "$hostname" == "T-i3" ]]; then
|
if [[ "$hostname" == "T-i3" ]]; then
|
||||||
ZSH_THEME="T-i3"
|
ZSH_THEME="T-i3"
|
||||||
elif [[ "$hostname" == "TServer" ]]; then
|
elif [[ "$hostname" == "TServer" ]]; then
|
||||||
|
|||||||
10
install.sh
10
install.sh
@@ -1,5 +1,13 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
SCRIPT_DIR=$(readlink -f ${0%/*})
|
UNAME="$(uname -s)"
|
||||||
|
case "${UNAME}" in
|
||||||
|
Linux*) SCRIPT_DIR=$(readlink -f ${0%/*});;
|
||||||
|
Darwin*) SCRIPT_DIR=$(cd "$(dirname "$0")"; pwd);;
|
||||||
|
CYGWIN*) machine=Cygwin;;
|
||||||
|
MINGW*) machine=MinGw;;
|
||||||
|
*) SCRIPT_DIR=$(readlink -f ${0%/*});;
|
||||||
|
esac
|
||||||
|
|
||||||
safe_link(){
|
safe_link(){
|
||||||
local src="$1"
|
local src="$1"
|
||||||
local dest="$HOME/`basename $src`"
|
local dest="$HOME/`basename $src`"
|
||||||
|
|||||||
Reference in New Issue
Block a user