Blu*_*Ice 9 lubuntu directory scrot-command
使用时scrot,我希望文件出现~/Pictures/Screenshots/在我的主目录中而不是出现在我的主目录中。
scrot -e 'mv $f ~/Pictures/Screenshots/'
Run Code Online (Sandbox Code Playgroud)
工作正常,但我希望不必使用该-e标志,因为我希望每次都将文件输出放在我的屏幕截图文件夹中。我可以scrot总是输出 in ~/Pictures/Screenshots/,以便
scrot
Run Code Online (Sandbox Code Playgroud)
会自动转储该目录中的文件吗?
DK *_*ose 11
把这一行放在~/.bash_aliases. 您可能需要关闭终端并重新打开它以使新别名起作用:
alias myscrot='scrot ~/Pictures/Screenshots/%b%d::%H%M%S.png'
Run Code Online (Sandbox Code Playgroud)
May15::110346.png中~/Pictures/Screenshotsman scrot和man date了解更多选项。myscrot以便原件scrot仍然可以使用,但您可以根据需要使用scrot!