From 17852af496a3e874489694dc1a153115851b090e Mon Sep 17 00:00:00 2001 From: thomasabishop Date: Tue, 9 Apr 2024 18:23:18 +0100 Subject: [PATCH] scripts: add delayed screenshot binding --- scripts/delayed_screenshot.sh | 1 + swappy/config | 10 ++++++++++ zsh/zshrc | 2 ++ 3 files changed, 13 insertions(+) create mode 100755 scripts/delayed_screenshot.sh create mode 100644 swappy/config diff --git a/scripts/delayed_screenshot.sh b/scripts/delayed_screenshot.sh new file mode 100755 index 0000000..7c486ad --- /dev/null +++ b/scripts/delayed_screenshot.sh @@ -0,0 +1 @@ +grim -g "$(slurp; sleep 10)" - | swappy -f - diff --git a/swappy/config b/swappy/config new file mode 100644 index 0000000..8acdd46 --- /dev/null +++ b/swappy/config @@ -0,0 +1,10 @@ +[Default] +save_dir=$HOME/Screenshots +save_filename_format=swappy-%Y%m%d-%H%M%S.png +show_panel=false +line_size=5 +text_size=20 +text_font=sans-serif +paint_mode=brush +early_exit=true +fill_shape=false diff --git a/zsh/zshrc b/zsh/zshrc index 90a852b..ce64d7d 100644 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -8,6 +8,8 @@ alias z="cd /home/thomas/repos/eolas" alias zn="/home/thomas/repos/eolas/scripts/new_zk_note.sh" alias dot="cd /home/thomas/dotfiles" alias gpt="chatgpt-cli" +alias ss="/home/thomas/dotfiles/scripts/screenshot.sh" +alias SS="/home/thomas/dotfiles/scripts/delayed_screenshot.sh" # alias xhd="cd /run/media/thomas" # alias cs-update="/home/thomas/repos/eolas/_scripts/auto_save.sh"