169 lines
5.5 KiB
Plaintext
169 lines
5.5 KiB
Plaintext
##############################################
|
|
# These files are just for reference.
|
|
# If you want to change anything, edit the source files in:
|
|
# ~/system-master/assets/conf
|
|
#
|
|
# Temporarily(!) testing can by editing this file, edit the file and reloading hyprshell
|
|
# After that, run:
|
|
# cd ~/system-master && emacs README.org --batch -f org-babel-tangle && git add . && git commit -m "Adjusted conf files" && sudo nixos-rebuild switch --flake .#<yourhost>
|
|
#
|
|
# If everything still works, you can use the same command but:
|
|
# - keep "switch"
|
|
# - and add a reboot:
|
|
#
|
|
# cd ~/system-master && sudo nixos-rebuild switch --flake .#<yourhost> && systemctl reboot
|
|
#
|
|
# Make sure the lines starting with: cd ~/system-master
|
|
# are written as ONE single line.
|
|
###############################################
|
|
|
|
|
|
|
|
# Keybindings #
|
|
###############
|
|
|
|
$mainMod = SUPER
|
|
|
|
# use walker to show exec menu
|
|
bind = $mainMod, Space , exec, walker
|
|
bind = $mainMod, P, pseudo
|
|
bind = $mainMod, T, togglesplit
|
|
|
|
# grimblast
|
|
bind = $mainMod SHIFT, p, exec, grimblast -n -f copysave active
|
|
bind = $mainMod SHIFT, a, exec, grimblast -n -f copysave area
|
|
bind = $mainMod ALT, p, exec, grimblast -n -f copysave output
|
|
bind = $mainMod CTRL, p, exec, grimblast -n -f copysave screen
|
|
|
|
# Terminal / launcher / kill / reload
|
|
bind = $mainMod, E, exec, thunar
|
|
bind = $mainMod, RETURN, exec, kitty
|
|
bind = $mainMod, D, exec, wofi --show drun
|
|
bind = $mainMod, Q, killactive,
|
|
bind = $mainMod SHIFT, Q, exit,
|
|
bind = $mainMod SHIFT, R, exec, hyprctl reload
|
|
|
|
# Default browser
|
|
bind = $mainMod, W, exec, flatpak run app.zen_browser.zen
|
|
|
|
# Switch windows
|
|
bind = $mainMod, TAB, hyprexpo:expo, toggle
|
|
bind = ALT, TAB, cyclenext
|
|
bind = ALT SHIFT, TAB, cyclenext , prev
|
|
|
|
# Focus movement
|
|
bind = $mainMod, H, movefocus, l
|
|
bind = $mainMod, L, movefocus, r
|
|
bind = $mainMod, K, movefocus, u
|
|
bind = $mainMod, J, movefocus, d
|
|
bind = $mainMod, left, movefocus, l
|
|
bind = $mainMod, right, movefocus, r
|
|
bind = $mainMod, up, movefocus, u
|
|
bind = $mainMod, down, movefocus, d
|
|
|
|
# # Move windows
|
|
bind = $mainMod SHIFT, H, movewindow, l
|
|
bind = $mainMod SHIFT, L, movewindow, r
|
|
bind = $mainMod SHIFT, K, movewindow, u
|
|
bind = $mainMod SHIFT, J, movewindow, d
|
|
bind = $mainMod SHIFT, left, movewindow, l
|
|
bind = $mainMod SHIFT, right, movewindow, r
|
|
bind = $mainMod SHIFT, up, movewindow, u
|
|
bind = $mainMod SHIFT, down, movewindow, d
|
|
|
|
# Resize windows
|
|
bind = $mainMod CTRL, H, resizeactive, -30 0
|
|
bind = $mainMod CTRL, L, resizeactive, 30 0
|
|
bind = $mainMod CTRL, K, resizeactive, 0 -30
|
|
bind = $mainMod CTRL, J, resizeactive, 0 30
|
|
|
|
# Floating / fullscreen
|
|
bind = $mainMod, V, togglefloating,
|
|
bind = $mainMod, F, fullscreen, 0
|
|
bind = $mainMod SHIFT, F, fullscreen, 1
|
|
|
|
# Workspaces
|
|
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
|
|
|
|
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
|
|
|
|
# Cycle workspaces
|
|
bind = $mainMod, mouse_down, workspace, e+1
|
|
bind = $mainMod, mouse_up, workspace, e-1
|
|
|
|
# Mouse drag
|
|
bindm = $mainMod, mouse:272, movewindow
|
|
bindm = $mainMod, mouse:273, resizewindow
|
|
|
|
#########################
|
|
# Screenshots
|
|
#########################
|
|
bind = $mainMod SHIFT, s, exec, grim -g "$(slurp)" - | wl-copy
|
|
bind = , XF86Screenshot, exec, grim - | wl-copy
|
|
|
|
#########################
|
|
# Audio (pamixer)
|
|
#########################
|
|
bind = , XF86AudioRaiseVolume, exec, pamixer -i 5
|
|
bind = , XF86AudioLowerVolume, exec, pamixer -d 5
|
|
bind = , XF86AudioMute, exec, pamixer -t
|
|
bind = , XF86AudioMicMute, exec, pamixer --default-source -t
|
|
|
|
#########################
|
|
# Media (playerctl)
|
|
#########################
|
|
bind = , XF86AudioPlay, exec, playerctl play-pause
|
|
bind = , XF86AudioPause, exec, playerctl pause
|
|
bind = , XF86AudioNext, exec, playerctl next
|
|
bind = , XF86AudioPrev, exec, playerctl previous
|
|
bind = , XF86AudioStop, exec, playerctl stop
|
|
|
|
#########################
|
|
# Brightness (brightnessctl)
|
|
#########################
|
|
bind = , XF86MonBrightnessUp, exec, brightnessctl set +10%
|
|
bind = , XF86MonBrightnessDown, exec, brightnessctl set 10%-
|
|
bind = , XF86KbdBrightnessUp, exec, brightnessctl -d '*kbd_backlight*' set +10%
|
|
bind = , XF86KbdBrightnessDown, exec, brightnessctl -d '*kbd_backlight*' set 10%-
|
|
|
|
#########################
|
|
# Power / session
|
|
#########################
|
|
bind = , XF86Sleep, exec, systemctl suspend
|
|
bind = , XF86PowerOff, exec, systemctl poweroff
|
|
bind = , XF86WakeUp, exec, systemctl suspend
|
|
bind = $mainMod, L, exec, loginctl lock-session
|
|
|
|
#########################
|
|
# Laptop lid settings
|
|
#########################
|
|
bindl = , switch:on:Lid Switch, exec, ~/.config/hypr/scripts/lid-action.sh
|
|
bindl = , switch:off:Lid Switch, exec, ~/.config/hypr/scripts/lid-restore.sh
|
|
|
|
#########################
|
|
# Start apps
|
|
#########################
|
|
bind = CTRL ALT, B, exec, flatpak run eu.betterbird.Betterbird
|
|
bind = CTRL ALT, S, exec, spotify
|
|
bind = CTRL ALT, z, exec, run zen
|
|
bind = CTRL ALT, k, exec, kate
|
|
bind = $mainMod, w, exec, xdg-open https://nextcloud.data-pro.nu
|