From 527fda5af30768d5415cd79c2e50d4ac89b1c10b Mon Sep 17 00:00:00 2001 From: quirinecker Date: Fri, 3 Apr 2026 20:07:44 +0200 Subject: [PATCH] added noctalia to my configuration. also disabled hyprpanel. have to port to laptop still though --- flake.nix | 7 + homemanager/hyprland/hyprland.conf | 14 +- homemanager/noctalia.nix | 19 + homemanager/noctalia/config.json | 728 +++++++++++++++++++++++++++++ 4 files changed, 763 insertions(+), 5 deletions(-) create mode 100644 homemanager/noctalia.nix create mode 100644 homemanager/noctalia/config.json diff --git a/flake.nix b/flake.nix index c0ee0d9..32b48dd 100644 --- a/flake.nix +++ b/flake.nix @@ -26,6 +26,11 @@ url = "github:Thunderbottom/nix-options-doc"; inputs.nixpkgs.follows = "nixpkgs"; }; + + noctalia = { + url = "github:noctalia-dev/noctalia-shell"; + inputs.nixpkgs.follows = "nixpkgs"; + }; }; outputs = @@ -49,6 +54,7 @@ ./homemanager/tmux.nix ./homemanager/utilities.nix ./homemanager/walker.nix + ./homemanager/noctalia.nix ./homemanager/terminal_emulators/ghostty.nix ./homemanager/terminal_emulators/kitty.nix ./homemanager/terminal_emulators/wezterm.nix @@ -57,6 +63,7 @@ externalModules = [ inputs.walker.homeManagerModules.default inputs.zen-browser.homeModules.beta + inputs.noctalia.homeModules.default ]; in { diff --git a/homemanager/hyprland/hyprland.conf b/homemanager/hyprland/hyprland.conf index b692d75..5d99d5a 100644 --- a/homemanager/hyprland/hyprland.conf +++ b/homemanager/hyprland/hyprland.conf @@ -33,9 +33,13 @@ $menu = walker ### AUTOSTART ### ################# -exec-once = nextcloud --background && steam -silent +exec-once = nextcloud --background & steam -silent exec-once = exec "$POOLKIT_AGENT" -exec-once = hyprpanel & hyprpaper & hypridle & elephant & walker --gapplication-service +exec-once = hyprpaper +exec-once = hypridle +exec-once = elephant +exec-once = walker --gapplication-service +exec-once = noctalia-shell exec-once = gsettings set org.gnome.desktop.interface cursor-theme 'Bibata-Modern-Classic' exec-once = gsettings set org.gnome.desktop.interface cursor-size 24 @@ -52,7 +56,7 @@ windowrule = match:class ^(Bitwarden)$, workspace 3 silent windowrule = match:class ^(discord)$, workspace 4 silent windowrule = match:class ^(thunderbird)$, workspace 4 silent windowrule = match:class ^(signal)$, workspace 4 silent -windowrule = match:class ^(Spotify)$, workspace 4 silent +windowrule = match:class ^(spotify)$, workspace 4 silent env = HYPRCURSOR_SIZE,28 @@ -214,9 +218,9 @@ $mainMod = SUPER # Sets "Windows" key as main modifier # Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more bind = $mainMod, T, exec, $terminal bind = $mainMod, B, exec, $browser -bind = $mainMod, I, exec, hyprpanel toggleWindow bar-0 +bind = $mainMod, I, exec, noctalia-shell ipc call bar toggle bind = $mainMod, C, killactive, -bind = $mainMod SHIFT, Q, exit, +bind = $mainMod SHIFT, Q, exec, noctalia-shell ipc call sessionMenu toggle bind = $mainMod, F, fullscreen, 1 bind = $mainMod ALT, F, fullscreen, 0 bind = $mainMod, E, exec, $fileManager diff --git a/homemanager/noctalia.nix b/homemanager/noctalia.nix new file mode 100644 index 0000000..faff72d --- /dev/null +++ b/homemanager/noctalia.nix @@ -0,0 +1,19 @@ +{ + lib, + config, + pkgs, + ... +}: +{ + options = { + modules.noctalia.enable = lib.mkEnableOption "noctalia"; + }; + + config = lib.mkIf config.modules.noctalia.enable { + programs.noctalia-shell.enable = true; + programs.noctalia-shell.settings = + (builtins.fromJSON (builtins.readFile ./noctalia/config.json)).settings; + home.file."${config.home.homeDirectory}/Pictures/Wallpapers".source = ./backgrounds; + }; + +} diff --git a/homemanager/noctalia/config.json b/homemanager/noctalia/config.json new file mode 100644 index 0000000..cb9d73e --- /dev/null +++ b/homemanager/noctalia/config.json @@ -0,0 +1,728 @@ +{ + "settings": { + "settingsVersion": 59, + "bar": { + "barType": "floating", + "position": "left", + "monitors": [], + "density": "comfortable", + "showOutline": false, + "showCapsule": true, + "capsuleOpacity": 1, + "capsuleColorKey": "none", + "widgetSpacing": 6, + "contentPadding": 2, + "fontScale": 1, + "enableExclusionZoneInset": true, + "backgroundOpacity": 0.93, + "useSeparateOpacity": false, + "marginVertical": 4, + "marginHorizontal": 4, + "frameThickness": 8, + "frameRadius": 12, + "outerCorners": true, + "hideOnOverview": false, + "displayMode": "always_visible", + "autoHideDelay": 500, + "autoShowDelay": 150, + "showOnWorkspaceSwitch": true, + "widgets": { + "left": [ + { + "characterCount": 2, + "colorizeIcons": false, + "emptyColor": "secondary", + "enableScrollWheel": true, + "focusedColor": "primary", + "followFocusedScreen": false, + "fontWeight": "bold", + "groupedBorderOpacity": 1, + "hideUnoccupied": false, + "iconScale": 0.8, + "id": "Workspace", + "labelMode": "none", + "occupiedColor": "secondary", + "pillSize": 0.6, + "showApplications": false, + "showApplicationsHover": false, + "showBadge": true, + "showLabelsOnlyWhenOccupied": true, + "unfocusedIconsOpacity": 1 + }, + { + "compactMode": true, + "diskPath": "/", + "iconColor": "none", + "id": "SystemMonitor", + "showCpuCores": false, + "showCpuFreq": false, + "showCpuTemp": true, + "showCpuUsage": true, + "showDiskAvailable": false, + "showDiskUsage": false, + "showDiskUsageAsPercent": false, + "showGpuTemp": false, + "showLoadAverage": false, + "showMemoryAsPercent": false, + "showMemoryUsage": true, + "showNetworkStats": false, + "showSwapUsage": false, + "textColor": "none", + "useMonospaceFont": true, + "usePadding": false + }, + { + "colorizeIcons": false, + "hideMode": "hidden", + "id": "ActiveWindow", + "maxWidth": 145, + "scrollingMode": "hover", + "showIcon": true, + "showText": true, + "textColor": "none", + "useFixedWidth": false + } + ], + "center": [ + { + "colorName": "primary", + "hideWhenIdle": false, + "id": "AudioVisualizer", + "width": 200 + }, + { + "compactMode": false, + "hideMode": "hidden", + "hideWhenIdle": false, + "id": "MediaMini", + "maxWidth": 145, + "panelShowAlbumArt": true, + "scrollingMode": "hover", + "showAlbumArt": true, + "showArtistFirst": true, + "showProgressRing": true, + "showVisualizer": false, + "textColor": "none", + "useFixedWidth": false, + "visualizerType": "linear" + } + ], + "right": [ + { + "blacklist": [], + "chevronColor": "none", + "colorizeIcons": false, + "drawerEnabled": true, + "hidePassive": false, + "id": "Tray", + "pinned": [] + }, + { + "deviceNativePath": "__default__", + "displayMode": "graphic-clean", + "hideIfIdle": false, + "hideIfNotDetected": true, + "id": "Battery", + "showNoctaliaPerformance": false, + "showPowerProfiles": false + }, + { + "displayMode": "onhover", + "iconColor": "none", + "id": "Bluetooth", + "textColor": "none" + }, + { + "displayMode": "onhover", + "iconColor": "none", + "id": "Volume", + "middleClickCommand": "pwvucontrol || pavucontrol", + "textColor": "none" + }, + { + "applyToAllMonitors": false, + "displayMode": "onhover", + "iconColor": "none", + "id": "Brightness", + "textColor": "none" + }, + { + "colorizeDistroLogo": false, + "colorizeSystemIcon": "none", + "customIconPath": "", + "enableColorization": false, + "icon": "adjustments-horizontal", + "id": "ControlCenter", + "useDistroLogo": false + }, + { + "clockColor": "none", + "customFont": "", + "formatHorizontal": "HH:mm ddd, MMM dd", + "formatVertical": "HH mm - dd MM", + "id": "Clock", + "tooltipFormat": "HH:mm ddd, MMM dd", + "useCustomFont": false + }, + { + "hideWhenZero": false, + "hideWhenZeroUnread": false, + "iconColor": "none", + "id": "NotificationHistory", + "showUnreadBadge": true, + "unreadBadgeColor": "primary" + } + ] + }, + "mouseWheelAction": "none", + "reverseScroll": false, + "mouseWheelWrap": true, + "middleClickAction": "none", + "middleClickFollowMouse": false, + "middleClickCommand": "", + "rightClickAction": "controlCenter", + "rightClickFollowMouse": true, + "rightClickCommand": "", + "screenOverrides": [] + }, + "general": { + "avatarImage": "/home/quirinecker/.face", + "dimmerOpacity": 0.2, + "showScreenCorners": false, + "forceBlackScreenCorners": false, + "scaleRatio": 1, + "radiusRatio": 1, + "iRadiusRatio": 1, + "boxRadiusRatio": 1, + "screenRadiusRatio": 1, + "animationSpeed": 1, + "animationDisabled": false, + "compactLockScreen": false, + "lockScreenAnimations": false, + "lockOnSuspend": true, + "showSessionButtonsOnLockScreen": true, + "showHibernateOnLockScreen": false, + "enableLockScreenMediaControls": false, + "enableShadows": true, + "enableBlurBehind": true, + "shadowDirection": "bottom_right", + "shadowOffsetX": 2, + "shadowOffsetY": 3, + "language": "", + "allowPanelsOnScreenWithoutBar": true, + "showChangelogOnStartup": true, + "telemetryEnabled": false, + "enableLockScreenCountdown": true, + "lockScreenCountdownDuration": 10000, + "autoStartAuth": false, + "allowPasswordWithFprintd": false, + "clockStyle": "custom", + "clockFormat": "hh\\nmm", + "passwordChars": false, + "lockScreenMonitors": [], + "lockScreenBlur": 0, + "lockScreenTint": 0, + "keybinds": { + "keyUp": [ + "Up" + ], + "keyDown": [ + "Down" + ], + "keyLeft": [ + "Left" + ], + "keyRight": [ + "Right" + ], + "keyEnter": [ + "Return", + "Enter" + ], + "keyEscape": [ + "Esc" + ], + "keyRemove": [ + "Del" + ] + }, + "reverseScroll": false, + "smoothScrollEnabled": true + }, + "ui": { + "fontDefault": "Sans Serif", + "fontFixed": "monospace", + "fontDefaultScale": 1, + "fontFixedScale": 1, + "tooltipsEnabled": true, + "scrollbarAlwaysVisible": true, + "boxBorderEnabled": false, + "panelBackgroundOpacity": 0, + "translucentWidgets": false, + "panelsAttachedToBar": true, + "settingsPanelMode": "attached", + "settingsPanelSideBarCardStyle": true + }, + "location": { + "name": "Vienna", + "weatherEnabled": true, + "weatherShowEffects": true, + "weatherTaliaMascotAlways": false, + "useFahrenheit": false, + "use12hourFormat": false, + "showWeekNumberInCalendar": false, + "showCalendarEvents": true, + "showCalendarWeather": true, + "analogClockInCalendar": false, + "firstDayOfWeek": -1, + "hideWeatherTimezone": false, + "hideWeatherCityName": false, + "autoLocate": false + }, + "calendar": { + "cards": [ + { + "enabled": true, + "id": "calendar-header-card" + }, + { + "enabled": true, + "id": "calendar-month-card" + }, + { + "enabled": true, + "id": "weather-card" + } + ] + }, + "wallpaper": { + "enabled": true, + "overviewEnabled": false, + "directory": "/home/quirinecker/Pictures/Wallpapers", + "monitorDirectories": [], + "enableMultiMonitorDirectories": false, + "showHiddenFiles": false, + "viewMode": "single", + "setWallpaperOnAllMonitors": true, + "linkLightAndDarkWallpapers": true, + "fillMode": "crop", + "fillColor": "#000000", + "useSolidColor": false, + "solidColor": "#1a1a2e", + "automationEnabled": false, + "wallpaperChangeMode": "random", + "randomIntervalSec": 300, + "transitionDuration": 1500, + "transitionType": [ + "fade", + "disc", + "stripes", + "wipe", + "pixelate", + "honeycomb" + ], + "skipStartupTransition": false, + "transitionEdgeSmoothness": 0.05, + "panelPosition": "follow_bar", + "hideWallpaperFilenames": false, + "useOriginalImages": false, + "overviewBlur": 0.4, + "overviewTint": 0.6, + "useWallhaven": false, + "wallhavenQuery": "", + "wallhavenSorting": "relevance", + "wallhavenOrder": "desc", + "wallhavenCategories": "111", + "wallhavenPurity": "100", + "wallhavenRatios": "", + "wallhavenApiKey": "", + "wallhavenResolutionMode": "atleast", + "wallhavenResolutionWidth": "", + "wallhavenResolutionHeight": "", + "sortOrder": "name", + "favorites": [] + }, + "appLauncher": { + "enableClipboardHistory": false, + "autoPasteClipboard": false, + "enableClipPreview": true, + "clipboardWrapText": true, + "enableClipboardSmartIcons": true, + "enableClipboardChips": true, + "clipboardWatchTextCommand": "wl-paste --type text --watch cliphist store", + "clipboardWatchImageCommand": "wl-paste --type image --watch cliphist store", + "position": "center", + "pinnedApps": [], + "sortByMostUsed": true, + "terminalCommand": "alacritty -e", + "customLaunchPrefixEnabled": false, + "customLaunchPrefix": "", + "viewMode": "list", + "showCategories": true, + "iconMode": "tabler", + "showIconBackground": false, + "enableSettingsSearch": true, + "enableWindowsSearch": true, + "enableSessionSearch": true, + "ignoreMouseInput": false, + "screenshotAnnotationTool": "", + "overviewLayer": false, + "density": "default" + }, + "controlCenter": { + "position": "close_to_bar_button", + "diskPath": "/", + "shortcuts": { + "left": [ + { + "id": "Network" + }, + { + "id": "Bluetooth" + }, + { + "id": "WallpaperSelector" + }, + { + "id": "NoctaliaPerformance" + } + ], + "right": [ + { + "id": "Notifications" + }, + { + "id": "PowerProfile" + }, + { + "id": "KeepAwake" + }, + { + "id": "NightLight" + } + ] + }, + "cards": [ + { + "enabled": true, + "id": "profile-card" + }, + { + "enabled": true, + "id": "shortcuts-card" + }, + { + "enabled": true, + "id": "audio-card" + }, + { + "enabled": false, + "id": "brightness-card" + }, + { + "enabled": true, + "id": "weather-card" + }, + { + "enabled": true, + "id": "media-sysmon-card" + } + ] + }, + "systemMonitor": { + "cpuWarningThreshold": 80, + "cpuCriticalThreshold": 90, + "tempWarningThreshold": 80, + "tempCriticalThreshold": 90, + "gpuWarningThreshold": 80, + "gpuCriticalThreshold": 90, + "memWarningThreshold": 80, + "memCriticalThreshold": 90, + "swapWarningThreshold": 80, + "swapCriticalThreshold": 90, + "diskWarningThreshold": 80, + "diskCriticalThreshold": 90, + "diskAvailWarningThreshold": 20, + "diskAvailCriticalThreshold": 10, + "batteryWarningThreshold": 20, + "batteryCriticalThreshold": 5, + "enableDgpuMonitoring": false, + "useCustomColors": false, + "warningColor": "", + "criticalColor": "", + "externalMonitor": "resources || missioncenter || jdsystemmonitor || corestats || system-monitoring-center || gnome-system-monitor || plasma-systemmonitor || mate-system-monitor || ukui-system-monitor || deepin-system-monitor || pantheon-system-monitor" + }, + "noctaliaPerformance": { + "disableWallpaper": true, + "disableDesktopWidgets": true + }, + "dock": { + "enabled": false, + "position": "bottom", + "displayMode": "auto_hide", + "dockType": "floating", + "backgroundOpacity": 1, + "floatingRatio": 1, + "size": 1, + "onlySameOutput": true, + "monitors": [], + "pinnedApps": [], + "colorizeIcons": false, + "showLauncherIcon": false, + "launcherPosition": "end", + "launcherUseDistroLogo": false, + "launcherIcon": "", + "launcherIconColor": "none", + "pinnedStatic": false, + "inactiveIndicators": false, + "groupApps": false, + "groupContextMenuMode": "extended", + "groupClickAction": "cycle", + "groupIndicatorStyle": "dots", + "deadOpacity": 0.6, + "animationSpeed": 1, + "sitOnFrame": false, + "showDockIndicator": false, + "indicatorThickness": 3, + "indicatorColor": "primary", + "indicatorOpacity": 0.6 + }, + "network": { + "bluetoothRssiPollingEnabled": false, + "bluetoothRssiPollIntervalMs": 60000, + "networkPanelView": "wifi", + "wifiDetailsViewMode": "grid", + "bluetoothDetailsViewMode": "grid", + "bluetoothHideUnnamedDevices": false, + "disableDiscoverability": false, + "bluetoothAutoConnect": true + }, + "sessionMenu": { + "enableCountdown": true, + "countdownDuration": 10000, + "position": "center", + "showHeader": true, + "showKeybinds": true, + "largeButtonsStyle": true, + "largeButtonsLayout": "single-row", + "powerOptions": [ + { + "action": "lock", + "command": "", + "countdownEnabled": true, + "enabled": true, + "keybind": "1" + }, + { + "action": "suspend", + "command": "", + "countdownEnabled": true, + "enabled": true, + "keybind": "2" + }, + { + "action": "hibernate", + "command": "", + "countdownEnabled": true, + "enabled": true, + "keybind": "3" + }, + { + "action": "reboot", + "command": "", + "countdownEnabled": true, + "enabled": true, + "keybind": "4" + }, + { + "action": "logout", + "command": "", + "countdownEnabled": true, + "enabled": true, + "keybind": "5" + }, + { + "action": "shutdown", + "command": "", + "countdownEnabled": true, + "enabled": true, + "keybind": "6" + }, + { + "action": "rebootToUefi", + "command": "", + "countdownEnabled": true, + "enabled": true, + "keybind": "7" + }, + { + "action": "userspaceReboot", + "command": "", + "countdownEnabled": true, + "enabled": false, + "keybind": "" + } + ] + }, + "notifications": { + "enabled": true, + "enableMarkdown": false, + "density": "default", + "monitors": [], + "location": "top_right", + "overlayLayer": true, + "backgroundOpacity": 1, + "respectExpireTimeout": false, + "lowUrgencyDuration": 3, + "normalUrgencyDuration": 8, + "criticalUrgencyDuration": 15, + "clearDismissed": true, + "saveToHistory": { + "low": true, + "normal": true, + "critical": true + }, + "sounds": { + "enabled": false, + "volume": 0.5, + "separateSounds": false, + "criticalSoundFile": "", + "normalSoundFile": "", + "lowSoundFile": "", + "excludedApps": "discord,firefox,chrome,chromium,edge" + }, + "enableMediaToast": false, + "enableKeyboardLayoutToast": true, + "enableBatteryToast": true + }, + "osd": { + "enabled": true, + "location": "top_right", + "autoHideMs": 2000, + "overlayLayer": true, + "backgroundOpacity": 1, + "enabledTypes": [ + 0, + 1, + 2 + ], + "monitors": [] + }, + "audio": { + "volumeStep": 5, + "volumeOverdrive": false, + "spectrumFrameRate": 30, + "visualizerType": "mirrored", + "spectrumMirrored": true, + "mprisBlacklist": [], + "preferredPlayer": "", + "volumeFeedback": false, + "volumeFeedbackSoundFile": "" + }, + "brightness": { + "brightnessStep": 5, + "enforceMinimum": true, + "enableDdcSupport": false, + "backlightDeviceMappings": [] + }, + "colorSchemes": { + "useWallpaperColors": false, + "predefinedScheme": "Nord", + "darkMode": true, + "schedulingMode": "off", + "manualSunrise": "06:30", + "manualSunset": "18:30", + "generationMethod": "tonal-spot", + "monitorForColors": "", + "syncGsettings": true + }, + "templates": { + "activeTemplates": [], + "enableUserTheming": false + }, + "nightLight": { + "enabled": false, + "forced": false, + "autoSchedule": true, + "nightTemp": "4000", + "dayTemp": "6500", + "manualSunrise": "06:30", + "manualSunset": "18:30" + }, + "hooks": { + "enabled": false, + "wallpaperChange": "", + "darkModeChange": "", + "screenLock": "", + "screenUnlock": "", + "performanceModeEnabled": "", + "performanceModeDisabled": "", + "startup": "", + "session": "", + "colorGeneration": "" + }, + "plugins": { + "autoUpdate": false, + "notifyUpdates": true + }, + "idle": { + "enabled": false, + "screenOffTimeout": 600, + "lockTimeout": 660, + "suspendTimeout": 1800, + "fadeDuration": 5, + "screenOffCommand": "", + "lockCommand": "", + "suspendCommand": "", + "resumeScreenOffCommand": "", + "resumeLockCommand": "", + "resumeSuspendCommand": "", + "customCommands": "[]" + }, + "desktopWidgets": { + "enabled": false, + "overviewEnabled": true, + "gridSnap": false, + "gridSnapScale": false, + "monitorWidgets": [] + } + }, + "state": { + "doNotDisturb": false, + "noctaliaPerformanceMode": false, + "barVisible": true, + "openedPanel": "", + "lockScreenActive": false, + "wallpapers": { + "DP-2": "/home/quirinecker/Pictures/Wallpapers/qingce.jpg" + }, + "desktopWidgetsEditMode": false, + "display": { + "DP-2": { + "name": "DP-2", + "scale": 1, + "width": 5120, + "height": 1440, + "refresh_rate": 119.999, + "x": 0, + "y": 0, + "active_workspace": 1, + "vrr": false, + "focused": true + } + }, + "notificationsState": { + "lastSeenTs": 1775233681000 + }, + "changelogState": { + "lastSeenVersion": "v4.7.6" + }, + "colorSchemesList": { + "schemes": [], + "timestamp": 0 + }, + "ui": { + "settingsSidebarExpanded": true + } + } +}