added sway keybind for screenshot select script and disabled history_ignore in dunst config, something not working properly there

This commit is contained in:
Mike G 2024-10-08 19:16:38 -04:00
parent 273db9af59
commit 625c2d0679
3 changed files with 31 additions and 6 deletions

View file

@ -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.

View file

@ -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:

23
Scripts/screenshot-select.sh Executable file
View file

@ -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