All my system configs and packages in one repo
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

leah/plasma/settings: better system tray settings

I love constantly making changes to plasma-manager!

+17 -41
+4 -4
flake.lock
··· 376 376 ] 377 377 }, 378 378 "locked": { 379 - "lastModified": 1714563971, 380 - "narHash": "sha256-4eqST81ihz+qFQ/XVKfMIEuV+Tpk2YKSP0HNKNBU9Us=", 379 + "lastModified": 1715117482, 380 + "narHash": "sha256-OJ2d6cwoEP37CYDMX5hs2Oe0ELroNNbU/nwI4w5BWmQ=", 381 381 "owner": "pluiedev", 382 382 "repo": "plasma-manager", 383 - "rev": "b138e3f06163acff75ad57a04a6e2a2c89c403fc", 383 + "rev": "7446cfaaf17d48487822085f00dcd1fae49d4746", 384 384 "type": "github" 385 385 }, 386 386 "original": { 387 387 "owner": "pluiedev", 388 - "ref": "panel-settings", 388 + "ref": "feat/systray-and-battery", 389 389 "repo": "plasma-manager", 390 390 "type": "github" 391 391 }
+1 -1
flake.nix
··· 73 73 nixos-hardware.url = "github:NixOS/nixos-hardware/master"; 74 74 75 75 plasma-manager = { 76 - url = "github:pluiedev/plasma-manager/panel-settings"; 76 + url = "github:pluiedev/plasma-manager/feat/systray-and-battery"; 77 77 inputs = { 78 78 home-manager.follows = "home-manager"; 79 79 nixpkgs.follows = "nixpkgs";
+12 -36
users/leah/presets/plasma/settings/panels.nix
··· 1 - {lib, ...}: { 1 + { 2 2 hm.programs.plasma.panels = let 3 3 base = { 4 4 hiding = "dodgewindows"; ··· 44 44 } 45 45 { 46 46 systemMonitor = { 47 - title = "GPU Usage"; 48 - sensors = [ 49 - { 50 - name = "gpu/gpu1/usage"; 51 - color = "180,190,254"; # Lavender 52 - } 53 - ]; 54 - totalSensors = ["gpu/gpu1/usage"]; 55 - textOnlySensors = ["gpu/gpu1/temperature" "gpu/gpu1/frequency" "gpu/gpu1/power" "gpu/gpu1/usedVram" "gpu/gpu1/totalVram"]; 56 - }; 57 - } 58 - { 59 - systemMonitor = { 60 47 title = "Memory Usage"; 61 48 sensors = [ 62 49 { ··· 88 75 } 89 76 { 90 77 alignment = "right"; 91 - widgets = ["org.kde.plasma.systemtray"]; 92 - 93 - extraSettings = '' 94 - // Yes, trying to customize the system tray is fucking cursed. 95 - 96 - // Why can't we just use panelWidgets["org.kde.plasma.systemtray"], you say? 97 - // Well, that's because SOMEHOW the widget you get from that is DIFFERENT 98 - // from the REAL system tray widget! *sigh* 99 - 100 - for (const wid of panel.widgets(["org.kde.plasma.systemtray"])) { 101 - const tray = desktopById(wid.readConfig("SystrayContainmentId")); 102 - if (!tray) continue; // if somehow the containment doesn't exist 103 - 104 - tray.writeConfig("hiddenItems", [ 105 - "org.kde.plasma.brightness", 106 - "org.kde.plasma.clipboard", 107 - ]); 108 - 109 - // At least customizing subwidgets is blissfully simple. 110 - const battery = tray.addWidget("org.kde.plasma.battery"); 111 - battery.writeConfig("showPercentage", true); 78 + widgets = [ 79 + { 80 + systemTray = { 81 + icons.scaleToFit = true; 82 + items = { 83 + shown = ["org.kde.plasma.battery"]; 84 + hidden = ["org.kde.plasma.brightness" "org.kde.plasma.clipboard"]; 85 + configs.battery.showPercentage = true; 86 + }; 87 + }; 112 88 } 113 - ''; 89 + ]; 114 90 } 115 91 ]; 116 92 }