fix: clone script
This commit is contained in:
parent
420ca309d9
commit
62a6893709
|
@ -164,6 +164,7 @@
|
|||
inherit system;
|
||||
config.allowUnfree = true;
|
||||
};
|
||||
packages = pkgs;
|
||||
|
||||
topology = import nix-topology {
|
||||
inherit pkgs;
|
||||
|
|
|
@ -23,7 +23,7 @@ in
|
|||
rage
|
||||
nix
|
||||
nix-diff
|
||||
nixpkgs-update
|
||||
nix-update
|
||||
];
|
||||
commands = [
|
||||
{
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue