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

@@ -0,0 +1,2 @@
# Gracefully close brave
# exec-shutdown = "brave-browser --quit"

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

View File

@@ -10,7 +10,7 @@ general {
background {
# monitor =
path = $HOME/.config/hypr/hyprlock.png
blur_passes = 0
blur_passes = 1
# color = $base
}

View File

@@ -0,0 +1,3 @@
preload = ~/.config/backgrounds/background.png
wallpaper = , ~/.config/backgrounds/background.png
ipc = on

View File

@@ -0,0 +1,23 @@
exec-once = /usr/lib/x86_64-linux-gnu/libexec/polkit-kde-authentication-agent-1
exec-once = systemctl --user start plasma-kwallet-pam.service plasma-polkit-agent.service
exec-once = /usr/bin/kwalletd6
exec-once = systemctl --user start xdg-desktop-portal-hyprland
exec-once = /usr/lib/x86_64-linux-gnu/libexec/kdeconnectd
exec-once = swaync
# Start apps in .autostart
exec-once = /home/$USER/.config/autostart/com.impervious.fingertip.desktop
exec-once = /home/$USER/.config/autostart/Nextcloud.desktop
exec-once = /usr/bin/python3 /usr/bin/solaar --window=hide
# Start windows
exec-once = alacritty --class alacritty-init
exec-once = brave-browser
exec-once = discord-ptb
exec-once = slack
exec-once = waybar
exec-once = hyprpaper
exec-once = clipse -listen & clipse --listen

View File

@@ -0,0 +1,38 @@
windowrulev2 = float,class:(clipse)
windowrulev2 = size 622 652,class:(clipse)
windowrulev2 = stayfocused,class:(clipse)
windowrule = float, polkit-kde-authentication-agent-1
windowrule = center,polkit-kde-authentication-agent-1
windowrule = size 800 500,polkit-kde-authentication-agent-1
windowrule = stayfocused,polkit-kde-authentication-agent-1
windowrule = float, io.github.kaii_lb.Overskride
windowrule = center,io.github.kaii_lb.Overskride
windowrule = size 1000 800,io.github.kaii_lb.Overskride
windowrule = float, overskride
windowrule = center,overskride
windowrule = size 700 500,overskride
windowrule = float, iwgtk
windowrule = center,iwgtk
windowrule = size 800 500,iwgtk
windowrule = float, org.kde.gwenview
windowrule = center,org.kde.gwenview
windowrule = size 800 500,org.kde.gwenview
windowrule = float, kdesystemsettings
windowrule = center,kdesystemsettings
windowrule = size 1500 1000,kdesystemsettings
# Start windows
windowrulev2 = workspace 1, class:alacritty-init
windowrulev2 = workspace 3, class:Brave-browser
windowrulev2 = workspace 5, class:discord
windowrulev2 = workspace 5, class:Slack