From 2cd459bd04c9443994bec1325456976346eeffe3 Mon Sep 17 00:00:00 2001 From: Grey Jones Date: Fri, 3 Jul 2026 04:41:54 +0100 Subject: [PATCH] plasma theming, pinned applications --- .gitmodules | 3 + assets/OxygenDarkEdit.colors | 117 +++++++++++++++++++++++++++++++++++ assets/expose-air | 1 + assets/oxygenrc | 4 ++ hosts/nixos-vm/home.nix | 12 +++- hosts/nixos-vm/plasma.nix | 94 +++++++++++++++++++++++++++- 6 files changed, 227 insertions(+), 4 deletions(-) create mode 100644 .gitmodules create mode 100755 assets/OxygenDarkEdit.colors create mode 160000 assets/expose-air create mode 100644 assets/oxygenrc diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..15754aa --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "assets/expose-air"] + path = assets/expose-air + url = https://www.opencode.net/phob1an/expose-air.git diff --git a/assets/OxygenDarkEdit.colors b/assets/OxygenDarkEdit.colors new file mode 100755 index 0000000..2ef1191 --- /dev/null +++ b/assets/OxygenDarkEdit.colors @@ -0,0 +1,117 @@ +[ColorEffects:Disabled] +Color=56,56,56 +ColorAmount=0 +ColorEffect=0 +ContrastAmount=0.65 +ContrastEffect=1 +IntensityAmount=0.1 +IntensityEffect=2 + +[ColorEffects:Inactive] +ChangeSelectionColor=true +Color=112,111,110 +ColorAmount=-0.9 +ColorEffect=1 +ContrastAmount=0.25 +ContrastEffect=2 +Enable=true +IntensityAmount=0 +IntensityEffect=0 + +[Colors:Button] +BackgroundAlternate=50,49,48 +BackgroundNormal=57,53,50 +DecorationFocus=255,217,190 +DecorationHover=255,229,208 +ForegroundActive=146,76,157 +ForegroundInactive=137,136,135 +ForegroundLink=0,87,174 +ForegroundNegative=191,3,3 +ForegroundNeutral=176,128,0 +ForegroundNormal=255,234,225 +ForegroundPositive=0,110,40 +ForegroundVisited=100,74,155 + +[Colors:Complementary] +BackgroundAlternate=61,55,53 +BackgroundNormal=24,21,19 +DecorationFocus=58,167,221 +DecorationHover=110,214,255 +ForegroundActive=255,128,224 +ForegroundInactive=137,136,135 +ForegroundLink=88,172,255 +ForegroundNegative=191,3,3 +ForegroundNeutral=176,128,0 +ForegroundNormal=231,253,255 +ForegroundPositive=0,110,40 +ForegroundVisited=150,111,232 + +[Colors:Selection] +BackgroundAlternate=62,138,204 +BackgroundNormal=60,158,211 +DecorationFocus=240,213,194 +DecorationHover=255,229,208 +ForegroundActive=108,36,119 +ForegroundInactive=58,52,47 +ForegroundLink=0,49,110 +ForegroundNegative=156,14,14 +ForegroundNeutral=255,221,0 +ForegroundNormal=38,36,35 +ForegroundPositive=128,255,128 +ForegroundVisited=69,40,134 + +[Colors:Tooltip] +BackgroundAlternate=49,45,38 +BackgroundNormal=24,21,19 +DecorationFocus=240,213,194 +DecorationHover=255,229,208 +ForegroundActive=255,128,224 +ForegroundInactive=137,136,135 +ForegroundLink=88,172,255 +ForegroundNegative=191,3,3 +ForegroundNeutral=176,128,0 +ForegroundNormal=255,242,228 +ForegroundPositive=0,110,40 +ForegroundVisited=150,111,232 + +[Colors:View] +BackgroundAlternate=33,31,30 +BackgroundNormal=30,29,29 +DecorationFocus=240,213,194 +DecorationHover=255,229,208 +ForegroundActive=146,76,157 +ForegroundInactive=137,136,135 +ForegroundLink=0,87,174 +ForegroundNegative=191,3,3 +ForegroundNeutral=176,128,0 +ForegroundNormal=255,230,222 +ForegroundPositive=0,110,40 +ForegroundVisited=100,74,155 + +[Colors:Window] +BackgroundAlternate=31,31,31 +BackgroundNormal=38,36,35 +DecorationFocus=240,213,194 +DecorationHover=255,229,208 +ForegroundActive=146,76,157 +ForegroundInactive=137,136,135 +ForegroundLink=0,87,174 +ForegroundNegative=191,3,3 +ForegroundNeutral=176,128,0 +ForegroundNormal=255,232,223 +ForegroundPositive=0,110,40 +ForegroundVisited=100,74,155 + +[General] +Name=Oxygen Dark edit +shadeSortColumn=true + +[KDE] +contrast=7 + +[WM] +activeBackground=56,51,49 +activeBlend=0,0,0 +activeForeground=59,57,55 +inactiveBackground=24,23,23 +inactiveForeground=218,206,195 diff --git a/assets/expose-air b/assets/expose-air new file mode 160000 index 0000000..a1a4624 --- /dev/null +++ b/assets/expose-air @@ -0,0 +1 @@ +Subproject commit a1a46244c939969087a0659ce0ac61cc62d5a75a diff --git a/assets/oxygenrc b/assets/oxygenrc new file mode 100644 index 0000000..ae42bcc --- /dev/null +++ b/assets/oxygenrc @@ -0,0 +1,4 @@ +[ActiveShadow] +InnerColor=60,158,211 +ShadowSize=10 +UseOuterColor=false diff --git a/hosts/nixos-vm/home.nix b/hosts/nixos-vm/home.nix index 8e68f98..eb3a2fc 100644 --- a/hosts/nixos-vm/home.nix +++ b/hosts/nixos-vm/home.nix @@ -15,14 +15,22 @@ home.stateVersion = "26.05"; home.packages = [ - pkgs.bibata-cursors - pkgs.papirus-icon-theme pkgs.steam pkgs.equibop pkgs.prismlauncher pkgs.obsidian pkgs.github-desktop pkgs.vscode + pkgs.thunderbird + pkgs.spotify + pkgs.unityhub + pkgs.godot + pkgs.jetbrains.clion + pkgs.jetbrains.idea + pkgs.obs-studio + pkgs.proton-vpn + pkgs.ente-auth + pkgs.lact ]; programs.git = { diff --git a/hosts/nixos-vm/plasma.nix b/hosts/nixos-vm/plasma.nix index 85572a6..a22a500 100644 --- a/hosts/nixos-vm/plasma.nix +++ b/hosts/nixos-vm/plasma.nix @@ -1,7 +1,39 @@ { pkgs, + lib, ... }: { + home.packages = [ + pkgs.bibata-cursors + pkgs.papirus-icon-theme + pkgs.kdePackages.oxygen + pkgs.kdePackages.oxygen-sounds + ]; + + home.activation = { + linkThemingAssets = lib.hm.dag.entryAfter ["writeBoundary"] '' + #!/bin/bash + if [ ! -d /home/grey/.local/share/wallpapers/ExposeAir ]; then + mkdir -p /home/grey/.local/share/wallpapers + ln -s /home/grey/nixos/assets/expose-air/wallpapers/ExposeAir /home/grey/.local/share/wallpapers/ExposeAir + fi + + if [ ! -f /home/grey/.local/share/color-schemes/OxygenDarkEdit.colors ]; then + mkdir -p /home/grey/.local/share/color-schemes + ln -s /home/grey/nixos/assets/OxygenDarkEdit.colors /home/grey/.local/share/color-schemes/OxygenDarkEdit.colors + fi + + if [ ! -f /home/grey/.config/oxygenrc ]; then + ln -s /home/grey/nixos/assets/oxygenrc /home/grey/.config/oxygenrc + fi + + if [ ! -d /home/grey/.local/share/plasma/desktoptheme/exposeair ]; then + mkdir -p /home/grey/.local/share/plasma/desktoptheme + ln -s /home/grey/nixos/assets/expose-air/desktoptheme/exposeair /home/grey/.local/share/plasma/desktoptheme/exposeair + fi + ''; + }; + programs.plasma = { enable = true; overrideConfig = true; @@ -10,9 +42,19 @@ workspace = { clickItemTo = "select"; - lookAndFeel = "org.kde.breezedark.desktop"; - cursor.theme = "Bibata-Modern-Ice"; + colorScheme = "OxygenDarkEdit"; + cursor = { + size = 22; + theme = "Bibata-Modern-Ice"; + }; iconTheme = "Papirus-Dark"; + theme = "exposeair"; + wallpaper = "/home/grey/.local/share/wallpapers/ExposeAir/contents/images/2560x1440.png"; + windowDecorations = { + library = "org.kde.oxygen"; + theme = "oxygen"; + }; + soundTheme = "oxygen"; }; hotkeys.commands."rebuild-flake" = { @@ -34,5 +76,53 @@ "services/kitty.desktop"."_launch" = "Meta+Return"; }; + + panels = [ + { + location = "bottom"; + widgets = [ + { + name = "org.kde.plasma.kickoff"; + config = { + General = { + icon = "nix-snowflake"; + }; + }; + } + { + name = "org.kde.plasma.icontasks"; + config = { + iconsOnly = true; + launchers = [ + "applications:zen.desktop" + "applications:thunderbird.desktop" + "applications:org.kde.dolphin.desktop" + "applications:equibop.desktop" + "applications:spotify.desktop" + "applications:steam.desktop" + "applications:org.prismlauncher.PrismLauncher.desktop" + "applications:obsidian.desktop" + "applications:github-desktop.desktop" + "applications:unityhub.desktop" + "applications:org.godotengine.Godot4.7.desktop" + "applications:code.desktop" + "applications:idea.desktop" + "applications:clion.desktop" + "applications:com.obsproject.Studio.desktop" + "applications:proton.vpn.app.gtk.desktop" + "applications:systemsettings.desktop" + "applications:io.ente.auth.desktop" + "applications:io.github.ilya_zlobintsev.LACT.desktop" + ]; + }; + } + "org.kde.plasma.marginsseparator" + "org.kde.plasma.systemtray" + "org.kde.plasma.digitalclock" + "org.kde.plasma.showdesktop" + ]; + height = 48; + } + ]; }; }