rofi: use --scope
authorJulien Moutinho <julm+julm-nix@sourcephile.fr>
Tue, 24 Jan 2023 02:45:06 +0000 (03:45 +0100)
committerJulien Moutinho <julm+julm-nix@sourcephile.fr>
Tue, 24 Jan 2023 02:45:06 +0000 (03:45 +0100)
home-manager/profiles/xmonad/xmonad.hs

index 59da172a793537c7bd578455aa12afd9147f7e0e..6f772bf8fea7d82192dc2c767596005c9b3141cb 100644 (file)
@@ -54,7 +54,7 @@ myKeys
   -- Start a terminal
     ((modMask, xK_Return), spawn $ XMonad.terminal conf)
   -- Launch a program
-  , ((modMask, xK_Menu), spawn "exec rofi -show run -no-disable-history -run-command \"bash -c 'systemd-run --user -E PATH=\\\"\\$PATH\\\" --unit=app-org.rofi.\\$(systemd-escape \\\"{cmd}\\\")@\\$RANDOM -p CollectMode=inactive-or-failed {cmd}'\"")
+  , ((modMask, xK_Menu), spawn "exec rofi -show run -no-disable-history -run-command \"bash -c 'systemd-run --user --scope --unit=app-org.rofi.\\$(systemd-escape \\\"{cmd}\\\")-\\$RANDOM -p CollectMode=inactive-or-failed {cmd}'\"")
   -- Browse the filesystem
   , ((modMask, xK_BackSpace), spawn "systemd-run --user -E PATH=\"$PATH\" --unit=app-org.rofi.caja@$RANDOM -p CollectMode=inactive-or-failed caja")