diff --git a/.config/dunst/dunstrc b/.config/dunst/dunstrc index 060062e..bbb04f7 100644 --- a/.config/dunst/dunstrc +++ b/.config/dunst/dunstrc @@ -224,7 +224,7 @@ # Scale small icons up to this size, set to 0 to disable. Helpful # for e.g. small files or high-dpi screens. In case of conflict, # max_icon_size takes precedence over this. - min_icon_size = 24 + min_icon_size = 64 # Scale larger icons down to this size, set to 0 to disable max_icon_size = 128 @@ -356,11 +356,11 @@ # Icon for notifications with critical urgency, uncomment to enable #default_icon = /path/to/icon -[Volume] - history_ignore = true - -[Brightness] - history_ignore = true +# [Volume] +# history_ignore = true +# +# [Brightness] +# history_ignore = true # Every section that isn't one of the above is interpreted as a rules to # override settings for certain messages. diff --git a/.config/sway/config b/.config/sway/config index d1ad267..8db0be4 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -247,6 +247,8 @@ bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle && /home/em bindsym XF86AudioMicMute exec pactl set-source-mute @DEFUALT_SOURCE@ toggle bindsym XF86MonBrightnessDown exec brightnessctl set 5%- && /home/emge/Scripts/brightness_notif.sh bindsym XF86MonBrightnessUp exec brightnessctl set 5%+ && /home/emge/Scripts/brightness_notif.sh +bindsym Print exec /home/emge/Scripts/screenshot.sh +bindsym $mod+Shift+s exec /home/emge/Scripts/screenshot-select.sh # # Status Bar: diff --git a/Scripts/screenshot-select.sh b/Scripts/screenshot-select.sh new file mode 100755 index 0000000..04dc35e --- /dev/null +++ b/Scripts/screenshot-select.sh @@ -0,0 +1,23 @@ +#!/bin/bash +# take screenshot of selection and save to +# default screenshots directory + +# set default screenshots directory +dir="/home/emge/Pictures/screenshots/" + +# set current date +curDate=$(date +"%Y-%m-%d") + +i="1" +file=$dir$curDate"_"$i".png" + +while [ -f $file ] ; +do + i=$((i + "1")) + file=$dir$curDate"_"$i".png" +done + +grim -g "$(slurp)" $file + +# show screenshot notification +dunstify -u low -i accessories-screenshot -h string:x-dunst-stack-tag:Screenshot "Screenshot saved:" $file