diff options
author | sternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org> | 2021-02-09 11:08:36 +0100 |
---|---|---|
committer | sternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org> | 2021-02-09 11:08:36 +0100 |
commit | 85a6cdcd9270708e2ae88485cbf243b620c9cb0a (patch) | |
tree | 5db7f59aca973cb306c0ceb84f68dc308f7c5626 /machines/sternenseemann | |
parent | 1a2fbe153f85f3cffea77b7ae3064ec35eb4dcdc (diff) |
machines/sternenseemann/wolfgang: fix screenshot wrapper script
Couldn't figure out how to pass a string from a command which contains spaces from a variable to a command without the string getting split into two arguments, so nested shell it is.
Diffstat (limited to 'machines/sternenseemann')
-rw-r--r-- | machines/sternenseemann/desktop-sway.nix | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/machines/sternenseemann/desktop-sway.nix b/machines/sternenseemann/desktop-sway.nix index 5799177a..ea1f4483 100644 --- a/machines/sternenseemann/desktop-sway.nix +++ b/machines/sternenseemann/desktop-sway.nix @@ -23,11 +23,12 @@ let screenshot = pkgs.writers.writeDashBin "screenshot" '' if [ "$1" != "full" ]; then - additionalOpts='-g "$(${bins.slurp})"' + additionalOpts="-g '$(${bins.slurp})'" + else shift fi - ${bins.grim} $additionalOpts -c -t png + $SHELL -c "${bins.grim} $additionalOpts $@" ''; defaultFont = "Bitstream Vera Sans Mono"; |