From e9f65e16756d69de2806a4581696093973e97a64 Mon Sep 17 00:00:00 2001 From: Jeena Date: Mon, 24 Aug 2026 09:43:57 +0900 Subject: [PATCH] chore(hypr): remove legacy .conf configs now that Lua is active Hyprland loads hyprland.lua (not hyprland.conf) when present, so the hyprlang configs are dead weight. Delete the Hyprland .conf files and their gitignored host .conf counterparts, leaving only hypridle.conf and hyprlock.conf (used by separate tools that still use hyprlang). --- hypr/autostart.conf | 11 -- hypr/hosts/Chester.lua | 4 +- hypr/hosts/Rutherford.lua | 2 +- hypr/hyprland.conf | 336 -------------------------------------- hypr/keybindings.conf | 32 ---- hypr/programs.conf | 5 - hypr/windowrule.conf | 31 ---- 7 files changed, 3 insertions(+), 418 deletions(-) delete mode 100644 hypr/autostart.conf delete mode 100644 hypr/hyprland.conf delete mode 100644 hypr/keybindings.conf delete mode 100644 hypr/programs.conf delete mode 100644 hypr/windowrule.conf diff --git a/hypr/autostart.conf b/hypr/autostart.conf deleted file mode 100644 index 4f2da34..0000000 --- a/hypr/autostart.conf +++ /dev/null @@ -1,11 +0,0 @@ -exec-once = fcitx5 -exec-once = ~/.config/hypr/scripts/wob-daemon.sh -exec-once = [workspace 1 silent] $browser -exec-once = [workspace 2 silent] thunderbird -exec-once = [workspace 2 silent] element-desktop -exec-once = [workspace special:magic silent] $terminal - -# Qt apps don't work with workspace on exec-one -# Added windowrule for them -exec-once = keepassxc -exec-once = chromium --profile-directory="Default" diff --git a/hypr/hosts/Chester.lua b/hypr/hosts/Chester.lua index ef3c042..a8a67a4 100644 --- a/hypr/hosts/Chester.lua +++ b/hypr/hosts/Chester.lua @@ -1,6 +1,6 @@ -- Host-specific overrides: Chester (laptop, 2880x1800 internal display) --- Converted from hosts/William.conf (which the .conf path used via the --- host.conf symlink) — keeps the internal panel at 2x scaling. +-- Loaded automatically by hyprland.lua via hostname detection. +-- Keeps the internal panel at 1.5x scaling (virtual 1920x1200). -- Laptop internal display — explicit & stable hl.monitor({ diff --git a/hypr/hosts/Rutherford.lua b/hypr/hosts/Rutherford.lua index b101afe..9b8097b 100644 --- a/hypr/hosts/Rutherford.lua +++ b/hypr/hosts/Rutherford.lua @@ -1,5 +1,5 @@ -- Host-specific overrides: Rutherford (desktop PC) --- Converted from hosts/Rutherford.conf +-- Loaded automatically by hyprland.lua via hostname detection. hl.monitor({ output = "DP-1", diff --git a/hypr/hyprland.conf b/hypr/hyprland.conf deleted file mode 100644 index e2ff21a..0000000 --- a/hypr/hyprland.conf +++ /dev/null @@ -1,336 +0,0 @@ -# https://wiki.hyprland.org/Configuring/ - -# You can split this configuration into multiple files -# Create your files separately and then link them to this file like this: -# source = ~/.config/hypr/myColors.conf - -############################# -### ENVIRONMENT VARIABLES ### -############################# - -# See https://wiki.hyprland.org/Configuring/Environment-variables/ - -env = XCURSOR_SIZE,24 -env = HYPRCURSOR_SIZE,24 -env = QT_QPA_PLATFORMTHEME,qt5ct -env = HYPRSHOT_DIR,Screenshots - -# Force Aquamarine to use only the Intel iGPU for display. -# The NVIDIA RTX 3060 is also present but causes EGL_BAD_MATCH errors and page-flip -# lockups after VT/DPMS cycles (multi-GPU buffer ownership fights). -env = AQ_DRM_DEVICES,/dev/dri/card0 - -################ -### MONITORS ### -################ - -# See https://wiki.hyprland.org/Configuring/Monitors/ -# Safe default for any machine -monitor = ,preferred,auto,1 - -################### -### MY PROGRAMS ### -################### - -# See https://wiki.hyprland.org/Configuring/Keywords/ - -# Set programs that you use -source = ~/.config/hypr/programs.conf - -################# -### AUTOSTART ### -################# - -# Autostart necessary processes (like notifications daemons, status bars, etc.) -# Or execute your favorite apps at launch like this: - -# exec-once = hypridle # DISABLED: auto-lock causes black screen (multi-GPU + orphaned layer issues). -# TODO: re-enable once root cause is fixed -exec-once = waybar -exec-once = swaybg -i ~/.config/hypr/wallpapers/Purple.jpg -m fill -exec-once = ~/.config/hypr/scripts/dynamic-borders.sh -exec-once = ~/.config/hypr/scripts/xdg-desktop-portal-hyprland.sh - -source = ~/.config/hypr/autostart.conf - -################### -### PERMISSIONS ### -################### - -# See https://wiki.hyprland.org/Configuring/Permissions/ -# Please note permission changes here require a Hyprland restart and are not applied on-the-fly -# for security reasons - -# ecosystem { -# enforce_permissions = 1 -# } - -# permission = /usr/(bin|local/bin)/grim, screencopy, allow -# permission = /usr/(lib|libexec|lib64)/xdg-desktop-portal-hyprland, screencopy, allow -# permission = /usr/(bin|local/bin)/hyprpm, plugin, allow - - -##################### -### LOOK AND FEEL ### -##################### - -# Refer to https://wiki.hyprland.org/Configuring/Variables/ - -# https://wiki.hyprland.org/Configuring/Variables/#general -general { - gaps_in = 5 - gaps_out = 1,0,0,0 - - border_size = 3 - - # https://wiki.hyprland.org/Configuring/Variables/#variable-types for info about colors - col.active_border = rgba(D55D7Cee) rgba(480023ee) 45deg - col.inactive_border = rgba(595959aa) - - # Set to true enable resizing windows by clicking and dragging on borders and gaps - resize_on_border = true - - # Please see https://wiki.hyprland.org/Configuring/Tearing/ before you turn this on - allow_tearing = false - - layout = dwindle -} - -# https://wiki.hyprland.org/Configuring/Variables/#decoration -decoration { - rounding = 10 - rounding_power = 2 - - # Change transparency of focused and unfocused windows - active_opacity = 1.0 - inactive_opacity = 0.8 - - shadow { - enabled = true - range = 4 - render_power = 3 - color = rgba(1a1a1aee) - } - - # https://wiki.hyprland.org/Configuring/Variables/#blur - blur { - enabled = true - size = 3 - passes = 1 - - vibrancy = 0.1696 - } -} - -# https://wiki.hyprland.org/Configuring/Variables/#animations -animations { - enabled = yes, please :) - - # Default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more - - bezier = easeOutQuint,0.23,1,0.32,1 - bezier = easeInOutCubic,0.65,0.05,0.36,1 - bezier = linear,0,0,1,1 - bezier = almostLinear,0.5,0.5,0.75,1.0 - bezier = quick,0.15,0,0.1,1 - - animation = global, 1, 10, default - animation = border, 1, 5.39, easeOutQuint - animation = windows, 1, 4.79, easeOutQuint - animation = windowsIn, 1, 4.1, easeOutQuint, popin 87% - animation = windowsOut, 1, 1.49, linear, popin 87% - animation = fadeIn, 1, 1.73, almostLinear - animation = fadeOut, 1, 1.46, almostLinear - animation = fade, 1, 3.03, quick - animation = layers, 1, 3.81, easeOutQuint - animation = layersIn, 1, 4, easeOutQuint, fade - animation = layersOut, 1, 1.5, linear, fade - animation = fadeLayersIn, 1, 1.79, almostLinear - animation = fadeLayersOut, 1, 1.39, almostLinear - animation = workspaces, 1, 1.94, easeOutQuint, slidefade - animation = workspacesIn, 1, 1.21, easeOutQuint, slidefade - animation = workspacesOut, 1, 1.94, easeOutQuint, slidefade - - animation = specialWorkspace, 1, 1.21, quick, slidefadevert -} - -# Ref https://wiki.hyprland.org/Configuring/Workspace-Rules/ -# "Smart gaps" / "No gaps when only" -# uncomment all if you wish to use that. -# workspace = w[tv1], gapsout:0, gapsin:0 -# workspace = f[1], gapsout:0, gapsin:0 -# windowrule = bordersize 0, floating:0, onworkspace:w[tv1] -# windowrule = rounding 0, floating:0, onworkspace:w[tv1] -# windowrule = bordersize 0, floating:0, onworkspace:f[1] -# windowrule = rounding 0, floating:0, onworkspace:f[1] - -# See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more -dwindle { - preserve_split = true # You probably want this - force_split = 2 -} - -# See https://wiki.hyprland.org/Configuring/Master-Layout/ for more -master { - new_status = master -} - -# https://wiki.hyprland.org/Configuring/Variables/#misc -misc { - force_default_wallpaper = 0 # Set to 0 or 1 to disable the anime mascot wallpapers - disable_hyprland_logo = true # If true disables the random hyprland logo / anime girl background. :( - enable_swallow = true - font_family = FontAwesome - - # Fix black screen on wake: let the compositor itself re-enable DPMS on input, - # as a fallback when hypridle's after_sleep dpms-on runs too early / gets ignored. - key_press_enables_dpms = true - mouse_move_enables_dpms = true -} - - -############# -### INPUT ### -############# - -# https://wiki.hyprland.org/Configuring/Variables/#input -input { - kb_layout = us,se,kr - kb_variant = dvorak,dvorak, - kb_model = - kb_options = grp:win_space_toggle,grp:toggle - kb_rules = - - follow_mouse = 0 - float_switch_override_focus = 0 - - sensitivity = 0.33 # -1.0 - 1.0, 0 means no modification. - - natural_scroll = true - accel_profile = adaptive - - touchpad { - natural_scroll = true - tap-to-click = true - disable_while_typing = true - } -} - -# https://wiki.hyprland.org/Configuring/Variables/#gestures -gestures { - gesture = 3, horizontal, workspace - gesture = 3, vertical, dispatcher, togglespecialworkspace -} - -# Example per-device config -# See https://wiki.hyprland.org/Configuring/Keywords/#per-device-input-configs for more -device { - name = epic-mouse-v1 - sensitivity = -0.5 -} - - -################### -### KEYBINDINGS ### -################### - -# See https://wiki.hyprland.org/Configuring/Keywords/ -$mainMod = SUPER # Sets "Windows" key as main modifier - -# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more -source = ~/.config/hypr/keybindings.conf - -# 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 - -# 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 - -# Example special workspace (scratchpad) -bind = $mainMod, S, togglespecialworkspace -bind = $mainMod SHIFT, S, movetoworkspace, special - -# Scroll through existing workspaces with mainMod + scroll -bind = $mainMod, mouse_down, workspace, e+1 -bind = $mainMod, mouse_up, workspace, e-1 - -bind = CTRL ALT, right, workspace, e+1 -bind = CTRL ALT, left, workspace, e-1 - -# Move/resize windows with mainMod + LMB/RMB and dragging -bindm = $mainMod, mouse:272, movewindow -bindm = $mainMod, mouse:273, resizewindow - -# Swap active window with the one next to it with SUPER + SHIFT + arrow keys -bindd = SUPER SHIFT, left, Swap window to the left, swapwindow, l -bindd = SUPER SHIFT, right, Swap window to the right, swapwindow, r -bindd = SUPER SHIFT, up, Swap window up, swapwindow, u -bindd = SUPER SHIFT, down, Swap window down, swapwindow, d - -# Laptop multimedia keys for volume and LCD brightness -bindel = ,XF86AudioRaiseVolume, exec, ~/.config/hypr/scripts/wob-volume.sh up -bindel = ,XF86AudioLowerVolume, exec, ~/.config/hypr/scripts/wob-volume.sh down -bindel = ,XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle -bindel = ,XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle -bindel = ,XF86MonBrightnessUp, exec, ~/.config/hypr/scripts/wob-brightness.sh up -bindel = ,XF86MonBrightnessDown, exec, ~/.config/hypr/scripts/wob-brightness.sh down - -# Requires playerctl -bindl = , XF86AudioNext, exec, playerctl next -bindl = , XF86AudioPause, exec, playerctl play-pause -bindl = , XF86AudioPlay, exec, playerctl play-pause -bindl = , XF86AudioPrev, exec, playerctl previous - -############################## -### WINDOWS AND WORKSPACES ### -############################## - -# See https://wiki.hyprland.org/Configuring/Window-Rules/ for more -# See https://wiki.hyprland.org/Configuring/Workspace-Rules/ for workspace rules - -windowrule { - name = suppress-maximize - match:class = .* - suppress_event = maximize -} - -windowrule { - name = xwayland-nofocus-fix - match:class = ^$ - match:title = ^$ - match:xwayland = 1 - match:float = 1 - match:fullscreen = 0 - match:pin = 0 - - no_focus = on -} - -source = ~/.config/hypr/windowrule.conf - -# Host overrides -source = ~/.config/hypr/hosts/host.conf diff --git a/hypr/keybindings.conf b/hypr/keybindings.conf deleted file mode 100644 index acf0d7d..0000000 --- a/hypr/keybindings.conf +++ /dev/null @@ -1,32 +0,0 @@ -bind = $mainMod, T, exec, $terminal -bind = $mainMod, B, exec, $browser -bind = $mainMod, W, killactive, -bind = $mainMod SHIFT, M, exit, -bind = $mainMod, E, exec, $fileManager -bind = $mainMod, V, togglefloating, -bindr = $mainMod, SUPER_L, exec, $app_menu -bind = SHIFT, SUPER_L, exec, $menu -bind = $mainMod, P, pseudo, # dwindle -bind = $mainMod, J, layoutmsg, togglesplit # dwindle - -bind = $mainMod, F, fullscreen - -# Screenshot -bind = CTRL, PRINT, exec, hyprshot -m active -m output -bind = , PRINT, exec, hyprshot -m window -bind = SHIFT, PRINT, exec, hyprshot -m region - -# Color picker -bind = $mainMod, C, exec, hyprpicker --autocopy - -# Lock -bind = $mainMod, L, exec, ~/.config/hypr/scripts/lock.sh -bind = $mainMod SHIFT, L, exec, wlogout --protocol layer-shell - -# Cheatsheet -bind = $mainMod, F1, exec, ~/.config/hypr/scripts/cheatsheet.py ~/.config/hypr/shortcuts.txt - -# OBS -bind = $mainMod ALT, TAB, pass, class:^(com.obsproject.Studio)$ -bind = , F1, pass, class:^(com.obsproject.Studio)$ -bind = , F2, pass, class:^(com.obsproject.Studio)$ diff --git a/hypr/programs.conf b/hypr/programs.conf deleted file mode 100644 index 66270e7..0000000 --- a/hypr/programs.conf +++ /dev/null @@ -1,5 +0,0 @@ -$terminal = kitty -e zsh -c "fastfetch; exec zsh" -$fileManager = nautilus -$app_menu = ~/.config/hypr/scripts/launch-tofi.sh -$menu = ~/.config/hypr/scripts/launch-menu.sh -$browser = librewolf diff --git a/hypr/windowrule.conf b/hypr/windowrule.conf deleted file mode 100644 index 80ccd65..0000000 --- a/hypr/windowrule.conf +++ /dev/null @@ -1,31 +0,0 @@ -# LibreWolf Picture-in-Picture -windowrule { - name = librewolf-pip - match:class = ($browser) - match:title = (Picture-in-Picture) - - float = on - pin = on - opacity = 1.0 override 1.0 override -} - -# Cheatsheet -windowrule { - name = cheatsheet-window - match:class = net.jeena.Cheatsheet - - float = on - center = on -} - -windowrule { - name = chromium-ws3 - match:class = chromium - workspace = 3 silent -} - -windowrule { - name = keepassxc-special - match:class = org.keepassxc.KeePassXC - workspace = special silent -}