Skip to content

Commit

Permalink
macOS switch to Hyper from iTerm
Browse files Browse the repository at this point in the history
Even if Hyper is in electron, it is for some reason
still faster than iTerm. iTerm is probably the slowest terminal
emulator that I ever used. Also, added experimental config files
for chunkwm (kwm successor). Still sticking to kwm, because
chunkwm do not provides any handling for moving windows between
spaces.

Signed-off-by: Tomas Slusny <[email protected]>
  • Loading branch information
deathbeam committed Feb 26, 2017
1 parent ed392db commit 446394d
Show file tree
Hide file tree
Showing 16 changed files with 211 additions and 77 deletions.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,6 @@ because most of the time I just cannot make up my mind, and I change my decision
configuration that will remap caps lock to hyper is in dotfiles.
* [Alfred 3](https://www.alfredapp.com/) - Used as launcher application in my kwm/khd config. Not needed, you can just
adjust keybindings in khdrc to use Spotlight, but Alfred is just too awesome to pass.
* [iTerm2](http://iterm2.com/) - It is better than Terminal, and supports 256 colors, instead of Terminal's 16. Also, it
have no titlebar mode, what is great. And my macOS setup is configured to be working properly with iTerm2.

## How to install?

Expand Down
10 changes: 10 additions & 0 deletions config/chunkwmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

export CHUNKC_SOCKET=3920

# Plugins
chunkc plugin_dir ~/.chunkwm_plugins
chunkc hotload 1
chunkc load tiling.so
# chunkc load ffm.so
chunkc load border.so
23 changes: 23 additions & 0 deletions config/chunkwmtilingrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/bash

export CHUNKC_SOCKET=4131

# Tiling
chunkc config global_space_mode bsp
chunkc config global_space_offset_top 25
chunkc config global_space_offset_bottom 0
chunkc config global_space_offset_left 0
chunkc config global_space_offset_right 0
chunkc config global_space_offset_gap 0

chunkc config bsp_spawn_left 1
chunkc config bsp_optimal_ratio 1.618
chunkc config bsp_split_mode optimal
chunkc config bsp_split_ratio 0.5

chunkc config mouse_follows_focus 0
chunkc config window_float_next 0

# signal dock to make windows topmost when floated
# requires chwm-sa (https://github.com/koekeishiya/chwm-sa)
chunkc config window_float_topmost 0
31 changes: 31 additions & 0 deletions config/hyper.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
module.exports = {
config: {
fontSize: 12,
fontFamily: 'Terminus',
padding: '5px',

base16: {
scheme: 'solarized'
},

hyperStatusLine: {
fontFamily: 'Terminus'
},

css: `
.header_header {
display: none;
}
.terms_terms {
margin-top: 0;
}
`,

showWindowControls: 'false',
shell: '/bin/zsh',
shellArgs: ['--login'],
bell: false,
},

plugins: [ 'hypersixteen', 'hyperminimal' ],
};
58 changes: 1 addition & 57 deletions config/khdrc
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ khd mode resize restore default
khd mode resize color 0xFF2AA198

# Launch terminal
cmd + alt + ctrl - return : ~/.kwm/iterm2.applescript
cmd + alt + ctrl - return : open -na /Applications/Hyper.app

# Launch app manager
cmd + alt + ctrl - space : open /Applications/Alfred\ 3.app
Expand Down Expand Up @@ -95,59 +95,3 @@ resize + shift - h : kwmc window -c reduce 0.05 west
resize + shift - j : kwmc window -c reduce 0.05 south
resize + shift - k : kwmc window -c reduce 0.05 north
resize + shift - l : kwmc window -c reduce 0.05 east

# Give Focus To Screen
# cmd + alt - 1 : kwmc display -f 0
# cmd + alt - 2 : kwmc display -f 1
# cmd + alt - 3 : kwmc display -f 2

# Swap focused window
# ctrl + alt - m : kwmc window -s mark

# # Pseudo containers
# cmd + ctrl + alt - p : kwmc tree -pseudo create
# cmd + ctrl + alt - o : kwmc tree -pseudo destroy

# # Detach Focused Window And Reinsert In Direction
# ctrl + shift - k : kwmc window -m north
# ctrl + shift - l : kwmc window -m east
# ctrl + shift - j : kwmc window -m south
# ctrl + shift - h : kwmc window -m west

# # Detach Marked Window And Reinsert At Focused Window
# ctrl + shift - x : kwmc window -m mark

# # Move Focused Window To Space
# ctrl + alt - left : kwmc window -m space left
# ctrl + alt - right : kwmc window -m space right

# # Move Focused Window To Screen
# ctrl + alt - 1 : kwmc window -m display 0
# ctrl + alt - 2 : kwmc window -m display 1
# ctrl + alt - 3 : kwmc window -m display 2

# Set Temporary Window Container
# cmd + alt + ctrl - d : kwmc window -z parent

# Set Space Tiling Mode To BSP
# cmd + alt + ctrl - a : kwmc space -t bsp

# Set Space Tiling Mode To Monocle
# cmd + alt + ctrl - s : kwmc space -t monocle

# Set Space Tiling Mode To Floating
# cmd + alt + ctrl - d : kwmc space -t float

# Rotate Window-Tree By 90degrees (Clockwise)
# cmd + alt + ctrl - r : kwmc tree rotate 90

# Modify Container
# cmd + alt + ctrl - s : kwmc window -c split-mode toggle
# cmd + alt + ctrl - 0x32 : kwmc window -c type toggle

# Mark Window
# cmd + alt + ctrl - m : kwmc window -mk focused
# cmd + alt + ctrl - h : kwmc window -mk west wrap
# cmd + alt + ctrl - l : kwmc window -mk east wrap
# cmd + alt + ctrl - j : kwmc window -mk south wrap
# cmd + alt + ctrl - k : kwmc window -mk north wrap
137 changes: 137 additions & 0 deletions config/khdrc_chunkwm
Original file line number Diff line number Diff line change
@@ -0,0 +1,137 @@
# Launch terminal
cmd + alt + ctrl - return : open -na /Applications/Hyper.app

# Launch app manager
cmd + alt + ctrl - space : open /Applications/Alfred\ 3.app

# Launch password manager
cmd + alt + ctrl - z : ~/.kwm/pass.applescript
cmd + alt + ctrl - y : ~/.kwm/pass.applescript

# Launch process manager
cmd + alt + ctrl - x : ~/.kwm/pkill.applescript

# Launch clipboard manager
cmd + alt + ctrl - c : khd -p "cmd + alt - c"

# Launch music manager
cmd + alt + ctrl - v : ~/.kwm/spotify.applescript

# Restard khd
cmd + alt + ctrl - escape : khd -e "reload"

# Restard window manager
# cmd + alt + ctrl + shift - escape : brew services restart kwm

# Lock screen
cmd + alt + ctrl - e : pmset displaysleepnow

# Close window
cmd + alt + ctrl - w ![Firefox] : khd -p "cmd - w"
cmd + alt + ctrl - w [Firefox] : khd -p "cmd + shift - w"

# Quit application
cmd + alt + ctrl + shift - w : khd -p "cmd - q"

# Set space tiled
cmd + alt + ctrl - t : chunkc space -l bsp

# Set space monocle
cmd + alt + ctrl - m : chunkc space -l monocle

# Toggle window fullscreen
cmd + alt + ctrl - f : chunkc window -t fullscreen

# Toggle window floating
cmd + alt + ctrl - s : chunkc window -t float

# Give Focus To Window
cmd + alt + ctrl - h : chunkc window -f west
cmd + alt + ctrl - l : chunkc window -f east
cmd + alt + ctrl - j : chunkc window -f south
cmd + alt + ctrl - k : chunkc window -f north

# Move window
cmd + alt + ctrl + shift - h : chunkc window -w west
cmd + alt + ctrl + shift - j : chunkc window -w south
cmd + alt + ctrl + shift - k : chunkc window -w north
cmd + alt + ctrl + shift - l : chunkc window -w east

# Resize windows
# cmd + alt + ctrl - r : khd -e "mode activate resize"
# resize - h : kwmc window -c expand 0.05 west
# resize - j : kwmc window -c expand 0.05 south
# resize - k : kwmc window -c expand 0.05 north
# resize - l : kwmc window -c expand 0.05 east
# resize + shift - h : kwmc window -c reduce 0.05 west
# resize + shift - j : kwmc window -c reduce 0.05 south
# resize + shift - k : kwmc window -c reduce 0.05 north
# resize + shift - l : kwmc window -c reduce 0.05 east

# Move between spaces
# cmd + alt + ctrl - 0x12 : kwmc space -fExperimental 1
# cmd + alt + ctrl - 0x13 : kwmc space -fExperimental 2
# cmd + alt + ctrl - 0x14 : kwmc space -fExperimental 3
# cmd + alt + ctrl - 0x15 : kwmc space -fExperimental 4
# cmd + alt + ctrl - 0x16 : kwmc space -fExperimental 5
# cmd + alt + ctrl + shift - 0x12 : kwmc window -m space 1
# cmd + alt + ctrl + shift - 0x13 : kwmc window -m space 2
# cmd + alt + ctrl + shift - 0x14 : kwmc window -m space 3
# cmd + alt + ctrl + shift - 0x15 : kwmc window -m space 4
# cmd + alt + ctrl + shift - 0x16 : kwmc window -m space 5

# Give Focus To Screen
# cmd + alt - 1 : kwmc display -f 0
# cmd + alt - 2 : kwmc display -f 1
# cmd + alt - 3 : kwmc display -f 2

# Swap focused window
# ctrl + alt - m : kwmc window -s mark

# # Pseudo containers
# cmd + ctrl + alt - p : kwmc tree -pseudo create
# cmd + ctrl + alt - o : kwmc tree -pseudo destroy

# # Detach Focused Window And Reinsert In Direction
# ctrl + shift - k : kwmc window -m north
# ctrl + shift - l : kwmc window -m east
# ctrl + shift - j : kwmc window -m south
# ctrl + shift - h : kwmc window -m west

# # Detach Marked Window And Reinsert At Focused Window
# ctrl + shift - x : kwmc window -m mark

# # Move Focused Window To Space
# ctrl + alt - left : kwmc window -m space left
# ctrl + alt - right : kwmc window -m space right

# # Move Focused Window To Screen
# ctrl + alt - 1 : kwmc window -m display 0
# ctrl + alt - 2 : kwmc window -m display 1
# ctrl + alt - 3 : kwmc window -m display 2

# Set Temporary Window Container
# cmd + alt + ctrl - d : kwmc window -z parent

# Set Space Tiling Mode To BSP
# cmd + alt + ctrl - a : kwmc space -t bsp

# Set Space Tiling Mode To Monocle
# cmd + alt + ctrl - s : kwmc space -t monocle

# Set Space Tiling Mode To Floating
# cmd + alt + ctrl - d : kwmc space -t float

# Rotate Window-Tree By 90degrees (Clockwise)
# cmd + alt + ctrl - r : kwmc tree rotate 90

# Modify Container
# cmd + alt + ctrl - s : kwmc window -c split-mode toggle
# cmd + alt + ctrl - 0x32 : kwmc window -c type toggle

# Mark Window
# cmd + alt + ctrl - m : kwmc window -mk focused
# cmd + alt + ctrl - h : kwmc window -mk west wrap
# cmd + alt + ctrl - l : kwmc window -mk east wrap
# cmd + alt + ctrl - j : kwmc window -mk south wrap
# cmd + alt + ctrl - k : kwmc window -mk north wrap
2 changes: 1 addition & 1 deletion install.conf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
$HOME/.profile: config/profile
$HOME/.vimrc: config/vimrc
$HOME/.tmux.conf: config/tmux.conf
$HOME/.hyper.js: config/hyper.js
$HOME/.kwm/kwmrc: config/kwmrc
$HOME/.kwm/iterm2.applescript: lib/macos/iterm2.applescript
$HOME/.kwm/pass.applescript: lib/macos/alfred/pass.applescript
$HOME/.kwm/pkill.applescript: lib/macos/alfred/pkill.applescript
$HOME/.kwm/spotify.applescript: lib/macos/alfred/spotify.applescript
Expand Down
9 changes: 0 additions & 9 deletions lib/macos/iterm2.applescript

This file was deleted.

2 changes: 1 addition & 1 deletion lib/shell/fzf
Submodule fzf updated 2 files
+4 −0 plugin/fzf.vim
+4 −1 src/terminal.go
2 changes: 1 addition & 1 deletion lib/vim/base16-vim
Submodule base16-vim updated 84 files
+1 −0 colors/base16-3024.vim
+1 −0 colors/base16-apathy.vim
+1 −0 colors/base16-ashes.vim
+301 −0 colors/base16-atelier-cave-light.vim
+1 −0 colors/base16-atelier-cave.vim
+301 −0 colors/base16-atelier-dune-light.vim
+1 −0 colors/base16-atelier-dune.vim
+301 −0 colors/base16-atelier-estuary-light.vim
+1 −0 colors/base16-atelier-estuary.vim
+301 −0 colors/base16-atelier-forest-light.vim
+1 −0 colors/base16-atelier-forest.vim
+301 −0 colors/base16-atelier-heath-light.vim
+1 −0 colors/base16-atelier-heath.vim
+301 −0 colors/base16-atelier-lakeside-light.vim
+1 −0 colors/base16-atelier-lakeside.vim
+301 −0 colors/base16-atelier-plateau-light.vim
+1 −0 colors/base16-atelier-plateau.vim
+301 −0 colors/base16-atelier-savanna-light.vim
+1 −0 colors/base16-atelier-savanna.vim
+301 −0 colors/base16-atelier-seaside-light.vim
+1 −0 colors/base16-atelier-seaside.vim
+301 −0 colors/base16-atelier-sulphurpool-light.vim
+1 −0 colors/base16-atelier-sulphurpool.vim
+1 −0 colors/base16-bespin.vim
+1 −0 colors/base16-brewer.vim
+1 −0 colors/base16-bright.vim
+1 −0 colors/base16-chalk.vim
+1 −0 colors/base16-codeschool.vim
+1 −0 colors/base16-cupcake.vim
+1 −0 colors/base16-darktooth.vim
+1 −0 colors/base16-default-dark.vim
+1 −0 colors/base16-default-light.vim
+1 −0 colors/base16-dracula.vim
+1 −0 colors/base16-eighties.vim
+1 −0 colors/base16-embers.vim
+1 −0 colors/base16-flat.vim
+1 −0 colors/base16-github.vim
+1 −0 colors/base16-google-dark.vim
+1 −0 colors/base16-google-light.vim
+1 −0 colors/base16-grayscale-dark.vim
+1 −0 colors/base16-grayscale-light.vim
+3 −2 colors/base16-greenscreen.vim
+301 −0 colors/base16-gruvbox-dark-hard.vim
+301 −0 colors/base16-gruvbox-dark-medium.vim
+301 −0 colors/base16-gruvbox-dark-pale.vim
+301 −0 colors/base16-gruvbox-dark-soft.vim
+301 −0 colors/base16-gruvbox-light-hard.vim
+301 −0 colors/base16-gruvbox-light-medium.vim
+301 −0 colors/base16-gruvbox-light-soft.vim
+3 −2 colors/base16-harmonic-dark.vim
+3 −2 colors/base16-harmonic-light.vim
+1 −0 colors/base16-hopscotch.vim
+3 −2 colors/base16-irblack.vim
+1 −0 colors/base16-isotope.vim
+1 −0 colors/base16-macintosh.vim
+1 −0 colors/base16-marrakesh.vim
+1 −0 colors/base16-materia.vim
+1 −0 colors/base16-mexico-light.vim
+1 −0 colors/base16-mocha.vim
+1 −0 colors/base16-monokai.vim
+1 −0 colors/base16-ocean.vim
+1 −0 colors/base16-oceanicnext.vim
+1 −0 colors/base16-onedark.vim
+1 −0 colors/base16-paraiso.vim
+1 −0 colors/base16-phd.vim
+1 −0 colors/base16-pico.vim
+1 −0 colors/base16-pop.vim
+1 −0 colors/base16-railscasts.vim
+3 −2 colors/base16-seti.vim
+1 −0 colors/base16-shapeshifter.vim
+3 −2 colors/base16-solarflare.vim
+1 −0 colors/base16-solarized-dark.vim
+1 −0 colors/base16-solarized-light.vim
+1 −0 colors/base16-spacemacs.vim
+1 −0 colors/base16-summerfruit-dark.vim
+1 −0 colors/base16-summerfruit-light.vim
+1 −0 colors/base16-tomorrow-night.vim
+1 −0 colors/base16-tomorrow.vim
+3 −2 colors/base16-tube.vim
+1 −0 colors/base16-twilight.vim
+1 −0 colors/base16-unikitty-dark.vim
+1 −0 colors/base16-unikitty-light.vim
+1 −0 colors/base16-woodland.vim
+26 −0 templates/default.mustache
2 changes: 1 addition & 1 deletion lib/vim/deoplete.nvim
2 changes: 1 addition & 1 deletion lib/vim/fzf.vim
Submodule fzf.vim updated 1 files
+2 −2 autoload/fzf/vim.vim
2 changes: 1 addition & 1 deletion lib/vim/syntastic
2 changes: 1 addition & 1 deletion lib/vim/vim-fugitive
Submodule vim-fugitive updated 1 files
+2 −1 plugin/fugitive.vim
2 changes: 1 addition & 1 deletion lib/vim/vim-javacomplete2
2 changes: 1 addition & 1 deletion lib/vim/vim-snippets

0 comments on commit 446394d

Please sign in to comment.