From 6d70fcf392d9e44dffc47b55bb45f421a241fd20 Mon Sep 17 00:00:00 2001 From: Mohamed Chrayed Date: Wed, 11 Mar 2026 14:13:27 +0100 Subject: [PATCH] gaming mode desktop shortcut --- modules/kde/usr/plasma-deck.nix | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/modules/kde/usr/plasma-deck.nix b/modules/kde/usr/plasma-deck.nix index 474cf27..b31228f 100644 --- a/modules/kde/usr/plasma-deck.nix +++ b/modules/kde/usr/plasma-deck.nix @@ -3,13 +3,15 @@ flake.homeModules.kde-usr-plasma-deck = { config, ... }: { - xdg.desktopEntries."return-to-gaming-mode" = { - name = "Spielmodus"; - exec = "qdbus org.kde.Shutdown /Shutdown org.kde.Shutdown.logout"; - icon = "steam"; - terminal = false; - categories = [ "Game" ]; - }; + home.file."Desktop/Spielmodus.desktop".text = '' + [Desktop Entry] + Name=Spielmodus + Exec=qdbus org.kde.Shutdown /Shutdown org.kde.Shutdown.logout + Icon=steam + Terminal=false + Type=Application + Categories=Game; + ''; imports = [ inputs.plasma-manager.homeModules.plasma-manager ]; home.file."Code/.directory".source = ./dotfiles/code-folder; home.file.".config/haruna/haruna.conf".source = ./dotfiles/haruna-config;