Skip to content

Commit

Permalink
Merge pull request #2 from slipstream8125/main
Browse files Browse the repository at this point in the history
Moved keybindings to separate file in config and removed swkhdrc
  • Loading branch information
zstg authored Dec 22, 2024
2 parents 7a124d4 + 7cb2223 commit 54d8815
Show file tree
Hide file tree
Showing 5 changed files with 139 additions and 707 deletions.
134 changes: 2 additions & 132 deletions airootfs/etc/skel/.config/hypr/hyprland.conf
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ env = GDK_BACKEND,wayland,x11
# env = WLR_NO_HARDWARE_CURSORS, 1 # useful for VMs, bad on bare metal
# See https://wiki.hyprland.org/Configuring/Keywords/ for more

source = ~/.config/hypr/keybinds.conf
# exec-once = xhost +si:localuser:$USER # for podman+distrobox
exec-once = hypridle
exec-once = waybar
Expand All @@ -45,6 +46,7 @@ exec = hyprpaper
exec-once = ~/.config/hypr/scripts/eww-open-fancy
# exec-once = swaync # sway notification center -> really cool icons
exec-once = mako
exec-once = udiskie &
exec-once = wl-paste --type text --watch cliphist store
exec-once = wl-paste --type image --watch cliphist store
# exec-once = systemctl --user import-environment WAYLAND_DISPLAY
Expand Down Expand Up @@ -208,136 +210,4 @@ gestures {
# See https://wiki.hyprland.org/Configuring/Window-Rules/ for more


# See https://wiki.hyprland.org/Configuring/Keywords/ for more
$mainMod = SUPER
# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
bindl =, switch:[Lid Switch], exec, hyprlock
bind = $mainMod, Q, killactive
# bind = $mainMod SHIFT, B, exec, brave-nightly --profile-path="Default"
bind = $mainMod CTRL SHIFT, B, exec, google-chrome --guest
bind = $mainMod, B, exec, google-chrome
bind = $mainMod SHIFT, Q, exit
bindle = $mainMod SHIFT, R, exec, waybar
bind = $mainMod, C, exec, ~/.config/hypr/scripts/hyprconky
# bind = $mainMod SHIFT, E, exec, ~/.config/hypr/scripts/emacs-edit /home/stig/.config/hypr/hyprland.conf
bind = , Print, exec, ~/.config/hypr/scripts/screenshotty
bind = $mainMod SHIFT, S, exec, ~/.config/hypr/scripts/screenshotty
# bind = $mainMod, Return, exec, [workspace special;float;100 100 ^(kitty)$] kitty
bind = $mainMod, Return, exec, kitty
# bind = $mainMod SHIFT, Return, exec, [float; center; size 900 800] kitty
bind = $mainMod, KP_Enter, exec, kitty -e zsh
bind = $mainMod SHIFT, W, exec, ~/.config/hypr/scripts/restart-eww
# bindr = $mainMod, C, exec, killall conky || conky -c ~/.config/hypr/conky/stig_doom-one.conkyrc # conky-toggle keybind
bind = $mainMod, W, exec, ~/.config/hypr/scripts/eww-open-fancy
bind = $mainMod, S, exec, ~/.config/hypr/scripts/screenshotty
bind = $mainMod, X, exec, ~/.config/eww/scripts/power # archlinux-logout
bind = $mainMod, E, exec, pypr toggle files
# bind = $mainMod SHIFT, E, exec, ~/.config/hypr/scripts/open-tui ranger # kitty -e ranger
# bind = $mainMod, L, exec, ~/.config/hypr/scripts/lock.sh # --effect-blur 7x5
bind = $mainMod, L, exec, hyprlock
bind = $mainMod SHIFT, L, exit
bind = $mainMod, F, fullscreen
bind = $mainMod SHIFT, F, togglefloating
bind = $mainMod, V, exec, nwg-clipman
bind = $mainMod SHIFT, P, pseudo # dwindle
bind = $mainMod, J, togglesplit # dwindle
bind = $mainMod SHIFT, T, exec, ~/.config/hypr/scripts/hyprlayout

bindr = $mainMod, Escape, exec, hyprctl kill
# bindr = SUPER, SUPER_L, exec, killall rofi || rofi
bind = $mainMod, SPACE, exec, albert toggle # killall rofi || rofi
bind = $mainMod, Z, exec, emacsclient -nc
bind = $mainMod CTRL, Z, exec, ~/.config/hypr/scripts/restart-emacs
bind = $mainMod SHIFT, Z, exec, emacs --daemon
bind = $mainMod, G, togglegroup # turns on max layout -> note that the window in focus becomes the top of the group
bind = $mainMod, Y, changegroupactive # y switches windows in "max" layout
bind = $mainMod, TAB, togglespecialworkspace
bind = $mainMod, H, movetoworkspacesilent, special
# note that if you accidentally move a window to the special workspace you can always drag it out
# but the special workspace remains in focus till it's hidden

# Move focus with mainMod + arrow keys
bind = $mainMod, left, movefocus, l
bind = $mainMod, right, movefocus, r
bind = $mainMod, up, movefocus, u
bind = $mainMod, down, movefocus, d

# Move window with mainMod + shift arrow keys
bind = $mainMod SHIFT, left, movewindow, l
bind = $mainMod SHIFT, right, movewindow, r
bind = $mainMod SHIFT, up, movewindow, u
bind = $mainMod SHIFT, down, movewindow, d

# Switch workspaces with mainMod + [0-9]
bind = $mainMod, 1, workspace, 1
bind = $mainMod, 2, workspace, 2
bind = $mainMod, 3, workspace, 3
bind = $mainMod, 4, workspace, 4
bind = $mainMod, 5, workspace, 5
bind = $mainMod, 6, workspace, 6
bind = $mainMod, 7, workspace, 7
bind = $mainMod, 8, workspace, 8
bind = $mainMod, 9, workspace, 9
bind = $mainMod, 0, workspace, 10

# Move active window to a workspace with mainMod + SHIFT + [0-9]
bind = $mainMod SHIFT, 1, movetoworkspace, 1
bind = $mainMod SHIFT, 2, movetoworkspace, 2
bind = $mainMod SHIFT, 3, movetoworkspace, 3
bind = $mainMod SHIFT, 4, movetoworkspace, 4
bind = $mainMod SHIFT, 5, movetoworkspace, 5
bind = $mainMod SHIFT, 6, movetoworkspace, 6
bind = $mainMod SHIFT, 7, movetoworkspace, 7
bind = $mainMod SHIFT, 8, movetoworkspace, 8
bind = $mainMod SHIFT, 9, movetoworkspace, 9
bind = $mainMod SHIFT, 0, movetoworkspace, 10

# Move active window SILENTLY to a workspace with mainMod + CTRL + [0-9]
bind = $mainMod CTRL, 1, movetoworkspacesilent, 1
bind = $mainMod CTRL, 2, movetoworkspacesilent, 2
bind = $mainMod CTRL, 3, movetoworkspacesilent, 3
bind = $mainMod CTRL, 4, movetoworkspacesilent, 4
bind = $mainMod CTRL, 5, movetoworkspacesilent, 5
bind = $mainMod CTRL, 6, movetoworkspacesilent, 6
bind = $mainMod CTRL, 7, movetoworkspacesilent, 7
bind = $mainMod CTRL, 8, movetoworkspacesilent, 8
bind = $mainMod CTRL, 9, movetoworkspacesilent, 9
bind = $mainMod CTRL, 0, movetoworkspacesilent, 0

# Scroll through existing workspaces with mainMod + scroll
bind = $mainMod, mouse_down, workspace, e+1
bind = $mainMod, mouse_up, workspace, e-1

# Move/resize windows with mainMod + LMB/RMB and dragging
bindm = $mainMod, mouse:272, movewindow
bindm = $mainMod SHIFT, mouse:272, resizewindow
bindm = ALT, mouse:272, resizewindow
bindm = $mainMod, mouse:273, resizewindow

# Multimedia keys
# l -> do stuff even when locked
# e -> repeats when key is held
bindle=, XF86AudioRaiseVolume, exec, ~/.config/hypr/scripts/vol --up
bindle=, XF86AudioLowerVolume, exec, ~/.config/hypr/scripts/vol --down
bindle=, XF86MonBrightnessUp, exec, ~/.config/hypr/scripts/bri --up
bindle=, XF86MonBrightnessDown, exec, ~/.config/hypr/scripts/bri --down
# bindle=, XF86Search, exec, spotlight
bindl=, XF86AudioMute, exec, swayosd-client --output-volume mute-toggle # wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
bindl=, XF86AudioPlay, exec, playerctl play-pause
bindl=, XF86AudioNext, exec, playerctl next
bindl=, XF86AudioPrev, exec, playerctl previous

# Misc bindings
bind = CTRL, Escape, exec, kitty -e btop
bindr=, Caps_Lock, exec, swayosd-client --caps_lock
# Submaps

bind = SUPERCTRLSHIFT, escape, submap, passthrough
submap = passthrough
bind = SUPERCTRLSHIFT, escape, submap, reset
submap = reset

bind = Super , Alt_L, submap, passthrough
submap = passthrough
bind = Super , Alt_L, submap, reset
submap = reset
133 changes: 133 additions & 0 deletions airootfs/etc/skel/.config/hypr/keybinds.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
$mainMod = SUPER
# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
bindl =, switch:[Lid Switch], exec, hyprlock
bind = $mainMod, Q, killactive
# bind = $mainMod SHIFT, B, exec, brave-nightly --profile-path="Default"
bind = $mainMod CTRL SHIFT, B, exec, google-chrome --guest
bind = $mainMod, B, exec, google-chrome
bind = $mainMod SHIFT, Q, exit
bindle = $mainMod SHIFT, R, exec, waybar
bind = $mainMod, C, exec, ~/.config/hypr/scripts/hyprconky
# bind = $mainMod SHIFT, E, exec, ~/.config/hypr/scripts/emacs-edit /home/stig/.config/hypr/hyprland.conf
bind = , Print, exec, ~/.config/hypr/scripts/screenshotty
bind = $mainMod SHIFT, S, exec, ~/.config/hypr/scripts/screenshotty
# bind = $mainMod, Return, exec, [workspace special;float;100 100 ^(kitty)$] kitty
bind = $mainMod, Return, exec, kitty
# bind = $mainMod SHIFT, Return, exec, [float; center; size 900 800] kitty
bind = $mainMod, KP_Enter, exec, kitty -e zsh
bind = $mainMod SHIFT, W, exec, ~/.config/hypr/scripts/restart-eww
# bindr = $mainMod, C, exec, killall conky || conky -c ~/.config/hypr/conky/stig_doom-one.conkyrc # conky-toggle keybind
bind = $mainMod, W, exec, ~/.config/hypr/scripts/eww-open-fancy
bind = $mainMod, S, exec, ~/.config/hypr/scripts/screenshotty
bind = $mainMod, X, exec, ~/.config/eww/scripts/power # archlinux-logout
bind = $mainMod, E, exec, pypr toggle files
# bind = $mainMod SHIFT, E, exec, ~/.config/hypr/scripts/open-tui ranger # kitty -e ranger
# bind = $mainMod, L, exec, ~/.config/hypr/scripts/lock.sh # --effect-blur 7x5
bind = $mainMod, L, exec, hyprlock
bind = $mainMod SHIFT, L, exit
bind = $mainMod, F, fullscreen
bind = $mainMod SHIFT, F, togglefloating
bind = $mainMod, V, exec, nwg-clipman
bind = $mainMod SHIFT, P, pseudo # dwindle
bind = $mainMod, J, togglesplit # dwindle
bind = $mainMod SHIFT, T, exec, ~/.config/hypr/scripts/hyprlayout

bindr = $mainMod, Escape, exec, hyprctl kill
# bindr = SUPER, SUPER_L, exec, killall rofi || rofi
bind = $mainMod, SPACE, exec, albert toggle # killall rofi || rofi
bind = $mainMod, Z, exec, emacsclient -nc
bind = $mainMod CTRL, Z, exec, ~/.config/hypr/scripts/restart-emacs
bind = $mainMod SHIFT, Z, exec, emacs --daemon
bind = $mainMod, G, togglegroup # turns on max layout -> note that the window in focus becomes the top of the group
bind = $mainMod, Y, changegroupactive # y switches windows in "max" layout
bind = $mainMod, TAB, togglespecialworkspace
bind = $mainMod, H, movetoworkspacesilent, special
# note that if you accidentally move a window to the special workspace you can always drag it out
# but the special workspace remains in focus till it's hidden

# Move focus with mainMod + arrow keys
bind = $mainMod, left, movefocus, l
bind = $mainMod, right, movefocus, r
bind = $mainMod, up, movefocus, u
bind = $mainMod, down, movefocus, d

# Move window with mainMod + shift arrow keys
bind = $mainMod SHIFT, left, movewindow, l
bind = $mainMod SHIFT, right, movewindow, r
bind = $mainMod SHIFT, up, movewindow, u
bind = $mainMod SHIFT, down, movewindow, d

# Switch workspaces with mainMod + [0-9]
bind = $mainMod, 1, workspace, 1
bind = $mainMod, 2, workspace, 2
bind = $mainMod, 3, workspace, 3
bind = $mainMod, 4, workspace, 4
bind = $mainMod, 5, workspace, 5
bind = $mainMod, 6, workspace, 6
bind = $mainMod, 7, workspace, 7
bind = $mainMod, 8, workspace, 8
bind = $mainMod, 9, workspace, 9
bind = $mainMod, 0, workspace, 10

# Move active window to a workspace with mainMod + SHIFT + [0-9]
bind = $mainMod SHIFT, 1, movetoworkspace, 1
bind = $mainMod SHIFT, 2, movetoworkspace, 2
bind = $mainMod SHIFT, 3, movetoworkspace, 3
bind = $mainMod SHIFT, 4, movetoworkspace, 4
bind = $mainMod SHIFT, 5, movetoworkspace, 5
bind = $mainMod SHIFT, 6, movetoworkspace, 6
bind = $mainMod SHIFT, 7, movetoworkspace, 7
bind = $mainMod SHIFT, 8, movetoworkspace, 8
bind = $mainMod SHIFT, 9, movetoworkspace, 9
bind = $mainMod SHIFT, 0, movetoworkspace, 10

# Move active window SILENTLY to a workspace with mainMod + CTRL + [0-9]
bind = $mainMod CTRL, 1, movetoworkspacesilent, 1
bind = $mainMod CTRL, 2, movetoworkspacesilent, 2
bind = $mainMod CTRL, 3, movetoworkspacesilent, 3
bind = $mainMod CTRL, 4, movetoworkspacesilent, 4
bind = $mainMod CTRL, 5, movetoworkspacesilent, 5
bind = $mainMod CTRL, 6, movetoworkspacesilent, 6
bind = $mainMod CTRL, 7, movetoworkspacesilent, 7
bind = $mainMod CTRL, 8, movetoworkspacesilent, 8
bind = $mainMod CTRL, 9, movetoworkspacesilent, 9
bind = $mainMod CTRL, 0, movetoworkspacesilent, 0

# Scroll through existing workspaces with mainMod + scroll
bind = $mainMod, mouse_down, workspace, e+1
bind = $mainMod, mouse_up, workspace, e-1

# Move/resize windows with mainMod + LMB/RMB and dragging
bindm = $mainMod, mouse:272, movewindow
bindm = $mainMod SHIFT, mouse:272, resizewindow
bindm = ALT, mouse:272, resizewindow
bindm = $mainMod, mouse:273, resizewindow

# Multimedia keys
# l -> do stuff even when locked
# e -> repeats when key is held
bindle=, XF86AudioRaiseVolume, exec, ~/.config/hypr/scripts/vol --up
bindle=, XF86AudioLowerVolume, exec, ~/.config/hypr/scripts/vol --down
bindle=, XF86MonBrightnessUp, exec, ~/.config/hypr/scripts/bri --up
bindle=, XF86MonBrightnessDown, exec, ~/.config/hypr/scripts/bri --down
# bindle=, XF86Search, exec, spotlight
bindl=, XF86AudioMute, exec, swayosd-client --output-volume mute-toggle # wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
bindl=, XF86AudioPlay, exec, playerctl play-pause
bindl=, XF86AudioNext, exec, playerctl next
bindl=, XF86AudioPrev, exec, playerctl previous

# Misc bindings
bind = CTRL, Escape, exec, kitty -e btop
bindr=, Caps_Lock, exec, swayosd-client --caps_lock
# Submaps

bind = SUPERCTRLSHIFT, escape, submap, passthrough
submap = passthrough
bind = SUPERCTRLSHIFT, escape, submap, reset
submap = reset

bind = Super , Alt_L, submap, passthrough
submap = passthrough
bind = Super , Alt_L, submap, reset
submap = reset
Loading

0 comments on commit 54d8815

Please sign in to comment.