From 03b65ac1ebccb464488dd01895c52e9e020f1bb8 Mon Sep 17 00:00:00 2001 From: afonso Date: Mon, 8 Apr 2024 13:47:36 +0100 Subject: [PATCH] [yabai,skhd] change config --- .config/skhd/skhdrc | 13 +++++++------ .config/yabai/yabairc | 12 +++++++++++- 2 files changed, 18 insertions(+), 7 deletions(-) diff --git a/.config/skhd/skhdrc b/.config/skhd/skhdrc index bc8b8ce..dd2e532 100644 --- a/.config/skhd/skhdrc +++ b/.config/skhd/skhdrc @@ -11,13 +11,14 @@ cmd - u : yabai --load-sa && yabai --restart # Assuming you have scripting addit cmd - h : yabai -m window --resize right:-20:0 cmd - l : yabai -m window --resize left:20:0 + # Focus workspaces 1 through 6 -cmd - 1 : index=$(yabai -m query --spaces --space | jq .display); yabai -m space 1 --display ${index}; yabai -m space --focus 1 -cmd - 2 : index=$(yabai -m query --spaces --space | jq .display); yabai -m space 2 --display ${index}; yabai -m space --focus 2 -cmd - 3 : index=$(yabai -m query --spaces --space | jq .display); yabai -m space 3 --display ${index}; yabai -m space --focus 3 -cmd - 4 : index=$(yabai -m query --spaces --space | jq .display); yabai -m space 4 --display ${index}; yabai -m space --focus 4 -cmd - 5 : index=$(yabai -m query --spaces --space | jq .display); yabai -m space 5 --display ${index}; yabai -m space --focus 5 -cmd - 6 : index=$(yabai -m query --spaces --space | jq .display); yabai -m space 6 --display ${index}; yabai -m space --focus 6 +cmd - 1 : index=$(yabai -m query --spaces --space | jq .display); yabai -m display --focus ${index}; yabai -m space --focus 1 +cmd - 2 : index=$(yabai -m query --spaces --space | jq .display); yabai -m display --focus ${index}; yabai -m space --focus 2 +cmd - 3 : index=$(yabai -m query --spaces --space | jq .display); yabai -m display --focus ${index}; yabai -m space --focus 3 +cmd - 4 : index=$(yabai -m query --spaces --space | jq .display); yabai -m display --focus ${index}; yabai -m space --focus 4 +cmd - 5 : index=$(yabai -m query --spaces --space | jq .display); yabai -m display --focus ${index}; yabai -m space --focus 5 +cmd - 6 : index=$(yabai -m query --spaces --space | jq .display); yabai -m display --focus ${index}; yabai -m space --focus 6 # Move window between monitor cmd + shift - e: yabai -m window --display next diff --git a/.config/yabai/yabairc b/.config/yabai/yabairc index f831524..7b2d8b7 100755 --- a/.config/yabai/yabairc +++ b/.config/yabai/yabairc @@ -1,3 +1,5 @@ +#!/bin/bash + yabai -m signal --add event=dock_did_restart action="sudo yabai --load-sa" sudo yabai --load-sa @@ -9,10 +11,18 @@ 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 +yabai -m rule --add app="^Firefox$" space=two # Add more rules based on your applications and workspace preferences + +yabai -m space 1 --label one +yabai -m space 2 --label two +yabai -m space 3 --label three +yabai -m space 4 --label four +yabai -m space 5 --label five +yabai -m space 6 --label six + #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'