212 lines
8.2 KiB
Plaintext
212 lines
8.2 KiB
Plaintext
# Hyprland Configuration — Windows XP Desktop Environment
|
|
|
|
# Plugins
|
|
plugin = /usr/local/lib/hyprbars-xp.so
|
|
|
|
# Monitors
|
|
monitor = , preferred, auto, 1
|
|
source = ~/.config/hypr/monitors.conf
|
|
|
|
# Active XP Visual Style (borders, rounding, hyprbars)
|
|
source = ~/.config/hypr/theme.conf
|
|
|
|
# Autostart
|
|
exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP DCONF_PROFILE GTK_THEME GTK2_RC_FILES QT_QPA_PLATFORMTHEME XCURSOR_THEME XCURSOR_SIZE HYPRCURSOR_THEME HYPRCURSOR_SIZE
|
|
exec-once = systemctl --user restart xdg-desktop-portal xdg-desktop-portal-hyprland xdg-desktop-portal-gtk
|
|
exec-once = hyprpaper
|
|
exec-once = waybar
|
|
exec-once = swaync
|
|
exec-once = /home/carsten/.local/bin/xp-start-menu --daemon
|
|
exec-once = /home/carsten/.local/bin/xp-alttab --daemon
|
|
exec-once = /home/carsten/.local/bin/xp-sound-daemon
|
|
exec-once = /home/carsten/.local/bin/xp-desktop
|
|
exec-once = hypridle
|
|
exec-once = /usr/libexec/hyprpolkitagent
|
|
exec-once = nm-applet --indicator
|
|
exec-once = blueman-applet
|
|
exec-once = wl-paste --type text --watch cliphist store
|
|
exec-once = wl-paste --type image --watch cliphist store
|
|
exec-once = hyprctl setcursor standard-with-shadow 24
|
|
exec-once = ~/.config/hypr/scripts/xp-sound.sh logon
|
|
|
|
# Input (ThinkPad)
|
|
input {
|
|
kb_layout = us
|
|
follow_mouse = 1
|
|
sensitivity = 0
|
|
|
|
touchpad {
|
|
natural_scroll = false
|
|
tap-to-click = true
|
|
scroll_factor = 0.8
|
|
}
|
|
}
|
|
|
|
# Authentic Windows XP instant UI (no animations)
|
|
animations {
|
|
enabled = false
|
|
}
|
|
|
|
dwindle {
|
|
pseudotile = true
|
|
preserve_split = true
|
|
}
|
|
|
|
misc {
|
|
force_default_wallpaper = 0
|
|
disable_hyprland_logo = true
|
|
disable_splash_rendering = true
|
|
}
|
|
|
|
xwayland {
|
|
force_zero_scaling = true
|
|
}
|
|
|
|
# Hyprland 0.53 Window Rules
|
|
windowrule = match:class ^(org\.pulseaudio\.pavucontrol)$, float on, center on, size 720 500
|
|
windowrule = match:class ^(blueman-manager)$, float on, center on, size 640 460
|
|
windowrule = match:class ^(nm-connection-editor)$, float on, center on
|
|
windowrule = match:class ^(nwg-look)$, float on, center on
|
|
windowrule = match:class ^(nwg-displays)$, float on, center on
|
|
windowrule = match:class ^(qt5ct|qt6ct)$, float on, center on
|
|
windowrule = match:class ^(engrampa)$, float on, center on
|
|
windowrule = match:class ^(hyprpolkitagent)$, float on, center on
|
|
windowrule = match:class ^(xp-run)$, float on, move 12 100%-204, size 368 152
|
|
windowrule = match:class ^(xp-display-properties)$, float on, center on, size 404 468
|
|
windowrule = match:class ^(xp-control-panel)$, float on, center on, size 740 480
|
|
windowrule = match:class ^(xp-taskmgr)$, float on, center on, size 450 500
|
|
windowrule = match:class ^(xp-clipbook)$, float on, center on, size 450 360
|
|
windowrule = match:title ^(Open|Save|Select|Choose|File Operation Progress)(.*)$, float on, center on
|
|
|
|
# Keybindings
|
|
$mainMod = SUPER
|
|
|
|
# Start Menu, Run, Launcher & Core Apps
|
|
bindr = SUPER, SUPER_L, exec, ~/.config/hypr/scripts/xp-start-menu.sh
|
|
bind = $mainMod, Space, exec, ~/.config/hypr/scripts/xp-start-menu.sh
|
|
bind = $mainMod, A, exec, ~/.config/hypr/scripts/xp-start-menu.sh
|
|
bind = $mainMod, R, exec, ~/.config/hypr/scripts/xp-run.sh
|
|
bind = $mainMod, Return, exec, ghostty
|
|
bind = $mainMod, T, exec, ghostty
|
|
bind = $mainMod, E, exec, thunar
|
|
bind = $mainMod, V, exec, ~/.config/hypr/scripts/xp-clipboard.sh
|
|
bind = $mainMod, D, exec, ~/.config/hypr/scripts/show-desktop.sh
|
|
bind = $mainMod, L, exec, hyprlock
|
|
bind = $mainMod, X, exec, ~/.config/hypr/scripts/xp-power-menu.sh
|
|
bind = CTRL ALT, Delete, exec, ~/.config/hypr/scripts/xp-power-menu.sh
|
|
bind = CTRL SHIFT, Escape, exec, /home/carsten/.local/bin/xp-taskmgr
|
|
bind = $mainMod, I, exec, /home/carsten/.local/bin/xp-control-panel
|
|
bind = $mainMod SHIFT, T, exec, /home/carsten/.local/bin/xp-display-properties
|
|
bind = $mainMod SHIFT, W, exec, /home/carsten/.local/bin/xp-display-properties --desktop
|
|
bind = ALT, Space, exec, /home/carsten/.local/bin/xp-context-menu --window
|
|
bind = $mainMod, N, exec, swaync-client -t -sw
|
|
|
|
# Window Management
|
|
bind = $mainMod, Q, killactive
|
|
bind = ALT, F4, killactive
|
|
bind = $mainMod, M, fullscreen, 1
|
|
bind = $mainMod, F, fullscreen, 0
|
|
bind = $mainMod SHIFT, Space, togglefloating
|
|
|
|
# Authentic Windows XP CoolSwitch Alt+Tab (hold Alt, tap Tab / Shift+Tab, release Alt to switch)
|
|
bind = ALT, Tab, exec, /usr/local/bin/xp-alttab-ctl next
|
|
bind = ALT, Tab, submap, alttab
|
|
bind = ALT SHIFT, Tab, exec, /usr/local/bin/xp-alttab-ctl prev
|
|
bind = ALT SHIFT, Tab, submap, alttab
|
|
bind = ALT SHIFT, ISO_Left_Tab, exec, /usr/local/bin/xp-alttab-ctl prev
|
|
bind = ALT SHIFT, ISO_Left_Tab, submap, alttab
|
|
|
|
submap = alttab
|
|
bind = ALT, Tab, exec, /usr/local/bin/xp-alttab-ctl next
|
|
bind = ALT SHIFT, Tab, exec, /usr/local/bin/xp-alttab-ctl prev
|
|
bind = ALT SHIFT, ISO_Left_Tab, exec, /usr/local/bin/xp-alttab-ctl prev
|
|
bind = ALT, right, exec, /usr/local/bin/xp-alttab-ctl next
|
|
bind = ALT, left, exec, /usr/local/bin/xp-alttab-ctl prev
|
|
bind = ALT, up, exec, /usr/local/bin/xp-alttab-ctl up
|
|
bind = ALT, down, exec, /usr/local/bin/xp-alttab-ctl down
|
|
bind = ALT, Escape, exec, /usr/local/bin/xp-alttab-ctl cancel
|
|
bind = ALT, Escape, submap, reset
|
|
bind = , Escape, exec, /usr/local/bin/xp-alttab-ctl cancel
|
|
bind = , Escape, submap, reset
|
|
bindrt = ALT, Alt_L, exec, /usr/local/bin/xp-alttab-ctl commit
|
|
bindrt = ALT, Alt_L, submap, reset
|
|
bindrt = , Alt_L, exec, /usr/local/bin/xp-alttab-ctl commit
|
|
bindrt = , Alt_L, submap, reset
|
|
bindrt = ALT, Alt_R, exec, /usr/local/bin/xp-alttab-ctl commit
|
|
bindrt = ALT, Alt_R, submap, reset
|
|
bindrt = , Alt_R, exec, /usr/local/bin/xp-alttab-ctl commit
|
|
bindrt = , Alt_R, submap, reset
|
|
submap = reset
|
|
|
|
# Focus Movement
|
|
bind = $mainMod, left, movefocus, l
|
|
bind = $mainMod, right, movefocus, r
|
|
bind = $mainMod, up, movefocus, u
|
|
bind = $mainMod, down, movefocus, d
|
|
bind = $mainMod, H, movefocus, l
|
|
bind = $mainMod, L, movefocus, r
|
|
bind = $mainMod, K, movefocus, u
|
|
bind = $mainMod, J, movefocus, d
|
|
|
|
# Move Windows
|
|
bind = $mainMod SHIFT, left, movewindow, l
|
|
bind = $mainMod SHIFT, right, movewindow, r
|
|
bind = $mainMod SHIFT, up, movewindow, u
|
|
bind = $mainMod SHIFT, down, movewindow, d
|
|
bind = $mainMod SHIFT, H, movewindow, l
|
|
bind = $mainMod SHIFT, L, movewindow, r
|
|
bind = $mainMod SHIFT, K, movewindow, u
|
|
bind = $mainMod SHIFT, J, movewindow, d
|
|
|
|
# Resize Windows
|
|
binde = $mainMod CTRL, left, resizeactive, -30 0
|
|
binde = $mainMod CTRL, right, resizeactive, 30 0
|
|
binde = $mainMod CTRL, up, resizeactive, 0 -30
|
|
binde = $mainMod CTRL, down, resizeactive, 0 30
|
|
binde = $mainMod CTRL, H, resizeactive, -30 0
|
|
binde = $mainMod CTRL, L, resizeactive, 30 0
|
|
binde = $mainMod CTRL, K, resizeactive, 0 -30
|
|
binde = $mainMod CTRL, J, resizeactive, 0 30
|
|
|
|
# Mouse Move / Resize
|
|
bindm = $mainMod, mouse:272, movewindow
|
|
bindm = $mainMod, mouse:273, resizewindow
|
|
|
|
# Workspaces 1..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 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
|
|
|
|
# Screenshots
|
|
bind = , Print, exec, ~/.config/hypr/scripts/xp-screenshot.sh region
|
|
bind = SHIFT, Print, exec, ~/.config/hypr/scripts/xp-screenshot.sh annotate
|
|
bind = $mainMod SHIFT, S, exec, ~/.config/hypr/scripts/xp-screenshot.sh annotate
|
|
|
|
# ThinkPad Hardware Keys
|
|
bindel = , XF86AudioRaiseVolume, exec, ~/.config/hypr/scripts/xp-osd.sh vol-up
|
|
bindel = , XF86AudioLowerVolume, exec, ~/.config/hypr/scripts/xp-osd.sh vol-down
|
|
bindl = , XF86AudioMute, exec, ~/.config/hypr/scripts/xp-osd.sh vol-mute
|
|
bindl = , XF86AudioMicMute, exec, ~/.config/hypr/scripts/xp-osd.sh mic-mute
|
|
bindel = , XF86MonBrightnessUp, exec, ~/.config/hypr/scripts/xp-osd.sh bri-up
|
|
bindel = , XF86MonBrightnessDown, exec, ~/.config/hypr/scripts/xp-osd.sh bri-down
|
|
bindl = , XF86AudioPlay, exec, playerctl play-pause
|
|
bindl = , XF86AudioNext, exec, playerctl next
|
|
bindl = , XF86AudioPrev, exec, playerctl previous
|
|
bindl = , switch:on:Lid Switch, exec, hyprlock
|