0
0
Joe 1 год назад
Родитель
Сommit
4e2e054c04
4 измененных файлов с 31 добавлено и 0 удалено
  1. 1 0
      .config/.gitignore
  2. 5 0
      .config/skhd/.gitignore
  3. 20 0
      .config/skhd/skhdrc
  4. 5 0
      .github/README.md

+ 1 - 0
.config/.gitignore

@@ -9,6 +9,7 @@
 !lazydocker/
 !lazygit/
 !prettier/
+!skhd/
 !tmux/
 !yabai/
 !zsh/

+ 5 - 0
.config/skhd/.gitignore

@@ -0,0 +1,5 @@
+# ignore everything...
+*
+!.gitignore
+# ...except for these:
+!skhdrc

+ 20 - 0
.config/skhd/skhdrc

@@ -0,0 +1,20 @@
+cmd - n : \
+	if [ "$(yabai -m query --spaces --space | jq -r '.type')" = "stack" ]; \
+		then (yabai -m window --focus stack.next || yabai -m window --focus stack.first); \
+	else \
+		yabai -m window --focus next || yabai -m window --focus first; \
+	fi
+
+cmd + shift - n : /opt/homebrew/bin/yabai --restart-service && /bin/zsh $XDG_CONFIG_HOME/yabai/yabairc
+cmd + shift - d: /bin/zsh $HOME/.scripts/lightmode.zsh toggle
+
+cmd - 1 : /bin/zsh $HOME/.scripts/open_application.zsh terminal
+cmd - 2 : /bin/zsh $HOME/.scripts/open_application.zsh browser
+cmd - 3 : /bin/zsh $HOME/.scripts/open_application.zsh finder
+cmd - 4 : /bin/zsh $HOME/.scripts/open_application.zsh communications
+cmd - 5 : /bin/zsh $HOME/.scripts/open_application.zsh music
+cmd - 6 : /bin/zsh $HOME/.scripts/open_application.zsh notetaking
+cmd - 7 : /bin/zsh $HOME/.scripts/open_application.zsh videocall
+cmd - 8 : /bin/zsh $HOME/.scripts/open_application.zsh
+cmd - 9 : /bin/zsh $HOME/.scripts/open_application.zsh
+cmd - 0 : /bin/zsh $HOME/.scripts/open_application.zsh

+ 5 - 0
.github/README.md

@@ -59,6 +59,11 @@ Configuration for [Prettier](http://prettier.io), an opinionated code formatter.
 
 Standalone shell scripts to be called by other programs.
 
+### [skhd (`~/.config/skhd/`)](./.config/skhd/)
+
+Configuration for [skdh](https://github.com/koekeishiya/skhd), a simple hotkey
+daemon for macOS.
+
 ### [tmux (`~/.config/tmux/`)](./.config/tmux/)
 
 Configuration for [tmux](https://github.com/tmux/tmux), a terminal multiplexer.