From 7792799ee85a7ab17283483b075f946dfc056328 Mon Sep 17 00:00:00 2001 From: mokou Date: Sat, 8 Jan 2022 22:48:10 +0100 Subject: [PATCH] hell --- dot_config/kitty/kitty.conf | 3 ++ dot_config/skhd/skhdrc | 44 +++++++++++++++++++++++++++++ dot_config/yabai/executable_yabairc | 40 ++++++++++++++++++++++++++ dot_doom.d/init.el | 2 +- 4 files changed, 88 insertions(+), 1 deletion(-) create mode 100644 dot_config/skhd/skhdrc create mode 100644 dot_config/yabai/executable_yabairc diff --git a/dot_config/kitty/kitty.conf b/dot_config/kitty/kitty.conf index 06159d5..1389b78 100644 --- a/dot_config/kitty/kitty.conf +++ b/dot_config/kitty/kitty.conf @@ -1,4 +1,6 @@ font_family Fantasque Sans Mono +bold_font Fantasque Sans Mono Bold +italic_font Fantasque Sans Mono Italic font_size 13.0 enable_audio_bell no @@ -7,5 +9,6 @@ cursor_blink_interval 0 tab_bar_style powerline tab_bar_min_tabs 1 +hide_window_decorations titlebar-only include ./theme.conf diff --git a/dot_config/skhd/skhdrc b/dot_config/skhd/skhdrc new file mode 100644 index 0000000..6a53e63 --- /dev/null +++ b/dot_config/skhd/skhdrc @@ -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 diff --git a/dot_config/yabai/executable_yabairc b/dot_config/yabai/executable_yabairc new file mode 100644 index 0000000..4afe617 --- /dev/null +++ b/dot_config/yabai/executable_yabairc @@ -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 + diff --git a/dot_doom.d/init.el b/dot_doom.d/init.el index 41f6d90..1e6d47e 100644 --- a/dot_doom.d/init.el +++ b/dot_doom.d/init.el @@ -137,7 +137,7 @@ ;;idris ; a language you can depend on json ; At least it ain't XML ;;(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 ;;kotlin ; a better, slicker Java(Script) ;;latex ; writing papers in Emacs has never been so fun