fix: clone script
This commit is contained in:
parent
420ca309d9
commit
62a6893709
|
@ -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;
|
||||||
|
|
|
@ -23,7 +23,7 @@ in
|
||||||
rage
|
rage
|
||||||
nix
|
nix
|
||||||
nix-diff
|
nix-diff
|
||||||
nixpkgs-update
|
nix-update
|
||||||
];
|
];
|
||||||
commands = [
|
commands = [
|
||||||
{
|
{
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue