diff --git a/.scripts/rofi-user-action-menu.sh b/.scripts/rofi-user-action-menu.sh deleted file mode 100644 index 6180c02..0000000 --- a/.scripts/rofi-user-action-menu.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/sh - -options='shutdown 0 -P -reboot -i3-msg exit' - -command=$(echo -e "$options" | rofi -dmenu -p "Select the command to execute.") - -if [[ $? != 0 ]]; then - exit $? -fi - -continue=$(echo -e "No\nYes" | rofi -dmenu -p "You really want to continue with '$command'?") - -if [[ $continue == "Yes" ]]; then - eval "$command" -fi diff --git a/.scripts/create-pacman-pkglist.sh b/bin/create-pacman-pkglist.sh similarity index 100% rename from .scripts/create-pacman-pkglist.sh rename to bin/create-pacman-pkglist.sh diff --git a/.scripts/lecture-manager-shortcut.sh b/bin/lecture-manager similarity index 99% rename from .scripts/lecture-manager-shortcut.sh rename to bin/lecture-manager index 0b65d2d..d66b7d0 100644 --- a/.scripts/lecture-manager-shortcut.sh +++ b/bin/lecture-manager @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh help_section=" This simply creates a quick rofi interface for my lectures manager. diff --git a/.scripts/screen-record.sh b/bin/record similarity index 100% rename from .scripts/screen-record.sh rename to bin/record diff --git a/.scripts/maim-screenshot.sh b/bin/screenshot similarity index 94% rename from .scripts/maim-screenshot.sh rename to bin/screenshot index 6d2e405..2f51649 100644 --- a/.scripts/maim-screenshot.sh +++ b/bin/screenshot @@ -1,6 +1,7 @@ #!/bin/sh -# Simply captures an image with regional selection. +# Simply captures an image. +# Also comes with a delay and region selection option. # Here are the dependencies needed to successfully # run this script (as of creating this script): @@ -74,6 +75,7 @@ fi maim_command="maim $pic_filepath " +# If selection mode is enabled. if [[ $SELECT -eq 1 ]]; then notify-send "Screenshot capture selection mode" "Select a region to capture the screenshot." --expire-time=1000 @@ -90,6 +92,7 @@ if [[ $SELECT -eq 1 ]]; then fi fi +# Checking if there is a set delay. if [[ $DELAY -gt 0 ]]; then maim_command+="--delay=$DELAY " notify-send "Delayed screenshot" "A delayed screenshot is about to be taken in $DELAY seconds." --expire-time=$(( ($DELAY * 1000) - 1000 ))