From 6c4a8d81f84c7b525975dbc951ae913204a74015 Mon Sep 17 00:00:00 2001 From: wooshdude Date: Sun, 17 Nov 2024 14:02:13 -0800 Subject: [PATCH] tmux stuff --- skhd/.config/skhd/skhdrc | 5 +++++ tmux/.tmux.conf | 24 ++++++++++++++++++++++++ yabai/.config/yabai/yabairc | 9 ++++++++- 3 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 tmux/.tmux.conf diff --git a/skhd/.config/skhd/skhdrc b/skhd/.config/skhd/skhdrc index ab626d4..a4f1171 100644 --- a/skhd/.config/skhd/skhdrc +++ b/skhd/.config/skhd/skhdrc @@ -15,3 +15,8 @@ shift + cmd - f : yabai -m window --toggle zoom-fullscreen # balance windows shift + cmd - b : yabai -m space --balance + +# remember float setting +fn - t : app=$(yabai -m query --windows --window mouse | jq -r '.app' | tr ' ' '_');\ + yabai -m window --toggle float;\ + yabai -m signal --remove autofloat_$app || yabai -m signal --add event=window_created app=$app label=autofloat_$app action="yabai -m window $YABAI_WINDOW_ID --toggle float" diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf new file mode 100644 index 0000000..2b97479 --- /dev/null +++ b/tmux/.tmux.conf @@ -0,0 +1,24 @@ +# ~/.tmux.conf + +# Options to make tmux more pleasant +set -g mouse on +set -g default-terminal "tmux-256color" +set -a terminal-features 'xterm-256color:RGB' + +# Configure the catppuccin plugin +set -g @catppuccin_flavor "mocha" +set -g @catppuccin_window_status_style "rounded" + +# Load catppuccin +run ~/.config/tmux/plugins/catppuccin/tmux/catppuccin.tmux +# For TPM, instead use `run ~/.config/tmux/plugins/tmux/catppuccin.tmux` + +# Make the status line pretty and add some modules +set -g status-right-length 100 +set -g status-left-length 100 +set -g status-left "" +set -g status-right "#{E:@catppuccin_date_time}" + +run ~/.config/tmux/plugins/tmux-plugins/tmux-cpu/cpu.tmux +run ~/.config/tmux/plugins/tmux-plugins/tmux-battery/battery.tmux +# Or, if using TPM, just run TPM diff --git a/yabai/.config/yabai/yabairc b/yabai/.config/yabai/yabairc index 40091f3..cb26559 100644 --- a/yabai/.config/yabai/yabairc +++ b/yabai/.config/yabai/yabairc @@ -19,12 +19,19 @@ yabai -m mouse_action2 resize yabai -m mouse_drop_action swap -# ignore apps +# manage apps yabai -m rule --add app="^System Settings$" manage=off yabai -m rule --add app="^Calculator$" manage=off yabai -m rule --add app="^love$" manage=off yabai -m rule --add app="^Messages$" manage=off +yabai -m rule --add app="Godot" manage=on +yabai -m rule --add app="Godot" title=".*\(DEBUG\).*" manage=off +yabai -m rule --add app="Godot" title=".*Settings.*" manage=off +yabai -m rule --add app="Godot" title=".*Create.*" manage=off +yabai -m rule --add app="Godot" title="Please Confirm..." manage=off +yabai -m rule --add app="Godot" title=".*Save.*" manage=off + # include apps yabai -m rule --add app="^Unity$" manage=on