From 7e85e84c3144919c056140824cfc8bf4e5416437 Mon Sep 17 00:00:00 2001 From: Sheldon Lee Date: Sat, 19 Sep 2020 15:53:35 +0800 Subject: [PATCH] Added awesome script files not tracked. --- .config/awesome/autorun.sh | 12 ++++++++++++ .config/awesome/screenshot.sh | 30 ++++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100755 .config/awesome/autorun.sh create mode 100755 .config/awesome/screenshot.sh diff --git a/.config/awesome/autorun.sh b/.config/awesome/autorun.sh new file mode 100755 index 0000000..5e3bd8e --- /dev/null +++ b/.config/awesome/autorun.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +function run() +{ + if ! pgrep -f $1; then + $1& + fi +} + +run firefox +run discord +run alacritty diff --git a/.config/awesome/screenshot.sh b/.config/awesome/screenshot.sh new file mode 100755 index 0000000..562b2af --- /dev/null +++ b/.config/awesome/screenshot.sh @@ -0,0 +1,30 @@ +#!/bin/bash +#dmenu script for screenshots +CUSTOM_SCRIPTS_FILE=~/.custom_bash_scripts +if test -f $CUSTOM_SCRIPTS_FILE; then + source $CUSTOM_SCRIPTS_FILE +else + echo ".custom_bash_scripts.sh does not exist." +fi + +options=" +1) Fullscreen\n\ +2) Selection +" +#echo -e $options + +# -i case insensitive +# -l vertical lines +option=$(echo -e $options | dmenu -i) + +#echo "\"$option\"" +case $option in +1*) + sleep 0.5 + f_scrot + ;; +2*) + s_scrot + ;; +esac +