This commit is contained in:
mokou 2022-01-08 22:48:10 +01:00
parent afea064c8a
commit 7792799ee8
4 changed files with 88 additions and 1 deletions

View file

@ -1,4 +1,6 @@
font_family Fantasque Sans Mono font_family Fantasque Sans Mono
bold_font Fantasque Sans Mono Bold
italic_font Fantasque Sans Mono Italic
font_size 13.0 font_size 13.0
enable_audio_bell no enable_audio_bell no
@ -7,5 +9,6 @@ cursor_blink_interval 0
tab_bar_style powerline tab_bar_style powerline
tab_bar_min_tabs 1 tab_bar_min_tabs 1
hide_window_decorations titlebar-only
include ./theme.conf include ./theme.conf

44
dot_config/skhd/skhdrc Normal file
View file

@ -0,0 +1,44 @@
# open iterm
alt - return : open -n -a iTerm
# focus window
alt - h : yabai -m window --focus west
alt - j : yabai -m window --focus south
alt - k : yabai -m window --focus north
alt - l : yabai -m window --focus east
# swap window
alt + lshift - h : yabai -m window --swap west
alt + lshift - j : yabai -m window --swap south
alt + lshift - k : yabai -m window --swap north
alt + lshift - l : yabai -m window --swap east
# balance window size
alt - b : yabai -m space --balance
# fast focus
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
# create and destroy spaces
alt - x : yabai -m space --create
alt + shift - x : yabai -m space --destroy
# send window to space and follow
alt + shift - 1 : yabai -m window --space 1; yabai -m space --focus 1
alt + shift - 2 : yabai -m window --space 2; yabai -m space --focus 2
alt + shift - 3 : yabai -m window --space 3; yabai -m space --focus 3
alt + shift - 4 : yabai -m window --space 4; yabai -m space --focus 4
alt + shift - 5 : yabai -m window --space 5; yabai -m space --focus 5
# float/unfloat window
alt - space : yabai -m window --toggle float
# float/unfloat window and center
alt + shift - space : yabai -m window --toggle float; yabai -m window --grid 4:4:1:1:2:2
# restart yabai
alt - q : brew services restart yabai

View file

@ -0,0 +1,40 @@
# load the scripting addon on start
yabai -m signal --add event=dock_did_restart action="sudo yabai --load-sa"
# global settings
yabai -m config mouse_follows_focus off
yabai -m config focus_follows_mouse off
yabai -m config window_origin_display default
yabai -m config window_placement second_child
yabai -m config window_topmost off
yabai -m config window_shadow on
yabai -m config window_opacity on
#yabai -m config window_opacity_duration 0.0
yabai -m config active_window_opacity 0.98
yabai -m config normal_window_opacity 0.90
yabai -m config window_border off
yabai -m config window_border_width 8
yabai -m config active_window_border_color 0xff775759
yabai -m config normal_window_border_color 0xff555555
yabai -m config insert_feedback_color 0xffd75f5f
yabai -m config split_ratio 0.50
yabai -m config auto_balance off
yabai -m config mouse_action1 move
yabai -m config mouse_action2 resize
yabai -m config mouse_drop_action swap
# general space settings
yabai -m config layout bsp
yabai -m config top_padding 40
yabai -m config bottom_padding 12
yabai -m config left_padding 20
yabai -m config right_padding 20
yabai -m config window_gap 20
# space setup
yabai -m space 1 --label I
yabai -m space 2 --label II
yabai -m space 3 --label III
yabai -m space 4 --label IV
yabai -m space 5 --label V

View file

@ -137,7 +137,7 @@
;;idris ; a language you can depend on ;;idris ; a language you can depend on
json ; At least it ain't XML json ; At least it ain't XML
;;(java +meghanada) ; the poster child for carpal tunnel syndrome ;;(java +meghanada) ; the poster child for carpal tunnel syndrome
;;javascript ; all(hope(abandon(ye(who(enter(here)))))) javascript ; all(hope(abandon(ye(who(enter(here))))))
;;julia ; a better, faster MATLAB ;;julia ; a better, faster MATLAB
;;kotlin ; a better, slicker Java(Script) ;;kotlin ; a better, slicker Java(Script)
;;latex ; writing papers in Emacs has never been so fun ;;latex ; writing papers in Emacs has never been so fun