Skip to content

Commit 2264557

Browse files
committed
v1.0.0 release
1 parent c3a0e6e commit 2264557

File tree

7 files changed

+248
-151
lines changed

7 files changed

+248
-151
lines changed

.skhdrc

Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
# ------------------Windows------------------
2+
3+
# change window focus within space
4+
alt - j : yabai -m window --focus south
5+
alt - k : yabai -m window --focus north
6+
alt - h : yabai -m window --focus west
7+
alt - l : yabai -m window --focus east
8+
9+
# swap windows
10+
shift + alt - j : yabai -m window --swap south
11+
shift + alt - k : yabai -m window --swap north
12+
shift + alt - h : yabai -m window --swap west
13+
shift + alt - l : yabai -m window --swap east
14+
15+
# move window and split
16+
ctrl + alt - j : yabai -m window --warp south
17+
ctrl + alt - k : yabai -m window --warp north
18+
ctrl + alt - h : yabai -m window --warp west
19+
ctrl + alt - l : yabai -m window --warp east
20+
21+
# move window to prev and next space
22+
shift + alt - p : yabai -m window --space prev;
23+
shift + alt - n : yabai -m window --space next;
24+
25+
# maximize a window
26+
shift + alt - m : yabai -m window --toggle zoom-fullscreen
27+
shift + alt - u : yabai -m window --toggle zoom-parent
28+
29+
# resize terminal
30+
ctrl + alt - t : yabai -m window --toggle float && yabai -m window --resize abs:1744:1097
31+
32+
33+
34+
# ------------------Space layouts------------------
35+
36+
# toggle layouts
37+
alt - e : yabai -m space --layout bsp
38+
alt - d : yabai -m space --layout stack
39+
alt - s : yabai -m space --layout float
40+
41+
# rotate layout clockwise
42+
shift + alt - r : yabai -m space --rotate 270
43+
44+
# flip along y-axis
45+
shift + alt - y : yabai -m space --mirror y-axis
46+
47+
# flip along x-axis
48+
shift + alt - x : yabai -m space --mirror x-axis
49+
50+
# balance out tree of windows (resize to occupy same area)
51+
shift + alt - e : yabai -m space --balance
52+
53+
54+
55+
# ------------------Sizes------------------
56+
57+
# increase window size
58+
alt + shift - w : yabai -m window --resize top:0:-5
59+
alt + shift - a : yabai -m window --resize left:-5:0
60+
alt + shift - s : yabai -m window --resize bottom:0:5
61+
alt + shift - d : yabai -m window --resize right:5:0
62+
63+
# decrease window size
64+
cmd + shift - w : yabai -m window --resize top:0:5
65+
cmd + shift - a : yabai -m window --resize left:5:0
66+
cmd + shift - s : yabai -m window --resize bottom:0:-5
67+
cmd + shift - d : yabai -m window --resize right:-5:0
68+
69+
70+
71+
# ------------------Spaces------------------
72+
73+
# move window to space ...
74+
shift + alt - 1 : yabai -m window --space 1;
75+
shift + alt - 2 : yabai -m window --space 2;
76+
shift + alt - 3 : yabai -m window --space 3;
77+
shift + alt - 4 : yabai -m window --space 4;
78+
shift + alt - 5 : yabai -m window --space 5;
79+
shift + alt - 6 : yabai -m window --space 6;
80+
shift + alt - 7 : yabai -m window --space 7;
81+
82+
# focus on space ...
83+
ctrl + alt - 1 : yabai -m space --focus 1;
84+
ctrl + alt - 2 : yabai -m space --focus 2;
85+
ctrl + alt - 3 : yabai -m space --focus 3;
86+
ctrl + alt - 4 : yabai -m space --focus 4;
87+
ctrl + alt - 5 : yabai -m space --focus 5;
88+
ctrl + alt - 6 : yabai -m space --focus 6;
89+
ctrl + alt - 7 : yabai -m space --focus 7;
90+
91+
# Create space on the active display
92+
ctrl + alt - return : yabai -m space --create
93+
94+
# Delete focused space and focus first space on display
95+
ctrl + alt - backspace : yabai -m space --destroy
96+
97+
# Move space left
98+
ctrl + shift + alt - h : yabai -m space --move prev
99+
100+
# Move space right
101+
ctrl + shift + alt - l : yabai -m space --move next
102+
103+
104+
105+
# ------------------Services------------------
106+
107+
# stop/start/restart yabai
108+
ctrl + alt - q : yabai --stop-service
109+
ctrl + alt - s : yabai --start-service
110+
ctrl + alt - r : yabai --restart-service
111+

