From 6c242fe82bc2f26d9ccb65addd41b1c7e448a081 Mon Sep 17 00:00:00 2001 From: Sheldon Lee Date: Wed, 24 Jun 2020 23:00:58 +0100 Subject: [PATCH] Added custom bash scripts. --- .custom_bash_scripts.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 .custom_bash_scripts.sh diff --git a/.custom_bash_scripts.sh b/.custom_bash_scripts.sh new file mode 100755 index 0000000..aae670c --- /dev/null +++ b/.custom_bash_scripts.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +#screenshots using scrot +scrot_dir=$HOME/screenshots/ + +s_scrot() { + name=$(date +%Y-%m-%d_%H-%M_sel.png) + path="${scrot_dir}${name}" + scrot -s $path +} + +f_scrot() { + name=$(date +%Y-%m-%d_%H-%M_full.png) + path="${scrot_dir}${name}" + scrot $path +}