From 979837526394a70ca4053a3ccdd64ae52a42c905 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20R=C3=B6ger?= Date: Sun, 4 May 2025 00:21:47 +0200 Subject: [PATCH] Home Gen519 @ 2025-05-04-00:21 by jonas@comfy-station --- modules/home/plasma.nix | 144 +++++----------------------------------- 1 file changed, 16 insertions(+), 128 deletions(-) diff --git a/modules/home/plasma.nix b/modules/home/plasma.nix index e192c31..cb854c3 100644 --- a/modules/home/plasma.nix +++ b/modules/home/plasma.nix @@ -27,6 +27,8 @@ in { home.packages = [ pkgs.layan-kde pkgs.kdePackages.qtstyleplugin-kvantum + pkgs.tela-circle-icon-theme + pkgs.nordzy-cursor-theme ]; programs.konsole = { @@ -67,7 +69,20 @@ in { programs.plasma = { enable = true; - overrideConfig = true; + + # + # Some high-level settings: + # + workspace = { + clickItemTo = "select"; + lookAndFeel = "com.github.vinceliuice.Layan"; + cursor = { + theme = "Nordzy-cursors"; + size = 24; + }; + iconTheme = "Tela-circle-nord"; + wallpaper = "/home/jonas/.local/share/wallpaper/nord.png"; + }; hotkeys.commands."launch-konsole" = { name = "Launch Konsole"; @@ -75,127 +90,6 @@ in { command = "konsole"; }; - panels = [ - # Windows-like panel at the bottom - { - location = "bottom"; - widgets = [ - # Or you can configure the widgets by adding the widget-specific options for it. - # See modules/widgets for supported widgets and options for these widgets. - # For example: - { - kickoff = { - sortAlphabetically = true; - icon = "nix-snowflake-white"; - }; - } - # If no configuration is needed, specifying only the name of the - # widget will add them with the default configuration. - "org.kde.plasma.marginsseparator" - # If you need configuration for your widget, instead of specifying the - # the keys and values directly using the config attribute as shown - # above, plasma-manager also provides some higher-level interfaces for - # configuring the widgets. See modules/widgets for supported widgets - # and options for these widgets. The widgets below shows two examples - # of usage, one where we add a digital clock, setting 12h time and - # first day of the week to Sunday and another adding a systray with - # some modifications in which entries to show. - { - digitalClock = { - calendar.firstDayOfWeek = "monday"; - time.format = "24h"; - }; - } - { - systemTray.items = { - # We explicitly show bluetooth and battery - shown = [ - "org.kde.plasma.battery" - "org.kde.plasma.bluetooth" - ]; - # And explicitly hide networkmanagement and volume - hidden = [ - "org.kde.plasma.networkmanagement" - "org.kde.plasma.volume" - ]; - }; - } - ]; - hiding = "autohide"; - } - # Application name, Global menu and Song information and playback controls at the top - { - location = "top"; - height = 26; - widgets = [ - { - applicationTitleBar = { - behavior = { - activeTaskSource = "activeTask"; - }; - layout = { - elements = ["windowTitle"]; - horizontalAlignment = "left"; - showDisabledElements = "deactivated"; - verticalAlignment = "center"; - }; - overrideForMaximized.enable = false; - titleReplacements = [ - { - type = "regexp"; - originalTitle = "^Brave Web Browser$"; - newTitle = "Brave"; - } - { - type = "regexp"; - originalTitle = ''\\bDolphin\\b''; - newTitle = "File manager"; - } - ]; - windowTitle = { - font = { - bold = false; - fit = "fixedSize"; - size = 12; - }; - hideEmptyTitle = true; - margins = { - bottom = 0; - left = 10; - right = 5; - top = 0; - }; - source = "appName"; - }; - }; - } - "org.kde.plasma.appmenu" - "org.kde.plasma.panelspacer" - { - plasmusicToolbar = { - panelIcon = { - albumCover = { - useAsIcon = false; - radius = 8; - }; - icon = "view-media-track"; - }; - playbackSource = "auto"; - musicControls.showPlaybackControls = true; - songText = { - displayInSeparateLines = true; - maximumWidth = 640; - scrolling = { - behavior = "alwaysScroll"; - speed = 3; - }; - }; - }; - } - ]; - } - ]; - kwin = { edgeBarrier = 0; # Disables the edge-barriers introduced in plasma 6.1 cornerBarrier = false; @@ -261,12 +155,6 @@ in { # Forces kde to not change this value (even through the settings app). immutable = true; }; - kscreenlockerrc = { - Greeter.WallpaperPlugin = "org.kde.potd"; - # To use nested groups use / as a separator. In the below example, - # Provider will be added to [Greeter][Wallpaper][org.kde.potd][General]. - "Greeter/Wallpaper/org.kde.potd/General".Provider = "bing"; - }; }; }; };