diff options
author | jakob.stendahl <jakob.stendahl@infomedia.dk> | 2024-01-23 11:13:18 +0100 |
---|---|---|
committer | jakob.stendahl <jakob.stendahl@infomedia.dk> | 2024-01-23 11:13:18 +0100 |
commit | 72efe134f645a5212f875c153dd8db4a64cbe968 (patch) | |
tree | d23229285071bf381515657b94919852ebf426c9 /Common/rofi/applets/menu/screenshot.sh | |
parent | e33d5f8d10d34e5a3a4bb292015961dd574f4c93 (diff) | |
download | dotfiles-72efe134f645a5212f875c153dd8db4a64cbe968.tar.gz dotfiles-72efe134f645a5212f875c153dd8db4a64cbe968.zip |
changes
Diffstat (limited to 'Common/rofi/applets/menu/screenshot.sh')
-rwxr-xr-x | Common/rofi/applets/menu/screenshot.sh | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/Common/rofi/applets/menu/screenshot.sh b/Common/rofi/applets/menu/screenshot.sh deleted file mode 100755 index 24c5e1b..0000000 --- a/Common/rofi/applets/menu/screenshot.sh +++ /dev/null @@ -1,50 +0,0 @@ -#!/usr/bin/env bash - -## Author : Aditya Shakya -## Mail : adi1090x@gmail.com -## Github : @adi1090x -## Twitter : @adi1090x - -style="$($HOME/.config/rofi/applets/menu/style.sh)" - -dir="$HOME/.config/rofi/applets/menu/configs/$style" -rofi_command="rofi -theme $dir/screenshot.rasi" - -# Error msg -msg() { - rofi -theme "$HOME/.config/rofi/applets/styles/message.rasi" -e "Please install 'scrot' first." -} - -# Options -screen="" -area="" -window="" - -# Variable passed to rofi -options="$screen\n$area\n$window" - -chosen="$(echo -e "$options" | $rofi_command -p 'App : scrot' -dmenu -selected-row 1)" -case $chosen in - $screen) - if [[ -f /usr/bin/scrot ]]; then - sleep 1; scrot 'Screenshot_%Y-%m-%d-%S_$wx$h.png' -e 'mv $f $$(xdg-user-dir PICTURES) ; viewnior $$(xdg-user-dir PICTURES)/$f' - else - msg - fi - ;; - $area) - if [[ -f /usr/bin/scrot ]]; then - scrot -s 'Screenshot_%Y-%m-%d-%S_$wx$h.png' -e 'mv $f $$(xdg-user-dir PICTURES) ; viewnior $$(xdg-user-dir PICTURES)/$f' - else - msg - fi - ;; - $window) - if [[ -f /usr/bin/scrot ]]; then - sleep 1; scrot -u 'Screenshot_%Y-%m-%d-%S_$wx$h.png' -e 'mv $f $$(xdg-user-dir PICTURES) ; viewnior $$(xdg-user-dir PICTURES)/$f' - else - msg - fi - ;; -esac - |