fix: clone script

This commit is contained in:
Patrick 2024-06-19 21:17:47 +02:00
parent 420ca309d9
commit 62a6893709
Signed by: patrick
GPG key ID: 451F95EFB8BECD0F
3 changed files with 3 additions and 2 deletions

View file

@ -164,6 +164,7 @@
inherit system;
config.allowUnfree = true;
};
packages = pkgs;
topology = import nix-topology {
inherit pkgs;

View file

@ -23,7 +23,7 @@ in
rage
nix
nix-diff
nixpkgs-update
nix-update
];
commands = [
{

View file

@ -10,7 +10,7 @@ writeShellApplication {
runtimeInputs = [ps procps xdotool jq];
text = ''
if [[ $XDG_CURRENT_DESKTOP == sway ]]; then
if [[ ''${XDG_CURRENT_DESKTOP-} == sway ]]; then
PAREN=$(swaymsg -t get_tree | jq '.. | select(.type?) | select(.focused==true).pid')
else
PAREN=$(xdotool getwindowfocus getwindowpid)