-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Carlo Gravador
committed
Dec 17, 2023
1 parent
2c91e62
commit cc2a13c
Showing
11 changed files
with
170 additions
and
147 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
[core] | ||
editor = vim | ||
[difftool] | ||
prompt = true | ||
[diff] | ||
tool = nvimdiff | ||
[difftool "nvimdiff"] | ||
cmd = "vim -d \"$LOCAL\" \"$REMOTE\"" | ||
[user] | ||
name = Carlo Gravador | ||
email = [email protected] | ||
[pager] | ||
branch = false | ||
[merge] | ||
tool = vimdiff | ||
[mergetool] | ||
keepBackup = false | ||
|
||
[mergetool "vimdiff"] | ||
cmd = vim -d $LOCAL $REMOTE $MERGED -c '$wincmd w' -c 'wincmd J' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "bat/themes/bat_dracula_patched"] | ||
path = bat/themes/bat_dracula_patched | ||
url = [email protected]:carlogravador/sublime.git |
Submodule bat_dracula_patched
added at
f8129a
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# Changing Window focus within space | ||
alt - j : yabai -m window --focus south | ||
alt - k : yabai -m window --focus north | ||
alt - h : yabai -m window --focus west | ||
alt - l : yabai -m window --focus east | ||
|
||
# Change focus between external displays | ||
alt - u : yabai -m display --focus north | ||
alt - d : yabai -m display --focus south | ||
|
||
# Modifying the layout | ||
# rotate clockwise | ||
shift + alt - r : yabai -m space --rotate 270 | ||
# flip along y axis | ||
shift + alt - y : yabai -m space --mirror y-axis | ||
# flip along x axis | ||
shift + alt - x : yabai -m space --mirror x-axis | ||
# toggle window float | ||
shift + alt - t : yabai -m window --toggle float --grid 4:4:1:1:2:2 | ||
# Toggle split orientation | ||
shift + alt - space : yabai -m window --toggle split | ||
|
||
# Modifying window size | ||
# Maximize window | ||
# shift + alt - m : yabai -m window --toggle zoom-fullscreen | ||
shift + alt - m : ~/.config/skhd/yabai_maxmize_window.sh | ||
shift + alt - e : yabai -m space --balance | ||
|
||
# Moving windows around | ||
shift + alt - j : yabai -m window --swap south | ||
shift + alt - k : yabai -m window --swap north | ||
shift + alt - h : yabai -m window --swap west | ||
shift + alt - l : yabai -m window --swap east | ||
|
||
# Moving windows and split | ||
shift + alt - j : yabai -m window --swap south | ||
shift + alt - k : yabai -m window --swap north | ||
shift + alt - h : yabai -m window --swap west | ||
shift + alt - l : yabai -m window --swap east | ||
|
||
ctrl + alt - j : yabai -m window --warp south | ||
ctrl + alt - k : yabai -m window --warp north | ||
ctrl + alt - h : yabai -m window --warp west | ||
ctrl + alt - l : yabai -m window --warp east |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/usr/bin/env sh | ||
|
||
# Get the window information in JSON format | ||
window_info=$(yabai -m query --windows --window) | ||
|
||
# Check if the currently focused window is floating | ||
is_floating=$(echo "$window_info" | jq '.["is-floating"]') | ||
echo "${is_floating}" | ||
|
||
if [ "${is_floating}" = "true" ]; then | ||
# If the window is not maximized, maximize it | ||
yabai -m window --grid 1:1:0:0:1:1 | ||
|
||
else | ||
yabai -m window --toggle zoom-fullscreen | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# bsp, stack, float | ||
yabai -m config layout bsp | ||
|
||
yabai -m config window_placement second_child | ||
|
||
# padding | ||
yabai -m config top_padding 12 | ||
yabai -m config bottom_padding 12 | ||
yabai -m config left_padding 12 | ||
yabai -m config right_padding 12 | ||
yabai -m config window_gap 12 | ||
|
||
# mouse settings | ||
yabai -m config mouse_follows_focus on | ||
|
||
yabai -m config mouse_modifier alt | ||
# left click + drag | ||
yabai -m config mouse_action1 move | ||
# right click + drag | ||
yabai -m config mouse_action2 resize | ||
|
||
yabai -m mouse_drop_action swap | ||
|
||
# Disable specific apps | ||
yabai -m rule --add app="^System Settings$" manage=off | ||
yabai -m rule --add app="^Calculator$" manage=off | ||
yabai -m rule --add app="^Karabiner-Elements$" manage=off |