.yabairc

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
yabai -m signal --add event=dock_did_restart action="sudo yabai --load-sa"
2+
sudo yabai --load-sa
3+
4+
# new window spawns to the right if vertical split, or bottom if horizontal split
5+
yabai -m config window_placement second_child
6+
7+
# Set all padding and gaps
8+
yabai -m config top_padding 10
9+
yabai -m config bottom_padding 10
10+
yabai -m config left_padding 10
11+
yabai -m config right_padding 10
12+
yabai -m config window_gap 10
13+
14+
# Auto balance split ratio
15+
yabai -m config auto_balance off
16+
17+
# set mouse interaction modifier key
18+
yabai -m config mouse_modifier fn
19+
20+
# set modifier + left-click drag to move window
21+
yabai -m config mouse_action1 move
22+
23+
# set modifier + right-click drag to resize window
24+
yabai -m config mouse_action2 resize
25+
26+
# modify window shadows (default: on, options: on, off, float)
27+
# example: show shadows only for floating windows
28+
yabai -m config window_shadow off

btop/btop.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ update_ms = 500
5454

5555
#* Processes sorting, "pid" "program" "arguments" "threads" "user" "memory" "cpu lazy" "cpu direct",
5656
#* "cpu lazy" sorts top process over time (easier to follow), "cpu direct" updates top process directly.
57-
proc_sorting = "cpu direct"
57+
proc_sorting = "cpu lazy"
5858

5959
#* Reverse sorting order, True or False.
6060
proc_reversed = False
@@ -209,4 +209,4 @@ selected_battery = "Auto"
209209

210210
#* Set loglevel for "~/.config/btop/btop.log" levels are: "ERROR" "WARNING" "INFO" "DEBUG".
211211
#* The level set includes all lower levels, i.e. "DEBUG" will show all logging info.
212-
log_level = "WARNING"
212+
log_level = "WARNING"

starship/oldstarship.toml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Get editor completions based on the config schema
2+
"$schema" = 'https://starship.rs/config-schema.json'
3+
4+
format = """
5+
$directory\
6+
$git_branch\
7+
$git_state\
8+
$git_status\
9+
$cmd_duration\
10+
$line_break\
11+
$character"""
12+
13+
add_newline = false
14+
15+
[directory]
16+
style = "cyan"
17+
18+
[character]
19+
success_symbol = "[](yellow)"
20+
error_symbol = "[](yellow)"
21+
22+
[git_branch]
23+
format = "[$branch]($style)"
24+
style = "green"
25+
26+
[git_status]
27+
format = "[[(*$conflicted$untracked$modified$staged$renamed$deleted)](218) ($ahead_behind$stashed)]($style)"
28+
style = "cyan"
29+
conflicted = ""
30+
untracked = ""
31+
modified = ""
32+
staged = ""
33+
renamed = ""
34+
deleted = ""
35+
stashed = ""
36+
37+
[git_state]
38+
format = '\([$state($progress_current/$progress_total)]($style)\) '
39+
style = "green"
40+
41+
[cmd_duration]
42+
format = "[$duration]($style) "
43+
style = "purple"

starship/starship.toml

Lines changed: 22 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,30 @@
1-
# Get editor completions based on the config schema
21
"$schema" = 'https://starship.rs/config-schema.json'
32

4-
format = """
5-
$directory\
6-
$git_branch\
7-
$git_state\
8-
$git_status\
9-
$cmd_duration\
10-
$line_break\
11-
$character"""
3+
palette = "colors"
124

13-
add_newline = false
5+
add_newline = false # disable multiline prompt
146

15-
[directory]
16-
style = "cyan"
17-
18-
[character]
19-
success_symbol = "[](yellow)"
20-
error_symbol = "[](yellow)"
7+
format = '''
8+
[  ](fg:dir_fg_icon bg:dir_bg)$directory
9+
'''
2110

22-
[git_branch]
23-
format = "[$branch]($style)"
24-
style = "green"
11+
right_format = '''
12+
$git_branch
13+
'''
2514

26-
[git_status]
27-
format = "[[(*$conflicted$untracked$modified$staged$renamed$deleted)](218) ($ahead_behind$stashed)]($style)"
28-
style = "cyan"
29-
conflicted = ""
30-
untracked = ""
31-
modified = ""
32-
staged = ""
33-
renamed = ""
34-
deleted = ""
35-
stashed = ""
15+
[palettes.colors]
16+
dir_fg_icon = "#8e8aa9"
17+
dir_fg = "#a38c8c"
18+
dir_bg = "#171717"
19+
dir_2 = "#151515"
20+
dir_3 = "#131313"
21+
dir_4 = "#111111"
3622

37-
[git_state]
38-
format = '\([$state($progress_current/$progress_total)]($style)\) '
39-
style = "green"
23+
[directory]
24+
truncation_length = 2
25+
style = "fg:dir_fg bg:dir_bg"
26+
format = "[$path]($style)[ ](bg:dir_2)[ ](bg:dir_3)[ ](bg:dir_4)"
4027

41-
[cmd_duration]
42-
format = "[$duration]($style) "
43-
style = "purple"
28+
[git_branch]
29+
style = "fg:dir_fg bg:dir_bg"
30+
format = "[ ](bg:dir_4)[ ](bg:dir_3)[ ](bg:dir_2)[ $branch]($style)[  ](fg:dir_fg_icon bg:dir_bg)"

0 commit comments

Comments
 (0)