2026-05-10 20:03:43 +01:00
|
|
|
# settings/hyprland.nix
|
|
|
|
|
{ config, pkgs, lib, inputs, ... }:
|
2026-05-13 22:40:54 +01:00
|
|
|
let
|
|
|
|
|
hyprland-pkgs = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system};
|
|
|
|
|
|
2026-05-14 13:10:32 +01:00
|
|
|
isMacbook = config.networking.hostName == "FredOS-Macbook";
|
|
|
|
|
|
2026-05-14 10:44:32 +01:00
|
|
|
# GPU pinning env vars — only needed on the dual-GPU gaming box (card1 = Navi 22).
|
|
|
|
|
gpuEnv = lib.optionals (config.networking.hostName == "FredOS-Gaming") [
|
|
|
|
|
"AQ_DRM_DEVICES,/dev/dri/card1"
|
|
|
|
|
"WLR_DRM_DEVICES,/dev/dri/card1"
|
|
|
|
|
"DRI_PRIME,pci-0000_03_00_0"
|
|
|
|
|
];
|
|
|
|
|
|
2026-05-13 23:18:32 +01:00
|
|
|
# hyprutils-0.13.1 requires GLIBCXX_3.4.34 (GCC 15) but Hyprland's RPATH
|
|
|
|
|
# was patched to gcc-14.3.0-lib which only provides up to GLIBCXX_3.4.33.
|
|
|
|
|
# Use our nixpkgs GCC 15 to supply the missing symbol via LD_PRELOAD.
|
|
|
|
|
gcc15-stdlib = pkgs.gcc15.cc.lib;
|
2026-05-13 22:40:54 +01:00
|
|
|
|
2026-05-13 23:00:43 +01:00
|
|
|
hyprland-wrapped = pkgs.symlinkJoin {
|
2026-05-13 23:03:57 +01:00
|
|
|
name = hyprland-pkgs.hyprland.name;
|
|
|
|
|
version = hyprland-pkgs.hyprland.version;
|
2026-05-13 22:40:54 +01:00
|
|
|
paths = [ hyprland-pkgs.hyprland ];
|
|
|
|
|
nativeBuildInputs = [ pkgs.makeWrapper ];
|
2026-05-13 23:00:43 +01:00
|
|
|
# passthru inside symlinkJoin flows through runCommand → mkDerivation,
|
|
|
|
|
# which correctly sets drv.passthru. The display manager requires
|
|
|
|
|
# providedSessions; HM's hyprland module requires override.
|
|
|
|
|
passthru = {
|
|
|
|
|
providedSessions = [ "hyprland" ];
|
|
|
|
|
override = _: hyprland-wrapped;
|
|
|
|
|
};
|
2026-05-13 22:40:54 +01:00
|
|
|
postBuild = ''
|
|
|
|
|
wrapProgram $out/bin/start-hyprland \
|
2026-05-13 23:18:32 +01:00
|
|
|
--set LD_PRELOAD "${gcc15-stdlib}/lib/libstdc++.so.6"
|
2026-05-13 22:40:54 +01:00
|
|
|
wrapProgram $out/bin/Hyprland \
|
2026-05-13 23:18:32 +01:00
|
|
|
--set LD_PRELOAD "${gcc15-stdlib}/lib/libstdc++.so.6"
|
2026-05-13 23:00:43 +01:00
|
|
|
|
|
|
|
|
# The session .desktop symlinks to the original package and contains
|
|
|
|
|
# its absolute store path. Rewrite Exec= to our wrapped binary so
|
|
|
|
|
# GDM actually launches the LD_PRELOAD wrapper, not the bare binary.
|
|
|
|
|
desktop=$out/share/wayland-sessions/hyprland.desktop
|
|
|
|
|
orig=$(readlink -f "$desktop")
|
|
|
|
|
rm "$desktop"
|
|
|
|
|
sed "s|^Exec=.*|Exec=$out/bin/start-hyprland|" "$orig" > "$desktop"
|
2026-05-13 22:40:54 +01:00
|
|
|
'';
|
2026-05-13 22:53:05 +01:00
|
|
|
};
|
2026-05-13 22:40:54 +01:00
|
|
|
in
|
2026-05-10 20:03:43 +01:00
|
|
|
{
|
2026-05-14 10:44:32 +01:00
|
|
|
config = lib.mkIf (lib.elem config.networking.hostName [ "FredOS-Gaming" "FredOS-Macbook" ]) {
|
2026-05-10 20:03:43 +01:00
|
|
|
programs.hyprland = {
|
|
|
|
|
enable = true;
|
|
|
|
|
xwayland.enable = true;
|
2026-05-13 22:40:54 +01:00
|
|
|
package = hyprland-wrapped;
|
|
|
|
|
portalPackage = hyprland-pkgs.xdg-desktop-portal-hyprland;
|
2026-05-10 20:03:43 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
xdg.portal = {
|
|
|
|
|
enable = true;
|
2026-05-11 12:25:00 +01:00
|
|
|
# xdg-desktop-portal-hyprland is registered automatically by
|
|
|
|
|
# programs.hyprland.portalPackage; listing it here too produced a
|
|
|
|
|
# duplicate user-unit symlink during nixos-rebuild.
|
2026-05-10 20:03:43 +01:00
|
|
|
extraPortals = with pkgs; [
|
|
|
|
|
xdg-desktop-portal-gtk
|
|
|
|
|
];
|
|
|
|
|
config.hyprland.default = [ "hyprland" "gtk" ];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
security.polkit.enable = true;
|
|
|
|
|
|
|
|
|
|
# Polkit GUI agent for GUI sudo prompts under Hyprland
|
|
|
|
|
systemd.user.services.polkit-gnome-authentication-agent-1 = {
|
|
|
|
|
description = "polkit-gnome-authentication-agent-1";
|
|
|
|
|
wantedBy = [ "graphical-session.target" ];
|
|
|
|
|
partOf = [ "graphical-session.target" ];
|
|
|
|
|
after = [ "graphical-session.target" ];
|
|
|
|
|
serviceConfig = {
|
|
|
|
|
Type = "simple";
|
|
|
|
|
ExecStart = "${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1";
|
|
|
|
|
Restart = "on-failure";
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
|
ghostty
|
|
|
|
|
mako
|
|
|
|
|
grim
|
|
|
|
|
slurp
|
|
|
|
|
wl-clipboard
|
|
|
|
|
cliphist
|
|
|
|
|
brightnessctl
|
|
|
|
|
pamixer
|
2026-05-16 17:37:02 +01:00
|
|
|
swayosd
|
2026-05-10 20:03:43 +01:00
|
|
|
playerctl
|
|
|
|
|
hyprpaper
|
|
|
|
|
hyprlock
|
|
|
|
|
hypridle
|
|
|
|
|
hyprshot
|
|
|
|
|
networkmanagerapplet
|
|
|
|
|
pavucontrol
|
|
|
|
|
polkit_gnome
|
|
|
|
|
];
|
|
|
|
|
|
2026-05-11 11:48:36 +01:00
|
|
|
home-manager.users.fred = { config, lib, pkgs, inputs, ... }: {
|
2026-05-10 20:03:43 +01:00
|
|
|
wayland.windowManager.hyprland = {
|
|
|
|
|
enable = true;
|
|
|
|
|
systemd.variables = [ "--all" ];
|
2026-05-13 22:40:54 +01:00
|
|
|
package = hyprland-wrapped;
|
2026-05-10 20:03:43 +01:00
|
|
|
|
|
|
|
|
settings = {
|
2026-05-14 10:44:32 +01:00
|
|
|
# monitor is set per-host in hosts/FredOS-{Gaming,Macbook}.nix
|
2026-05-11 10:24:42 +01:00
|
|
|
env = [
|
2026-05-14 22:12:58 +01:00
|
|
|
# Clear the LD_PRELOAD set by the start-hyprland wrapper so it
|
|
|
|
|
# doesn't leak into child processes (Steam, games, etc.).
|
|
|
|
|
"LD_PRELOAD,"
|
|
|
|
|
|
2026-05-12 11:48:28 +01:00
|
|
|
# Keep these in sync with stylix.cursor in settings/stylix.nix.
|
|
|
|
|
"XCURSOR_THEME,Bibata-Modern-Ice"
|
2026-05-11 11:51:45 +01:00
|
|
|
"XCURSOR_SIZE,24"
|
2026-05-12 11:48:28 +01:00
|
|
|
"HYPRCURSOR_THEME,Bibata-Modern-Ice"
|
2026-05-11 11:51:45 +01:00
|
|
|
"HYPRCURSOR_SIZE,24"
|
2026-05-11 12:33:47 +01:00
|
|
|
|
|
|
|
|
# Prefer native Wayland backends where the app supports it.
|
|
|
|
|
"ELECTRON_OZONE_PLATFORM_HINT,wayland" # Vesktop, VSCodium
|
|
|
|
|
"MOZ_ENABLE_WAYLAND,1" # Zen / Firefox family
|
|
|
|
|
"QT_QPA_PLATFORM,wayland;xcb" # Qt apps, XWayland fallback
|
|
|
|
|
"SDL_VIDEODRIVER,wayland" # SDL apps
|
|
|
|
|
"_JAVA_AWT_WM_NONREPARENTING,1" # Java tiling fix
|
2026-05-14 10:44:32 +01:00
|
|
|
] ++ gpuEnv;
|
2026-05-11 10:24:42 +01:00
|
|
|
|
2026-05-10 20:03:43 +01:00
|
|
|
"$mod" = "SUPER";
|
|
|
|
|
"$term" = "ghostty";
|
2026-05-14 10:15:56 +01:00
|
|
|
"$menu" = "killall anyrun || anyrun";
|
2026-05-10 20:03:43 +01:00
|
|
|
|
|
|
|
|
exec-once = [
|
|
|
|
|
"mako"
|
|
|
|
|
"nm-applet --indicator"
|
|
|
|
|
"wl-paste --type text --watch cliphist store"
|
|
|
|
|
"wl-paste --type image --watch cliphist store"
|
2026-05-12 11:48:28 +01:00
|
|
|
"hyprctl setcursor Bibata-Modern-Ice 24"
|
2026-05-16 17:37:02 +01:00
|
|
|
"swayosd-server"
|
2026-05-15 12:12:04 +01:00
|
|
|
] ++ lib.optionals isMacbook [ "hypridle" ];
|
2026-05-10 20:03:43 +01:00
|
|
|
|
|
|
|
|
general = {
|
|
|
|
|
gaps_in = 6;
|
|
|
|
|
gaps_out = 12;
|
|
|
|
|
border_size = 2;
|
|
|
|
|
layout = "dwindle";
|
|
|
|
|
resize_on_border = true;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
decoration = {
|
|
|
|
|
rounding = 8;
|
|
|
|
|
blur = {
|
2026-05-11 15:10:20 +01:00
|
|
|
enabled = true;
|
2026-05-10 20:03:43 +01:00
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
2026-05-11 10:14:49 +01:00
|
|
|
render = {
|
2026-05-14 09:34:23 +01:00
|
|
|
direct_scanout = false;
|
2026-05-11 10:14:49 +01:00
|
|
|
};
|
|
|
|
|
|
2026-05-11 09:58:29 +01:00
|
|
|
animations = {
|
|
|
|
|
enabled = true;
|
2026-05-11 10:45:42 +01:00
|
|
|
# speed = tenths of a second; 1 = 0.1s ≈ instant.
|
2026-05-11 09:58:29 +01:00
|
|
|
bezier = [
|
|
|
|
|
"snap, 0.05, 0.9, 0.1, 1.0"
|
|
|
|
|
];
|
|
|
|
|
animation = [
|
2026-05-11 10:45:42 +01:00
|
|
|
"windows, 1, 1, snap"
|
|
|
|
|
"windowsOut, 1, 1, snap, popin 80%"
|
2026-05-14 09:56:48 +01:00
|
|
|
"layers, 1, 1, snap"
|
2026-05-11 10:45:42 +01:00
|
|
|
"border, 1, 2, default"
|
|
|
|
|
"fade, 1, 1, default"
|
|
|
|
|
"workspaces, 1, 1, snap"
|
2026-05-11 09:58:29 +01:00
|
|
|
];
|
|
|
|
|
};
|
|
|
|
|
|
2026-05-10 20:03:43 +01:00
|
|
|
input = {
|
|
|
|
|
kb_layout = "gb,no";
|
|
|
|
|
kb_options = "grp:alt_shift_toggle";
|
|
|
|
|
follow_mouse = 1;
|
|
|
|
|
accel_profile = "flat";
|
|
|
|
|
sensitivity = 0;
|
2026-05-15 12:17:12 +01:00
|
|
|
} // lib.optionalAttrs isMacbook {
|
|
|
|
|
touchpad = {
|
|
|
|
|
tap-to-click = true;
|
|
|
|
|
tap_button_map = "lrm"; # 1-finger=left, 2-finger=right, 3-finger=middle
|
|
|
|
|
natural_scroll = true;
|
|
|
|
|
};
|
2026-05-10 20:03:43 +01:00
|
|
|
};
|
|
|
|
|
|
2026-05-11 11:17:03 +01:00
|
|
|
cursor = {
|
|
|
|
|
no_warps = true; # don't teleport the cursor on focus changes
|
|
|
|
|
};
|
|
|
|
|
|
2026-05-10 20:03:43 +01:00
|
|
|
dwindle = {
|
|
|
|
|
preserve_split = true;
|
|
|
|
|
# New windows split the focused container 50/50 — your usual
|
|
|
|
|
# 2-way layout falls out of dwindle's defaults.
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
misc = {
|
|
|
|
|
disable_hyprland_logo = true;
|
|
|
|
|
disable_splash_rendering = true;
|
2026-05-11 11:17:03 +01:00
|
|
|
# Apps demanding attention don't get to yank focus — they'll
|
|
|
|
|
# show as urgent in the bar instead. Pairs with cursor.no_warps
|
|
|
|
|
# below; without that, focus jumps drag the cursor with them.
|
|
|
|
|
focus_on_activate = false;
|
2026-05-11 10:40:46 +01:00
|
|
|
vrr = 2; # always on — should engage at the 180 Hz EDID mode
|
2026-05-11 12:40:52 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
# vfr moved from misc: to debug: in 0.55.0
|
|
|
|
|
debug = {
|
2026-05-11 09:58:29 +01:00
|
|
|
vfr = false; # keep compositor ticking, don't idle between frames
|
2026-05-14 09:34:23 +01:00
|
|
|
disable_logs = false;
|
2026-05-10 20:03:43 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
# Mirror the GNOME bindings so muscle memory carries over
|
|
|
|
|
bind = [
|
|
|
|
|
"$mod, T, exec, $term"
|
|
|
|
|
"$mod, E, exec, nautilus"
|
2026-05-11 09:49:09 +01:00
|
|
|
"$mod, R, exec, $menu"
|
2026-05-10 20:03:43 +01:00
|
|
|
"$mod, Q, killactive"
|
|
|
|
|
"$mod SHIFT, E, exit"
|
|
|
|
|
|
|
|
|
|
# Floating / layout
|
|
|
|
|
"$mod, V, togglefloating"
|
|
|
|
|
"$mod, F, fullscreen, 0"
|
|
|
|
|
"$mod, P, pseudo"
|
2026-05-11 12:40:52 +01:00
|
|
|
"$mod, S, layoutmsg, togglesplit"
|
2026-05-10 20:03:43 +01:00
|
|
|
|
2026-05-11 10:03:20 +01:00
|
|
|
|
2026-05-10 20:03:43 +01:00
|
|
|
# Focus
|
|
|
|
|
"$mod, left, movefocus, l"
|
|
|
|
|
"$mod, right, movefocus, r"
|
|
|
|
|
"$mod, up, movefocus, u"
|
|
|
|
|
"$mod, down, movefocus, d"
|
|
|
|
|
"$mod, H, movefocus, l"
|
|
|
|
|
"$mod, K, movefocus, u"
|
|
|
|
|
"$mod, J, movefocus, d"
|
2026-05-11 12:50:51 +01:00
|
|
|
# L freed for hyprlock — arrow keys still handle right-focus.
|
|
|
|
|
|
2026-05-14 10:21:23 +01:00
|
|
|
# Power menu — toggle: kills anyrun if already open
|
|
|
|
|
"$mod, L, exec, killall anyrun || ${pkgs.writeShellScript "power-menu" ''
|
|
|
|
|
choice=$(printf '%s\n' \
|
|
|
|
|
$' Lock' \
|
|
|
|
|
$' Logout' \
|
|
|
|
|
$' Reboot' \
|
|
|
|
|
$' Shutdown' \
|
2026-05-14 10:15:56 +01:00
|
|
|
| ${pkgs.anyrun}/bin/anyrun \
|
|
|
|
|
--plugins "${pkgs.anyrun}/lib/libstdin.so" \
|
|
|
|
|
--show-results-immediately true \
|
|
|
|
|
--hide-plugin-info true \
|
|
|
|
|
--close-on-click true)
|
|
|
|
|
case "$choice" in
|
|
|
|
|
*Lock) ${pkgs.hyprlock}/bin/hyprlock ;;
|
|
|
|
|
*Logout) hyprctl dispatch exit ;;
|
|
|
|
|
*Reboot) systemctl reboot ;;
|
|
|
|
|
*Shutdown) systemctl poweroff ;;
|
|
|
|
|
esac
|
|
|
|
|
''}"
|
2026-05-10 20:03:43 +01:00
|
|
|
|
|
|
|
|
# Move windows
|
|
|
|
|
"$mod SHIFT, left, movewindow, l"
|
|
|
|
|
"$mod SHIFT, right, movewindow, r"
|
|
|
|
|
"$mod SHIFT, up, movewindow, u"
|
|
|
|
|
"$mod SHIFT, down, movewindow, d"
|
|
|
|
|
|
|
|
|
|
# Workspaces
|
|
|
|
|
"$mod, 1, workspace, 1"
|
|
|
|
|
"$mod, 2, workspace, 2"
|
|
|
|
|
"$mod, 3, workspace, 3"
|
|
|
|
|
"$mod, 4, workspace, 4"
|
|
|
|
|
"$mod, 5, workspace, 5"
|
|
|
|
|
"$mod, 6, workspace, 6"
|
|
|
|
|
"$mod, 7, workspace, 7"
|
|
|
|
|
"$mod, 8, workspace, 8"
|
|
|
|
|
"$mod, 9, workspace, 9"
|
|
|
|
|
"$mod, 0, workspace, 10"
|
|
|
|
|
|
2026-05-12 19:33:52 +01:00
|
|
|
"$mod SHIFT, 1, movetoworkspacesilent, 1"
|
|
|
|
|
"$mod SHIFT, 2, movetoworkspacesilent, 2"
|
|
|
|
|
"$mod SHIFT, 3, movetoworkspacesilent, 3"
|
|
|
|
|
"$mod SHIFT, 4, movetoworkspacesilent, 4"
|
|
|
|
|
"$mod SHIFT, 5, movetoworkspacesilent, 5"
|
|
|
|
|
"$mod SHIFT, 6, movetoworkspacesilent, 6"
|
|
|
|
|
"$mod SHIFT, 7, movetoworkspacesilent, 7"
|
|
|
|
|
"$mod SHIFT, 8, movetoworkspacesilent, 8"
|
|
|
|
|
"$mod SHIFT, 9, movetoworkspacesilent, 9"
|
|
|
|
|
"$mod SHIFT, 0, movetoworkspacesilent, 10"
|
2026-05-10 20:03:43 +01:00
|
|
|
|
|
|
|
|
# Screenshots — Shift+Super+S matches your GNOME binding
|
|
|
|
|
"$mod SHIFT, S, exec, hyprshot -m region --clipboard-only"
|
|
|
|
|
", Print, exec, hyprshot -m output --clipboard-only"
|
|
|
|
|
|
|
|
|
|
# Settings shortcut — Super+I matches your GNOME binding
|
|
|
|
|
"$mod, I, exec, pavucontrol"
|
2026-05-14 14:58:13 +01:00
|
|
|
|
|
|
|
|
# Custom - shortcuts:
|
|
|
|
|
"$mod, z, exec, zen-beta"
|
|
|
|
|
|
2026-05-10 20:03:43 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
|
|
bindm = [
|
|
|
|
|
"$mod, mouse:272, movewindow"
|
|
|
|
|
"$mod, mouse:273, resizewindow"
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
bindel = [
|
2026-05-16 17:37:02 +01:00
|
|
|
", XF86AudioRaiseVolume, exec, swayosd-client --output-volume raise"
|
|
|
|
|
", XF86AudioLowerVolume, exec, swayosd-client --output-volume lower"
|
|
|
|
|
", XF86AudioMute, exec, swayosd-client --output-volume mute-toggle"
|
|
|
|
|
", XF86MonBrightnessUp, exec, swayosd-client --brightness raise"
|
|
|
|
|
", XF86MonBrightnessDown, exec, swayosd-client --brightness lower"
|
2026-05-10 20:03:43 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
|
|
bindl = [
|
|
|
|
|
", XF86AudioPlay, exec, playerctl play-pause"
|
|
|
|
|
", XF86AudioNext, exec, playerctl next"
|
|
|
|
|
", XF86AudioPrev, exec, playerctl previous"
|
|
|
|
|
];
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
2026-05-14 10:15:56 +01:00
|
|
|
programs.anyrun = {
|
2026-05-11 12:50:51 +01:00
|
|
|
enable = true;
|
2026-05-14 10:15:56 +01:00
|
|
|
config = {
|
|
|
|
|
plugins = [ "${pkgs.anyrun}/lib/libapplications.so" ];
|
|
|
|
|
x.fraction = 0.5;
|
2026-05-14 10:23:03 +01:00
|
|
|
y.fraction = 0.25;
|
2026-05-16 10:59:35 +01:00
|
|
|
width.absolute = 350;
|
2026-05-14 10:15:56 +01:00
|
|
|
height.absolute = 0;
|
|
|
|
|
margin = 16;
|
|
|
|
|
hideIcons = false;
|
|
|
|
|
ignoreExclusiveZones = false;
|
|
|
|
|
layer = "overlay";
|
|
|
|
|
hidePluginInfo = true;
|
|
|
|
|
closeOnClick = true;
|
|
|
|
|
maxEntries = 8;
|
2026-05-11 12:50:51 +01:00
|
|
|
};
|
2026-05-14 10:15:56 +01:00
|
|
|
extraCss =
|
|
|
|
|
let c = config.lib.stylix.colors; in
|
|
|
|
|
''
|
|
|
|
|
* { all: unset; font-family: "FiraMono Nerd Font", monospace; font-size: 13px; }
|
|
|
|
|
window { background: transparent; }
|
|
|
|
|
box.main {
|
|
|
|
|
background: #${c.base00};
|
|
|
|
|
border: 1px solid #${c.base03};
|
|
|
|
|
border-radius: 10px;
|
|
|
|
|
padding: 8px;
|
|
|
|
|
margin: 16px;
|
|
|
|
|
}
|
|
|
|
|
text {
|
|
|
|
|
background: #${c.base01};
|
|
|
|
|
color: #${c.base05};
|
|
|
|
|
caret-color: #${c.base0D};
|
|
|
|
|
padding: 8px 16px;
|
|
|
|
|
border-radius: 6px;
|
|
|
|
|
min-height: 0;
|
|
|
|
|
}
|
|
|
|
|
list.plugin { background: transparent; }
|
|
|
|
|
.matches { background: transparent; }
|
|
|
|
|
.match {
|
|
|
|
|
padding: 4px 16px;
|
|
|
|
|
border-radius: 6px;
|
|
|
|
|
color: #${c.base05};
|
|
|
|
|
background: transparent;
|
|
|
|
|
}
|
|
|
|
|
.match:selected {
|
|
|
|
|
background: #${c.base02};
|
|
|
|
|
border: none;
|
|
|
|
|
}
|
|
|
|
|
label.match.description { color: #${c.base04}; font-size: 11px; }
|
|
|
|
|
'';
|
|
|
|
|
extraConfigFiles."applications.ron".text = ''
|
|
|
|
|
Config(
|
|
|
|
|
desktop_actions: false,
|
|
|
|
|
max_entries: Some(8),
|
|
|
|
|
terminal: Some("ghostty"),
|
|
|
|
|
)
|
|
|
|
|
'';
|
2026-05-11 12:50:51 +01:00
|
|
|
};
|
|
|
|
|
|
2026-05-15 12:12:04 +01:00
|
|
|
programs.hyprlock.enable = true;
|
|
|
|
|
|
|
|
|
|
services.hypridle = lib.mkIf isMacbook {
|
|
|
|
|
enable = true;
|
|
|
|
|
settings = {
|
|
|
|
|
general = {
|
|
|
|
|
lock_cmd = "pidof hyprlock || hyprlock";
|
|
|
|
|
before_sleep_cmd = "loginctl lock-session";
|
|
|
|
|
after_sleep_cmd = "hyprctl dispatch dpms on";
|
|
|
|
|
};
|
|
|
|
|
listener = [
|
|
|
|
|
{
|
|
|
|
|
timeout = 300; # 5 min — lock
|
|
|
|
|
on-timeout = "loginctl lock-session";
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
timeout = 420; # 7 min — display off
|
|
|
|
|
on-timeout = "hyprctl dispatch dpms off";
|
|
|
|
|
on-resume = "hyprctl dispatch dpms on";
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
timeout = 600; # 10 min — suspend
|
|
|
|
|
on-timeout = "systemctl suspend";
|
|
|
|
|
}
|
|
|
|
|
];
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
2026-05-13 21:13:31 +01:00
|
|
|
# Scope all HM Wayland services (hyprpaper, waybar, …) to the
|
|
|
|
|
# Hyprland session so they don't crash-loop in a GNOME session.
|
|
|
|
|
wayland.systemd.target = "hyprland-session.target";
|
|
|
|
|
|
hyprland: replace bundled waybar config with a minimal Hyprland one
The bundled waybar config assumes sway and pulls in modules that don't
apply here (battery, backlight, sway/*), tries to read /dev/input/* the
user can't open, and crashes the media module — which surfaced as
"media stopped unexpectedly" and an unrendered bar.
Switch to programs.waybar with our own settings: hyprland/workspaces,
clock, pulseaudio, network, tray. No IP, no CPU/RAM, no temp, no power
profile. Style is a thin transparent bar, white-on-grey workspace
numbers, FiraMono Nerd Font for the volume/network glyphs.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-11 10:53:59 +01:00
|
|
|
programs.waybar = {
|
|
|
|
|
enable = true;
|
2026-05-13 21:13:31 +01:00
|
|
|
systemd.enable = true;
|
hyprland: replace bundled waybar config with a minimal Hyprland one
The bundled waybar config assumes sway and pulls in modules that don't
apply here (battery, backlight, sway/*), tries to read /dev/input/* the
user can't open, and crashes the media module — which surfaced as
"media stopped unexpectedly" and an unrendered bar.
Switch to programs.waybar with our own settings: hyprland/workspaces,
clock, pulseaudio, network, tray. No IP, no CPU/RAM, no temp, no power
profile. Style is a thin transparent bar, white-on-grey workspace
numbers, FiraMono Nerd Font for the volume/network glyphs.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-11 10:53:59 +01:00
|
|
|
|
|
|
|
|
settings.mainBar = {
|
|
|
|
|
layer = "top";
|
|
|
|
|
position = "top";
|
|
|
|
|
height = 30;
|
|
|
|
|
spacing = 6;
|
|
|
|
|
|
|
|
|
|
modules-left = [ "hyprland/workspaces" ];
|
|
|
|
|
modules-center = [ "clock" ];
|
2026-05-14 13:10:32 +01:00
|
|
|
modules-right = lib.optionals isMacbook [ "battery" ] ++ [ "group/tray-drawer" ];
|
hyprland: replace bundled waybar config with a minimal Hyprland one
The bundled waybar config assumes sway and pulls in modules that don't
apply here (battery, backlight, sway/*), tries to read /dev/input/* the
user can't open, and crashes the media module — which surfaced as
"media stopped unexpectedly" and an unrendered bar.
Switch to programs.waybar with our own settings: hyprland/workspaces,
clock, pulseaudio, network, tray. No IP, no CPU/RAM, no temp, no power
profile. Style is a thin transparent bar, white-on-grey workspace
numbers, FiraMono Nerd Font for the volume/network glyphs.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-11 10:53:59 +01:00
|
|
|
|
|
|
|
|
"hyprland/workspaces" = {
|
|
|
|
|
format = "{name}";
|
|
|
|
|
on-click = "activate";
|
|
|
|
|
sort-by-number = true;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
clock = {
|
|
|
|
|
format = "{:%H:%M}";
|
|
|
|
|
tooltip-format = "<big>{:%A, %d %B %Y}</big>\n<tt><small>{calendar}</small></tt>";
|
|
|
|
|
};
|
|
|
|
|
|
2026-05-13 12:49:39 +01:00
|
|
|
"group/tray-drawer" = {
|
|
|
|
|
orientation = "horizontal";
|
|
|
|
|
drawer = {
|
|
|
|
|
transition-duration = 500;
|
|
|
|
|
transition-left-to-right = false;
|
|
|
|
|
};
|
|
|
|
|
modules = [ "custom/tray-handle" "pulseaudio" "tray" ];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
"custom/tray-handle" = {
|
|
|
|
|
format = ""; # Nerd Font arrow
|
|
|
|
|
tooltip = false;
|
|
|
|
|
};
|
|
|
|
|
|
2026-05-13 12:47:02 +01:00
|
|
|
# Pulseaudio module, now conditionally visible
|
hyprland: replace bundled waybar config with a minimal Hyprland one
The bundled waybar config assumes sway and pulls in modules that don't
apply here (battery, backlight, sway/*), tries to read /dev/input/* the
user can't open, and crashes the media module — which surfaced as
"media stopped unexpectedly" and an unrendered bar.
Switch to programs.waybar with our own settings: hyprland/workspaces,
clock, pulseaudio, network, tray. No IP, no CPU/RAM, no temp, no power
profile. Style is a thin transparent bar, white-on-grey workspace
numbers, FiraMono Nerd Font for the volume/network glyphs.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-11 10:53:59 +01:00
|
|
|
pulseaudio = {
|
|
|
|
|
format = "{icon} {volume}%";
|
|
|
|
|
format-muted = " muted";
|
|
|
|
|
format-icons = {
|
|
|
|
|
default = [ "" "" "" ];
|
|
|
|
|
headphone = "";
|
|
|
|
|
headset = "";
|
|
|
|
|
};
|
|
|
|
|
on-click = "pavucontrol";
|
|
|
|
|
scroll-step = 5;
|
|
|
|
|
};
|
|
|
|
|
|
2026-05-13 12:47:02 +01:00
|
|
|
# Tray module, now conditionally visible
|
hyprland: replace bundled waybar config with a minimal Hyprland one
The bundled waybar config assumes sway and pulls in modules that don't
apply here (battery, backlight, sway/*), tries to read /dev/input/* the
user can't open, and crashes the media module — which surfaced as
"media stopped unexpectedly" and an unrendered bar.
Switch to programs.waybar with our own settings: hyprland/workspaces,
clock, pulseaudio, network, tray. No IP, no CPU/RAM, no temp, no power
profile. Style is a thin transparent bar, white-on-grey workspace
numbers, FiraMono Nerd Font for the volume/network glyphs.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-11 10:53:59 +01:00
|
|
|
tray = {
|
|
|
|
|
icon-size = 16;
|
|
|
|
|
spacing = 8;
|
|
|
|
|
};
|
2026-05-14 13:10:32 +01:00
|
|
|
} // lib.optionalAttrs isMacbook {
|
|
|
|
|
battery = {
|
|
|
|
|
format = "{capacity}% {icon}";
|
|
|
|
|
format-charging = "{capacity}% ";
|
|
|
|
|
format-icons = [ "" "" "" "" "" ];
|
|
|
|
|
states = { warning = 30; critical = 15; };
|
|
|
|
|
};
|
hyprland: replace bundled waybar config with a minimal Hyprland one
The bundled waybar config assumes sway and pulls in modules that don't
apply here (battery, backlight, sway/*), tries to read /dev/input/* the
user can't open, and crashes the media module — which surfaced as
"media stopped unexpectedly" and an unrendered bar.
Switch to programs.waybar with our own settings: hyprland/workspaces,
clock, pulseaudio, network, tray. No IP, no CPU/RAM, no temp, no power
profile. Style is a thin transparent bar, white-on-grey workspace
numbers, FiraMono Nerd Font for the volume/network glyphs.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-11 10:53:59 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
style = ''
|
|
|
|
|
* {
|
|
|
|
|
font-family: "FiraMono Nerd Font", monospace;
|
|
|
|
|
font-size: 13px;
|
|
|
|
|
min-height: 0;
|
|
|
|
|
border: none;
|
|
|
|
|
border-radius: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
window#waybar {
|
2026-05-11 19:56:05 +01:00
|
|
|
background: alpha(@base00, 0.82);
|
|
|
|
|
color: @base05;
|
hyprland: replace bundled waybar config with a minimal Hyprland one
The bundled waybar config assumes sway and pulls in modules that don't
apply here (battery, backlight, sway/*), tries to read /dev/input/* the
user can't open, and crashes the media module — which surfaced as
"media stopped unexpectedly" and an unrendered bar.
Switch to programs.waybar with our own settings: hyprland/workspaces,
clock, pulseaudio, network, tray. No IP, no CPU/RAM, no temp, no power
profile. Style is a thin transparent bar, white-on-grey workspace
numbers, FiraMono Nerd Font for the volume/network glyphs.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-11 10:53:59 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#workspaces {
|
|
|
|
|
margin-left: 6px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#workspaces button {
|
|
|
|
|
padding: 0 8px;
|
2026-05-11 19:56:05 +01:00
|
|
|
color: @base03;
|
hyprland: replace bundled waybar config with a minimal Hyprland one
The bundled waybar config assumes sway and pulls in modules that don't
apply here (battery, backlight, sway/*), tries to read /dev/input/* the
user can't open, and crashes the media module — which surfaced as
"media stopped unexpectedly" and an unrendered bar.
Switch to programs.waybar with our own settings: hyprland/workspaces,
clock, pulseaudio, network, tray. No IP, no CPU/RAM, no temp, no power
profile. Style is a thin transparent bar, white-on-grey workspace
numbers, FiraMono Nerd Font for the volume/network glyphs.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-11 10:53:59 +01:00
|
|
|
background: transparent;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#workspaces button.active {
|
2026-05-11 19:56:05 +01:00
|
|
|
color: @base05;
|
hyprland: replace bundled waybar config with a minimal Hyprland one
The bundled waybar config assumes sway and pulls in modules that don't
apply here (battery, backlight, sway/*), tries to read /dev/input/* the
user can't open, and crashes the media module — which surfaced as
"media stopped unexpectedly" and an unrendered bar.
Switch to programs.waybar with our own settings: hyprland/workspaces,
clock, pulseaudio, network, tray. No IP, no CPU/RAM, no temp, no power
profile. Style is a thin transparent bar, white-on-grey workspace
numbers, FiraMono Nerd Font for the volume/network glyphs.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-11 10:53:59 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#workspaces button:hover {
|
2026-05-11 19:56:05 +01:00
|
|
|
background: alpha(@base05, 0.08);
|
|
|
|
|
color: @base05;
|
hyprland: replace bundled waybar config with a minimal Hyprland one
The bundled waybar config assumes sway and pulls in modules that don't
apply here (battery, backlight, sway/*), tries to read /dev/input/* the
user can't open, and crashes the media module — which surfaced as
"media stopped unexpectedly" and an unrendered bar.
Switch to programs.waybar with our own settings: hyprland/workspaces,
clock, pulseaudio, network, tray. No IP, no CPU/RAM, no temp, no power
profile. Style is a thin transparent bar, white-on-grey workspace
numbers, FiraMono Nerd Font for the volume/network glyphs.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-11 10:53:59 +01:00
|
|
|
box-shadow: none;
|
|
|
|
|
text-shadow: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#clock {
|
2026-05-11 19:56:05 +01:00
|
|
|
color: @base05;
|
hyprland: replace bundled waybar config with a minimal Hyprland one
The bundled waybar config assumes sway and pulls in modules that don't
apply here (battery, backlight, sway/*), tries to read /dev/input/* the
user can't open, and crashes the media module — which surfaced as
"media stopped unexpectedly" and an unrendered bar.
Switch to programs.waybar with our own settings: hyprland/workspaces,
clock, pulseaudio, network, tray. No IP, no CPU/RAM, no temp, no power
profile. Style is a thin transparent bar, white-on-grey workspace
numbers, FiraMono Nerd Font for the volume/network glyphs.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-11 10:53:59 +01:00
|
|
|
font-weight: 500;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#pulseaudio,
|
2026-05-14 10:15:56 +01:00
|
|
|
#tray {
|
hyprland: replace bundled waybar config with a minimal Hyprland one
The bundled waybar config assumes sway and pulls in modules that don't
apply here (battery, backlight, sway/*), tries to read /dev/input/* the
user can't open, and crashes the media module — which surfaced as
"media stopped unexpectedly" and an unrendered bar.
Switch to programs.waybar with our own settings: hyprland/workspaces,
clock, pulseaudio, network, tray. No IP, no CPU/RAM, no temp, no power
profile. Style is a thin transparent bar, white-on-grey workspace
numbers, FiraMono Nerd Font for the volume/network glyphs.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-11 10:53:59 +01:00
|
|
|
padding: 0 10px;
|
2026-05-11 19:56:05 +01:00
|
|
|
color: @base05;
|
hyprland: replace bundled waybar config with a minimal Hyprland one
The bundled waybar config assumes sway and pulls in modules that don't
apply here (battery, backlight, sway/*), tries to read /dev/input/* the
user can't open, and crashes the media module — which surfaced as
"media stopped unexpectedly" and an unrendered bar.
Switch to programs.waybar with our own settings: hyprland/workspaces,
clock, pulseaudio, network, tray. No IP, no CPU/RAM, no temp, no power
profile. Style is a thin transparent bar, white-on-grey workspace
numbers, FiraMono Nerd Font for the volume/network glyphs.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-11 10:53:59 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#pulseaudio.muted,
|
|
|
|
|
#network.disconnected {
|
2026-05-11 19:56:05 +01:00
|
|
|
color: @base03;
|
hyprland: replace bundled waybar config with a minimal Hyprland one
The bundled waybar config assumes sway and pulls in modules that don't
apply here (battery, backlight, sway/*), tries to read /dev/input/* the
user can't open, and crashes the media module — which surfaced as
"media stopped unexpectedly" and an unrendered bar.
Switch to programs.waybar with our own settings: hyprland/workspaces,
clock, pulseaudio, network, tray. No IP, no CPU/RAM, no temp, no power
profile. Style is a thin transparent bar, white-on-grey workspace
numbers, FiraMono Nerd Font for the volume/network glyphs.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-11 10:53:59 +01:00
|
|
|
}
|
|
|
|
|
|
2026-05-12 11:49:44 +01:00
|
|
|
#tray {
|
2026-05-14 10:15:56 +01:00
|
|
|
margin-right: 6px;
|
2026-05-12 11:49:44 +01:00
|
|
|
}
|
2026-05-13 12:47:02 +01:00
|
|
|
|
|
|
|
|
#custom-tray-toggle {
|
2026-05-13 13:06:50 +01:00
|
|
|
padding: 0 0px;
|
2026-05-13 12:47:02 +01:00
|
|
|
color: @base05;
|
|
|
|
|
}
|
2026-05-14 13:10:32 +01:00
|
|
|
|
|
|
|
|
#battery {
|
|
|
|
|
padding: 0 10px;
|
|
|
|
|
color: @base05;
|
|
|
|
|
}
|
|
|
|
|
#battery.warning { color: @base0A; }
|
|
|
|
|
#battery.critical { color: @base08; }
|
hyprland: replace bundled waybar config with a minimal Hyprland one
The bundled waybar config assumes sway and pulls in modules that don't
apply here (battery, backlight, sway/*), tries to read /dev/input/* the
user can't open, and crashes the media module — which surfaced as
"media stopped unexpectedly" and an unrendered bar.
Switch to programs.waybar with our own settings: hyprland/workspaces,
clock, pulseaudio, network, tray. No IP, no CPU/RAM, no temp, no power
profile. Style is a thin transparent bar, white-on-grey workspace
numbers, FiraMono Nerd Font for the volume/network glyphs.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-11 10:53:59 +01:00
|
|
|
'';
|
|
|
|
|
};
|
2026-05-10 20:03:43 +01:00
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
}
|