summaryrefslogtreecommitdiff
path: root/.local/bin
diff options
context:
space:
mode:
authoradam <56338480+adastx@users.noreply.github.com>2022-10-10 08:23:40 +0200
committeradam <56338480+adastx@users.noreply.github.com>2022-10-10 08:23:40 +0200
commitf0c79300d963e608ccf6b83c4c213708423e01aa (patch)
tree668959f4629cd8d8bf886229dc3225d04a16560b /.local/bin
parent0375f1c658571190d1b26ac8c12dac1b3ff8821e (diff)
scripts: minor bugfixes
Diffstat (limited to '.local/bin')
-rwxr-xr-x.local/bin/barpos2
-rwxr-xr-x.local/bin/screenshot6
2 files changed, 4 insertions, 4 deletions
diff --git a/.local/bin/barpos b/.local/bin/barpos
index 5f36451..29e2512 100755
--- a/.local/bin/barpos
+++ b/.local/bin/barpos
@@ -4,7 +4,7 @@ BAR_CFG=$XDG_CONFIG_HOME/polybar/config.ini
main () {
if [ ! -n "$1" ]; then
- toggle
+ toggle ; exit 0
fi
case "$1" in
diff --git a/.local/bin/screenshot b/.local/bin/screenshot
index 3eed12b..eca47ea 100755
--- a/.local/bin/screenshot
+++ b/.local/bin/screenshot
@@ -2,12 +2,12 @@
main () {
if [ ! -n "$1" ]; then
- print_screen
+ print_screen ; exit 0
fi
case "$1" in
-s)
- screenshot-select ;;
+ selection ;;
*)
echo "usage: screenshot [-s]" ;;
esac
@@ -17,7 +17,7 @@ print_screen () {
scrot -q 100 -e 'xclip -selection c -t image/png < $f; mv $f ~/Pictures/screenshots/'
}
-screenshot-select () {
+selection () {
sleep 0.2
scrot -l mode=edge -i -s -e 'xclip -sel clip -t image/png $f; mv $f ~/Pictures/screenshots/'
}