aboutsummaryrefslogtreecommitdiff
path: root/macos.local/.flake/system/skhd.nix.org
diff options
context:
space:
mode:
Diffstat (limited to 'macos.local/.flake/system/skhd.nix.org')
-rw-r--r--[l---------]macos.local/.flake/system/skhd.nix.org98
1 files changed, 97 insertions, 1 deletions
diff --git a/macos.local/.flake/system/skhd.nix.org b/macos.local/.flake/system/skhd.nix.org
index 2e81cc0..086a750 120000..100644
--- a/macos.local/.flake/system/skhd.nix.org
+++ b/macos.local/.flake/system/skhd.nix.org
@@ -1 +1,97 @@
-../../../common/.flake/system/skhd.nix.org \ No newline at end of file
+#+title: SKHD Configuration
+
+I use =skhd= to configure keyboard bindings.
+#+begin_src nix
+ { config, pkgs, ... }:
+
+ {
+ services.skhd = {
+ enable = true;
+ skhdConfig = ''
+#+end_src
+
+Use =⌘-Enter= to open my terminal.
+#+begin_src text
+ cmd - return : /opt/homebrew/bin/alacritty
+#+end_src
+
+Close a window with =⌘-Shift-Q= to close a window.
+#+begin_src text
+ cmd + shift - q : yabai -m window --close
+#+end_src
+
+Launch an application with =⌘-D=.
+#+begin_src text
+ cmd - d : ~/.local/bin/launcher
+#+end_src
+
+Reload the configuration with =⌘-Shift-C=.
+#+begin_src text
+ cmd + shift - c : yabai --restart-service && skhd --restart-service
+#+end_src
+
+Move focus with =⌘-[HJKL]= to move left (H), down (J), up (K), or right (L).
+#+begin_src text
+ cmd - h : yabai -m window --focus west || yabai -m display --focus west
+ cmd - j : yabai -m window --focus south || yabai -m display --focus south
+ cmd - k : yabai -m window --focus north || yabai -m display --focus north
+ cmd - l : yabai -m window --focus east || yabai -m display --focus east
+#+end_src
+
+Move window with =⌘-Shift-[HJKL]= to move left (H), down (J), up (K), or right (L).
+#+begin_src text
+ shift + cmd - h : yabai -m window --warp west
+ shift + cmd - j : yabai -m window --warp south
+ shift + cmd - k : yabai -m window --warp north
+ shift + cmd - l : yabai -m window --warp east
+#+end_src
+
+Move to space =x= with =⌘-x=.
+#+begin_src text
+ cmd - 1 : yabai -m space --focus 1
+ cmd - 2 : yabai -m space --focus 2
+ cmd - 3 : yabai -m space --focus 3
+ cmd - 4 : yabai -m space --focus 4
+ cmd - 5 : yabai -m space --focus 5
+ cmd - 6 : yabai -m space --focus 6
+ cmd - 7 : yabai -m space --focus 7
+ cmd - 8 : yabai -m space --focus 8
+ cmd - 9 : yabai -m space --focus 9
+ cmd - 0 : yabai -m space --focus 10
+#+end_src
+
+Move application to space =x= with =⌘-=Shift-x=.
+#+begin_src text
+ cmd + shift - 1 : yabai -m window --space 1
+ cmd + shift - 2 : yabai -m window --space 2
+ cmd + shift - 3 : yabai -m window --space 3
+ cmd + shift - 4 : yabai -m window --space 4
+ cmd + shift - 5 : yabai -m window --space 5
+ cmd + shift - 6 : yabai -m window --space 6
+ cmd + shift - 7 : yabai -m window --space 7
+ cmd + shift - 8 : yabai -m window --space 8
+ cmd + shift - 9 : yabai -m window --space 9
+ cmd + shift - 0 : yabai -m window --space 10
+#+end_src
+
+Toggle fullscreen with =⌘-Shift-F=.
+#+begin_src text
+ cmd + shift - f : yabai -m window --toggle zoom-fullscreen
+#+end_src
+
+Toggle floating with =⌘-Shift-Space=.
+#+begin_src text
+ cmd + shift - space : yabai -m window --toggle float
+#+end_src
+
+Take a screenshot with =⌘-Shift-S=.
+#+begin_src text
+ cmd + shift - s : open /System/Applications/Utilities/Screenshot.app
+#+end_src
+
+Close the block.
+#+begin_src nix
+ '';
+ };
+ }
+#+end_src