Skip to content

Commit

Permalink
improved macos config, fish bind cmd+shift+left/right to home/end
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikBjare committed May 3, 2024
1 parent 3ac3b0d commit e2b6bbc
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 8 deletions.
12 changes: 7 additions & 5 deletions home/.config/fish/config.fish
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
# Set the default editor
set -x EDITOR nvim

# Bind virtual Home and End keys with Cmd+Shift+Left and Cmd+Shift+Right
bind \e\[1\;4D beginning-of-line
bind \e\[1\;4C end-of-line

# PATH setup
begin
# TODO: Check if already in PATH?
Expand Down Expand Up @@ -118,12 +122,10 @@ begin
end
end

#source /opt/anaconda/etc/fish/conf.d/conda.fish

set -x EDITOR nvim

# Set FREESURFER_HOME for easier surfin'
set FREESURFER_HOME /opt/freesurfer
if test -d /opt/freesurfer
set FREESURFER_HOME /opt/freesurfer
end

# I don't remember the exact purpose of this...
begin
Expand Down
3 changes: 3 additions & 0 deletions home/.config/skhd/skhdrc
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ cmd - 4 : open "/Applications/Roam Research.app"
cmd - 5 : open /Applications/Spotify.app
cmd - 6 : open /Applications/Discord.app

# Open terminal on cmd + enter
cmd - return : /Applications/Alacritty.app/Contents/MacOS/alacritty

# .blacklist [
# "kitty"
# "terminal"
Expand Down
15 changes: 12 additions & 3 deletions home/.config/yabai/yabairc
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ yabai -m config layout bsp
yabai -m config window_placement second_child

# Move apps to specific spaces
# If ^ is present as in `space=^1`, follow focus.
# Note: you can show all spaces with `yabai -m query --spaces`
# main terminal
yabai -m rule --add app="^Alacritty$" space=^1
Expand All @@ -37,7 +38,15 @@ yabai -m rule --add app="^Standard Notes$" space=^4
yabai -m rule --add app="^Roam Research$" space=^4
yabai -m rule --add app="^Limitless$" space=^4
# music
yabai -m rule --add app="^Music$" space=5
yabai -m rule --add app="^Spotify$" space=5
yabai -m rule --add app="^Music$" space=^5
yabai -m rule --add app="^Spotify$" space=^5
# chat
yabai -m rule --add app="^Discord$" space=6
yabai -m rule --add app="^Discord$" space=^6
# video
yabai -m rule --add app="^VLC$" space=^7
# games
yabai -m rule --add app="^Steam$" space=^8
# space 9 left for misc
# system
yabai -m rule --add app="^System Preferences$" space=^10
yabai -m rule --add app="^Activity Monitor$" space=^10

0 comments on commit e2b6bbc

Please sign in to comment.