Mac 설정 업데이트

This commit is contained in:
2021-02-05 11:24:51 +09:00
parent f891e1bcdd
commit 488ce65e37
8 changed files with 141 additions and 12 deletions

View File

@@ -6,12 +6,15 @@ window:
columns: 80
lines: 25
decorations: full
padding:
x: 6
y: 6
decorations: none
font:
normal:
family: TerminessTTF Nerd Font
size: 16.0
colors:
background_opacity: 1
background_opacity: 0.9

56
darwin/skhd/skhdrc Normal file
View File

@@ -0,0 +1,56 @@
# spawn terminal
alt - return : open -na /Applications/Alacritty.app
cmd - return : open -na /Applications/Alacritty.app
# focus window
alt - h : yabai -m window --focus west
alt - l : yabai -m window --focus east
alt - j : yabai -m window --focus south
alt - k : yabai -m window --focus north
# swap managed window
shift + alt - h : yabai -m window --swap west
shift + alt - l : yabai -m window --swap east
shift + alt - j : yabai -m window --swap south
shift + alt - k : yabai -m window --swap north
# move managed window
ctrl + shift + alt - h : yabai -m window --warp west
ctrl + shift + alt - l : yabai -m window --warp east
ctrl + shift + alt - j : yabai -m window --warp south
ctrl + shift + alt - k : yabai -m window --warp north
# fast focus desktop
alt - x : yabai -m space --focus recent
alt - 1 : yabai -m space --focus 1
alt - 2 : yabai -m space --focus 2
alt - 3 : yabai -m space --focus 3
alt - 4 : yabai -m space --focus 4
alt - 5 : yabai -m space --focus 5
alt - 6 : yabai -m space --focus 6
alt - 7 : yabai -m space --focus 7
alt - 8 : yabai -m space --focus 8
alt - 0x21 : yabai -m space --focus prev
alt - 0x1E : yabai -m space --focus next
# fullscreen
alt + shift - f : yabai -m window --toggle zoom-fullscreen
alt - f : yabai -m window --toggle float
# pip
alt - p : yabai -m window --toggle float;\
yabai -m window --toggle sticky;\
yabai -m window --toggle topmost;\
yabai -m window --resize abs:640:360;\
yabai -m window --move abs:1240:800
# send to space
alt + shift - 1 : yabai -m window --space 1
alt + shift - 2 : yabai -m window --space 2
alt + shift - 3 : yabai -m window --space 3
alt + shift - 4 : yabai -m window --space 4
alt + shift - 5 : yabai -m window --space 5
alt + shift - 6 : yabai -m window --space 6
alt + shift - 7 : yabai -m window --space 7
alt + shift - 8 : yabai -m window --space 8

22
darwin/spacebar/spacebarrc Executable file
View File

@@ -0,0 +1,22 @@
#!/usr/bin/env sh
spacebar -m config position top
spacebar -m config height 30
spacebar -m config spacing_left 25
spacebar -m config spacing_right 15
spacebar -m config text_font "TerminessTTF Nerd Font:Normal:17.0"
spacebar -m config icon_font "TerminessTTF Nerd Font:Bold:17.0"
spacebar -m config background_color 0xff282a36
spacebar -m config foreground_color 0xffa8a8a8
spacebar -m config space_icon_color 0xffbd93f9
spacebar -m config power_icon_color 0xffcd950c
spacebar -m config battery_icon_color 0xffd75f5f
spacebar -m config dnd_icon_color 0xffa8a8a8
spacebar -m config clock_icon_color 0xffa8a8a8
spacebar -m config space_icon_strip 1: 2: 3: 4: 5:
spacebar -m config power_icon_strip  
spacebar -m config space_icon 
spacebar -m config clock_icon 
spacebar -m config dnd_icon 
spacebar -m config clock_format "%y/%m/%d %R"

44
darwin/yabai/yabairc Executable file
View File

@@ -0,0 +1,44 @@
#!/bin/sh
sudo yabai --load-sa
sleep 5
yabai -m signal --add event=dock_did_restart action="sudo yabai --load-sa"
brew services restart spacebar
open -a /Applications/Telegram.app
yabai -m config layout bsp
yabai -m config mouse_follows_focus off
yabai -m config focus_follows_mouse autofocus
yabai -m config window_placement second_child
yabai -m config external_bar main:30:0
yabai -m config top_padding 20
yabai -m config bottom_padding 20
yabai -m config left_padding 20
yabai -m config right_padding 20
yabai -m config window_gap 20
yabai -m config window_shadow float
yabai -m config window_border on
yabai -m config window_border_width 6
yabai -m config active_window_border_color 0xff8E83B8
yabai -m config normal_window_border_color 0xff51425C
yabai -m config insert_window_border_color 0xff8E83B8
yabai -m config active_window_opacity 1.0
yabai -m config normal_window_opacity 0.90
yabai -m config mouse_modifier alt
yabai -m rule --add app="^IINA$" sticky=on layer=above manage=off border=off
yabai -m rule --add app="^시스템 환경설정$" layer=above manage=off
yabai -m rule --add app="^Telegram$" layer=above manage=off sticky=on
yabai -m rule --add app="^Transmission Remote GUI$" layer=above manage=off
yabai -m rule --add app="^Finder$" layer=above manage=off border=off
yabai -m rule --add app=Google\ Chrome space=3
yabai -m rule --add app="^Code$" space=4
echo "yabai configuration loaded.."

View File

@@ -16,10 +16,20 @@ const common: DotOption = {
const darwin: DotOption = {
hostname: "MacBook-Pro.local",
install: [
`sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"`,
`/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"`,
"brew tap homebrew/cask-fonts",
"brew install --cask google-chrome alacritty iina visual-studio-code font-terminess-ttf-nerd-font typora",
"brew install wget vim yarn yabai skhd spacebar",
],
link: {
...common.link,
".config/alacritty": "darwin/alacritty",
".local/bin/ufetch": "darwin/bin/ufetch",
".config/yabai": "darwin/yabai",
".config/skhd": "darwin/skhd",
".config/spacebar": "darwin/spacebar",
},
};

View File

@@ -3,24 +3,17 @@ set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-pain-control'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
set -g @plugin 'dracula/tmux'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run -b '~/.tmux/plugins/tpm/tpm'
set -g @themepack 'powerline/block/red'
set-option -g @pane_resize "1"
set -g @yank_selection_mouse 'clipboard'
set -g @continuum-boot 'on'
set -g @resurrect-strategy-nvim 'session'
set -g @resurrect-capture-pane-contents 'on'
set -g mouse on
set -g default-terminal screen-256color
source-file ~/.tmux/themes/tomorrow.tmux
bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xclip -in -selection clipboard'

3
vimrc
View File

@@ -62,7 +62,8 @@ set hlsearch
set cursorline
syntax on
set clipboard+=unnamedplus
set clipboard=unnamed
" set clipboard+=unnamedplus
set laststatus=2
set shell=/bin/bash

Binary file not shown.

After

Width:  |  Height:  |  Size: 401 KiB