diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-02-22 14:25:41 +1100 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-02-22 14:25:41 +1100 |
| commit | 669eaa61cbead28957c0b541212e05a8ca8c7a7f (patch) | |
| tree | 064b476d7757cd8abb19faddff67defba0c538bf /screenshot.fish | |
| parent | readme: update help message (diff) | |
| download | caelestia-cli-669eaa61cbead28957c0b541212e05a8ca8c7a7f.tar.gz caelestia-cli-669eaa61cbead28957c0b541212e05a8ca8c7a7f.tar.bz2 caelestia-cli-669eaa61cbead28957c0b541212e05a8ca8c7a7f.zip | |
install: better install + use data and state
Don't complete remove repos, use git pull instead
Use XDG_DATA_HOME and XDG_STATE_HOME
Diffstat (limited to 'screenshot.fish')
| -rwxr-xr-x | screenshot.fish | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/screenshot.fish b/screenshot.fish index a0f6177..7363631 100755 --- a/screenshot.fish +++ b/screenshot.fish @@ -2,8 +2,8 @@ . (dirname (status filename))/util.fish -mkdir -p "$CACHE/screenshots" -set -l tmp_file "$CACHE/screenshots/$(date +'%Y%m%d%H%M%S')" +mkdir -p "$C_CACHE/screenshots" +set -l tmp_file "$C_CACHE/screenshots/$(date +'%Y%m%d%H%M%S')" grim $argv $tmp_file; and wl-copy < $tmp_file; or exit 1 set -l action (notify-send -i 'image-x-generic-symbolic' -h "STRING:image-path:$tmp_file" \ |