Compare commits
No commits in common. "1e6940e88dcc1a012fec19b42a1774b7efacd847" and "90c646a8fe7e1453b57b544244b99bf0df2c63a3" have entirely different histories.
1e6940e88d
...
90c646a8fe
@ -14,11 +14,10 @@ NAME="screenshot_$(date +%d%m%Y_%H%M%S).png"
|
||||
|
||||
option2="Selected area"
|
||||
option3="Fullscreen (delay 3 sec)"
|
||||
option4="Current display (delay 3 sec)"
|
||||
|
||||
options="$option2\n$option3\n$option4"
|
||||
options="$option2\n$option3"
|
||||
|
||||
choice=$(echo -e "$options" | rofi -dmenu -replace -config ~/dotfiles/rofi/config-screenshot.rasi -i -no-show-icons -l 3 -width 30 -p "Take Screenshot")
|
||||
choice=$(echo -e "$options" | rofi -dmenu -replace -config ~/dotfiles/rofi/config-screenshot.rasi -i -no-show-icons -l 2 -width 30 -p "Take Screenshot")
|
||||
|
||||
case $choice in
|
||||
$option2)
|
||||
@ -34,12 +33,4 @@ case $choice in
|
||||
notify-send "Screenshot created and copied to clipboard" "Mode: Fullscreen"
|
||||
swappy -f "$DIR$NAME"
|
||||
;;
|
||||
$option4)
|
||||
sleep 3
|
||||
monitor="$(hyprctl monitors | awk '/Monitor/{monitor=$2} /focused: yes/{print monitor; exit}')"
|
||||
grim -o "$monitor" "$DIR$NAME"
|
||||
xclip -selection clipboard -t image/png -i "$DIR$NAME"
|
||||
notify-send "Screenshot created and copied to clipboard" "Mode: Fullscreen"
|
||||
swappy -f "$DIR$NAME"
|
||||
;;
|
||||
esac
|
||||
|
Loading…
Reference in New Issue
Block a user