If statements for mac and linux, keyboard shortcuts for macos.
This commit is contained in:
40
.skhdrc
Normal file
40
.skhdrc
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
# 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 - e : chunkc tiling::desktop --layout bsp
|
||||||
|
alt - s : 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
|
||||||
15
install.sh
15
install.sh
@@ -1,8 +1,8 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
UNAME="$(uname -s)"
|
UNAME="$(uname -s)"
|
||||||
case "${UNAME}" in
|
case "${UNAME}" in
|
||||||
Linux*) SCRIPT_DIR=$(readlink -f ${0%/*});;
|
Linux*) machine=Linux SCRIPT_DIR=$(readlink -f ${0%/*});;
|
||||||
Darwin*) SCRIPT_DIR=$(cd "$(dirname "$0")"; pwd);;
|
Darwin*) machine=Darwin SCRIPT_DIR=$(cd "$(dirname "$0")"; pwd);;
|
||||||
CYGWIN*) machine=Cygwin;;
|
CYGWIN*) machine=Cygwin;;
|
||||||
MINGW*) machine=MinGw;;
|
MINGW*) machine=MinGw;;
|
||||||
*) SCRIPT_DIR=$(readlink -f ${0%/*});;
|
*) SCRIPT_DIR=$(readlink -f ${0%/*});;
|
||||||
@@ -15,9 +15,14 @@ safe_link(){
|
|||||||
}
|
}
|
||||||
symlink_dotfiles() {
|
symlink_dotfiles() {
|
||||||
|
|
||||||
safe_link "$SCRIPT_DIR/.i3"
|
if [[ $machine == 'Linux' ]]
|
||||||
safe_link "$SCRIPT_DIR/.Xresources"
|
safe_link "$SCRIPT_DIR/.i3"
|
||||||
safe_link "$SCRIPT_DIR/.dmrc"
|
safe_link "$SCRIPT_DIR/.Xresources"
|
||||||
|
safe_link "$SCRIPT_DIR/.dmrc"
|
||||||
|
elif [[ $machine == 'Darwin' ]]
|
||||||
|
safe_link "$SCRIPT_DIR/.skhdrc"
|
||||||
|
safe_link "$SCRIPT_DIR/.chunkwmrc"
|
||||||
|
fi
|
||||||
safe_link "$SCRIPT_DIR/.gitconfig"
|
safe_link "$SCRIPT_DIR/.gitconfig"
|
||||||
safe_link "$SCRIPT_DIR/.oh-my-zsh"
|
safe_link "$SCRIPT_DIR/.oh-my-zsh"
|
||||||
safe_link "$SCRIPT_DIR/.zshrc"
|
safe_link "$SCRIPT_DIR/.zshrc"
|
||||||
|
|||||||
Reference in New Issue
Block a user