feat: Add initial hyprland config

This commit is contained in:
2025-04-01 17:21:04 +11:00
parent 855f6b8522
commit 98984bfc7f
27 changed files with 1295 additions and 11 deletions

View File

@@ -17,17 +17,16 @@ monitor=,preferred,auto,1
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
# Execute your favorite apps at launch
exec-once = /usr/share/libpam-kwallet-common/pam_kwallet_init & systemctl --user start xdg-desktop-portal-hyprland & /usr/lib/x86_64-linux-gnu/libexec/kdeconnectd & waybar
#& hyprpaper
# Source a file (multi-file configs)
# source = ~/.config/hypr/myColors.conf
source = ~/.config/hypr/start-exec.conf
source = ~/.config/hypr/windowrules.conf
source = ~/.config/hypr/before-exit.conf
env = HYPRSHOT_DIR,/home/$USER/Pictures/Screenshots
# Set programs that you use
$terminal = alacritty
$fileManager = dolphin
$menu = wofi --show drun
$menu = rofi -show drun
# wofi --show drun
# Some default env vars.
env = XCURSOR_SIZE,24
@@ -146,11 +145,16 @@ $mainMod = SUPER
bind = CTRL ALT, T, exec, $terminal
bind = $mainMod, Q, killactive,
bind = $mainMod, E, exec, $fileManager
bind = $mainMod, V, togglefloating,
bind = $mainMod, F, togglefloating,
bind = $mainMod, space, exec, $menu
bind = CTRL ALT, Delete, exit
bind = $mainMod, L, exec, hyprlock
bind = $mainMod, P, pseudo, # dwindle
bind = $mainMod, V, exec, [float] alacritty --class clipse -e /home/nathan/.local/bin/clipse
# bind = $mainMod, P, pseudo, # dwindle
bind = $mainMod, J, togglesplit, # dwindle
# Move focus with mainMod + arrow keys
@@ -185,7 +189,12 @@ bind = $mainMod SHIFT, 0, movetoworkspace, 10
# Example special workspace (scratchpad)
bind = $mainMod, S, togglespecialworkspace, magic
bind = $mainMod SHIFT, S, movetoworkspace, special:magic
bind = $mainMod CTRL, S, movetoworkspace, special:magic
bind = $mainMod SHIFT, S, exec, /home/nathan/.local/bin/hyprshot -m region
# Scroll through existing workspaces with mainMod + scroll
# bind = $mainMod, mouse_down, workspace, e+1
@@ -197,6 +206,20 @@ bind = $mainMod SHIFT, TAB, workspace, e-1
bind = ALT, TAB, workspace, e+1
bind = ALT SHIFT, TAB, workspace, e-1
# Media control keys
bindle=, XF86AudioRaiseVolume, exec, vol --up
bindle=, XF86AudioLowerVolume, exec, vol --downxe
bindle=, XF86MonBrightnessUp, exec, brightnessctl s +5%
bindle=, XF86MonBrightnessDown, exec, brightnessctl s 5%-
bindle=, XF86Search, exec, $menu
# bindl=, XF86AudioMute, exec, amixer set Master toggle
bindl=, XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
bindl=, XF86AudioPlay, exec, playerctl play-pause # the stupid key is called play , but it toggles
bindl=, XF86AudioNext, exec, playerctl next
bindl=, XF86AudioPrev, exec, playerctl previous
# Move/resize windows with mainMod + LMB/RMB and dragging
bindm = $mainMod, mouse:272, movewindow
bindm = $mainMod, mouse:273, resizewindow