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; inherit system;
config.allowUnfree = true; config.allowUnfree = true;
}; };
packages = pkgs;
topology = import nix-topology { topology = import nix-topology {
inherit pkgs; inherit pkgs;

View file

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

View file

@ -10,7 +10,7 @@ writeShellApplication {
runtimeInputs = [ps procps xdotool jq]; runtimeInputs = [ps procps xdotool jq];
text = '' 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') PAREN=$(swaymsg -t get_tree | jq '.. | select(.type?) | select(.focused==true).pid')
else else
PAREN=$(xdotool getwindowfocus getwindowpid) PAREN=$(xdotool getwindowfocus getwindowpid)