mirror of
https://github.com/foo-dogsquared/dotfiles.git
synced 2025-01-30 22:57:54 +00:00
Move the scripts to 'bin' directory
Just a change of preference.
This commit is contained in:
parent
b818e30a2f
commit
687ca4359f
@ -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
|
@ -1,4 +1,4 @@
|
||||
#!/bin/sh
|
||||
#!/usr/bin/env sh
|
||||
|
||||
help_section="
|
||||
This simply creates a quick rofi interface for my lectures manager.
|
@ -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 ))
|
Loading…
Reference in New Issue
Block a user