From 2e2db2ab1d00dbfbdea0b5cf92d8514f3cd66518 Mon Sep 17 00:00:00 2001 From: afonsofrancof Date: Mon, 12 Feb 2024 15:04:57 +0000 Subject: [PATCH] Removed title bar from alacritty --- .config/alacritty/alacritty.toml | 1 + .config/skhd/skhdrc | 31 +++++++++++++++++++++++++++++++ .config/yabai/yabairc | 26 ++++++++++++++++++++++++++ 3 files changed, 58 insertions(+) create mode 100644 .config/skhd/skhdrc create mode 100755 .config/yabai/yabairc diff --git a/.config/alacritty/alacritty.toml b/.config/alacritty/alacritty.toml index 0897bed..8dbb976 100644 --- a/.config/alacritty/alacritty.toml +++ b/.config/alacritty/alacritty.toml @@ -16,6 +16,7 @@ style = "Light" opacity = 0.95 option_as_alt = "Both" dynamic_padding = true +decorations= "Buttonless" [window.padding] x = 2 diff --git a/.config/skhd/skhdrc b/.config/skhd/skhdrc new file mode 100644 index 0000000..e9acaca --- /dev/null +++ b/.config/skhd/skhdrc @@ -0,0 +1,31 @@ +# Terminal and Applications +cmd - t : open -na alacritty +cmd - b : open -a Firefox + +# System Controls +cmd - return : yabai -m window --swap west +cmd - q : yabai -m window --close +cmd - u : yabai --load-sa && yabai --restart # Assuming you have scripting additions installed + +# Window Management +cmd - h : yabai -m window --resize left:20:0 +cmd - l : yabai -m window --resize right:20:0 +cmd - j : yabai -m window --focus prev || yabai -m window --focus last +cmd - k : yabai -m window --focus next || yabai -m window --focus first + +# Focus workspaces 1 through 6 +cmd - 1 : yabai -m space --focus 1 +cmd - 2 : yabai -m space --focus 2 +cmd - 3 : yabai -m space --focus 3 +cmd - 4 : yabai -m space --focus 4 +cmd - 5 : yabai -m space --focus 5 +cmd - 6 : yabai -m space --focus 6 + +# Move focused window to workspaces 1 through 6 and focus that space +cmd + shift - 1 : yabai -m window --space 1 +cmd + shift - 2 : yabai -m window --space 2 +cmd + shift - 3 : yabai -m window --space 3 +cmd + shift - 4 : yabai -m window --space 4 +cmd + shift - 5 : yabai -m window --space 5 +cmd + shift - 6 : yabai -m window --space 6 + diff --git a/.config/yabai/yabairc b/.config/yabai/yabairc new file mode 100755 index 0000000..f831524 --- /dev/null +++ b/.config/yabai/yabairc @@ -0,0 +1,26 @@ +yabai -m signal --add event=dock_did_restart action="sudo yabai --load-sa" +sudo yabai --load-sa + +yabai -m config layout bsp +#yabai -m config debug_output on + +# General settings +yabai -m config focus_follows_mouse autofocus +yabai -m config window_placement first_child +yabai -m config window_placement second_child + +yabai -m rule --add app="^Firefox$" space=2 +# Add more rules based on your applications and workspace preferences + + +#Indicator +yabai -m signal --add event=mission_control_exit action='echo "refresh" | nc -U /tmp/yabai-indicator.socket' +yabai -m signal --add event=display_added action='echo "refresh" | nc -U /tmp/yabai-indicator.socket' +yabai -m signal --add event=display_removed action='echo "refresh" | nc -U /tmp/yabai-indicator.socket' +yabai -m signal --add event=window_created action='echo "refresh windows" | nc -U /tmp/yabai-indicator.socket' +yabai -m signal --add event=window_destroyed action='echo "refresh windows" | nc -U /tmp/yabai-indicator.socket' +yabai -m signal --add event=window_focused action='echo "refresh windows" | nc -U /tmp/yabai-indicator.socket' +yabai -m signal --add event=window_moved action='echo "refresh windows" | nc -U /tmp/yabai-indicator.socket' +yabai -m signal --add event=window_resized action='echo "refresh windows" | nc -U /tmp/yabai-indicator.socket' +yabai -m signal --add event=window_minimized action='echo "refresh windows" | nc -U /tmp/yabai-indicator.socket' +yabai -m signal --add event=window_deminimized action='echo "refresh windows" | nc -U /tmp/yabai-indicator.socket'