Kwask94 / chunkwm-config

My personal chunkwm and skhd configs and scripts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Due to Microsoft's acquisition of GitHub, this repo will be a mirror of the same repo on GitLab. Please do not send any issues or pull request on GitHub as they will be ignored.

chunkwm and skhd configs

My personal chunkwm and skhd configs and scripts

Installing

# Remove previous configs
$ rm -rf "${HOME}/.config/"{chunkwm,skhd}
$ rm -f "${HOME}"/.{chunkwmrc,skhdrc}

# Install configs
$ git clone https://github.com/Julian-Heng/chunkwm-config.git
$ mkdir "${HOME}/.config/"{chunkwm,skhd}
$ cp ./chunkwm-config/chunkwm/* "${HOME}/.config/chunkwm"
$ cp ./chunkwm-config/skhd/skhdrc "${HOME}/.config/skhd"
$ ln -s "${HOME}/.config/chunkwm/chunkwmrc" "${HOME}/.chunkwmrc"
$ ln -s "${HOME}/.config/skhd/skhdrc" "${HOME}/.skhdrc"
$ rm -rf ./chunkwm-config

Keyboard shortcuts

chunkwm

Changing focus

alt + wasd

alt + ijkl

Resize windows

Action Key Combination
Resize left lctrl + alt + j
Resize right lctrl + alt + l
Resize up lctrl + alt + i
Resize down lctrl + alt + k
Equalise lctrl + alt + 0

Move windows

shift + alt + ijkl

Move windows to workspace

Action Key Combination
Send to last active desktop shift + alt + m
Send to previous workplace shift + alt + p
Send to next workplace shift + alt + n
Send to workplace shift + alt + num

Rotate windows

Action Key Combination
Rotate clockwise shift + alt + r
Rotate anticlockwise alt + r
Flip on x-axis shift + alt + x
Flip on y-axis shift + alt + y

Snap windows

Action Key Combination
Snap left shift + alt + a/j
Snap right shift + alt + d/l
Center shift + alt + s/k
Maximise shift + alt + w/i
Fullscreen alt + f
Native Fullscreen shift + alt + f

Insertion point

Action Key Combination
Insert left lctrl + alt + a
Insert right lctrl + alt + d
Insert down lctrl + alt + s
Insert up lctrl + alt + w
Cancel insert lctrl + alt + x

Misc

Action Key Combination
Change modes shift + alt + c
Toggle float shift + alt + space
Restart chunkwm lctrl + shift + alt + r

non-chunkwm

Show information

Description

Uses osascript to show information like CPU, memory, battery, etc. The CPU script requires osx-cpu-temp and iStats installed. The song script supports iTunes, Spotify and cmus.

Click here to view the script folder

Key Combination

fn + lctrl + num

Screenshots

fn + lctrl - 1 : /path/to/script
fn + lctrl - 2 : /path/to/script
fn + lctrl - 3 : /path/to/script
...

Opening applications

Description

Opens applications. fn + alt + num opens apps on the dock a-la windows taskbar and fn + alt + alpha is customisable by the user.

Note that the config is setup to MY dock layout. To use yours, you're gonna have to edit the skhdrc file.

Key Combination

fn + alt + num

fn + alt + alpha

fn + alt - e : open /home/folder
fn + alt - d : open /downloads/folder
fn + alt - 1 : open "/Applications/Safari.app"
fn + alt - 2 : open "/Applications/FirefoxNightly.app"
fn + alt - 3 : open "/Applications/Notes.app"
fn + alt - 4 : open "/Applications/Photos.app"
...

Screenshots

Description

Due to the selection screenshot only selecting the border of the active window and not the actual window, we would have to make a bash script to disable borders before taking a screenshot.

Click here to view the script

Key Combination

command + shift + 3

command + shift + 4

command + shift + lctrl + 3

command + shift + lctrl + 4

cmd + shift - 3 : /path/to/screenshot/script --fullscreen
cmd + shift - 4 : /path/to/screenshot/script  --selection
cmd + shift + lctrl - 3 : /path/to/screenshot/script  --fullscreen --clipboard
cmd + shift + lctrl - 4 : /path/to/screenshot/script  --selection --clipboard

Launch iTerm2

Description

Launches iTerm2 using like in i3-wm.

Click here to view the script

Key Combination

alt + return

alt - return : /path/to/launch/terminal

Launch Activity Monitor

Description

Launches Activity Monitor like in Windows

Key Combination

shift + alt + esc

shift + alt - escape : open "/Applications/Utilities/Activity Monitor.app"

About

My personal chunkwm and skhd configs and scripts


Languages

Language:Shell 100.0%