From f7116d268aff3fae88d8de408e8c807295618a5c Mon Sep 17 00:00:00 2001 From: delta Date: Tue, 4 Apr 2023 15:43:40 +0200 Subject: restructure and improve config --- .config/awesome/scripts/maimtake | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100755 .config/awesome/scripts/maimtake (limited to '.config/awesome/scripts') diff --git a/.config/awesome/scripts/maimtake b/.config/awesome/scripts/maimtake deleted file mode 100755 index 4b7f9e3..0000000 --- a/.config/awesome/scripts/maimtake +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/sh - -date=$(date +%Y%m%d_%H%M%S) -path=~/Pictures/Screenshot_$date.png -rootid=$(xwininfo -root -int | grep -iPo --color=never "(?<=id:\s)[0-9]*?\s") - -if [[ $1 -eq 1 ]] -then - # fullscreen - maim $path && xclip -selection clipboard -t image/png $path - notify-send -a "Maim" "Screenshot taken" "Saved at $path" -elif [[ $1 -eq 2 ]] -then - # region - maim -s $path && xclip -selection clipboard -t image/png $path - if [[ $? -eq 0 ]] - then - notify-send -a "Maim" "Screenshot taken" "Saved at $path" - fi -elif [[ $1 -eq 3 ]] -then - # current window - maim -i $(xdotool getactivewindow) $path && xclip -selection clipboard -t image/png $path -fi - - -- cgit v1.2.3