diff --git a/.config/dunst/dunstrc b/.config/dunst/dunstrc index 7104f4b..0b37bf2 100644 --- a/.config/dunst/dunstrc +++ b/.config/dunst/dunstrc @@ -290,36 +290,23 @@ [urgency_low] - # IMPORTANT: colors have to be defined in quotation marks. - # Otherwise the "#" and following would be interpreted as a comment. background = "#2A2C2B" foreground = "#e5e5e5" - timeout = 10 - # Icon for notifications with low urgency, uncomment to enable - #default_icon = /path/to/icon + timeout = 1 + fullscreen = yes + history_ignore = yes [urgency_normal] background = "#2A2C2B" foreground = "#e5e5e5" - timeout = 10 + timeout = 5 fullscreen = yes - # Icon for notifications with normal urgency, uncomment to enable - #default_icon = /path/to/icon [urgency_critical] - background = "#ea8f89" - foreground = "#2a2c2b" + background = "#2A2C2B" + foreground = "#eb4034" timeout = 0 fullscreen = yes - # Icon for notifications with critical urgency, uncomment to enable - #default_icon = /path/to/icon - -[osd] - background = "#2A2C2B" - foreground = "#e5e5e5" - timeout = 2 - fullscreen = yes - history_ignore = yes # Every section that isn't one of the above is interpreted as a rules to # override settings for certain messages. diff --git a/.config/sxhkd/sxhkdrc b/.config/sxhkd/sxhkdrc index 0908dfe..20b1d7d 100644 --- a/.config/sxhkd/sxhkdrc +++ b/.config/sxhkd/sxhkdrc @@ -74,6 +74,18 @@ super + alt + m Print flameshot gui +# Screenshot window (maim) +super + Print + maim -i $(xdotool getactivewindow) | xclip -selection clipboard -t image/png && dunstify -i monitor -u low "Catturata finestra attuale negli appunti" -a Screenshot & if [[ $(dunstctl is-paused) == "false" ]]; then play '~/Sounds/shutter.ogg'; fi + +# Screenshot selection or window (maim) +alt + Print + maim -su | xclip -selection clipboard -t image/png && dunstify -i monitor -u low "Catturata selezione negli appunti" -a Screenshot & if [[ $(dunstctl is-paused) == "false" ]]; then play '~/Sounds/shutter.ogg'; fi + +# Screenshot screen (maim) +shift + Print + maim | xclip -selection clipboard -t image/png && dunstify -i monitor -u low "Catturato schermo negli appunti" -a Screenshot & if [[ $(dunstctl is-paused) == "false" ]]; then play '~/Sounds/shutter.ogg'; fi + # Notification center super + a if [[ $(dunstctl count history) == "0" ]]; then play '~/Sounds/ding.ogg'; fi; dunstctl history-pop @@ -142,6 +154,10 @@ super + {_,shift + }q super + Tab bspc desktop -l next +# minimize window +super + Down + wmctrl -ir $(xdotool getactivewindow) -b toggle,hidden + # # focus/swap # diff --git a/Scripts/autostart.sh b/Scripts/autostart.sh index 31785c3..eb6351d 100755 --- a/Scripts/autostart.sh +++ b/Scripts/autostart.sh @@ -22,6 +22,7 @@ syncthingtray --wait & #stalonetray & nextcloud & qlipper & +kdeconnect-indicator & #i=1 #while [ $i -le 6 ] diff --git a/Scripts/volume.sh b/Scripts/volume.sh index b131647..b7a394a 100755 --- a/Scripts/volume.sh +++ b/Scripts/volume.sh @@ -19,7 +19,7 @@ function send_notification { # https://en.wikipedia.org/wiki/Box-drawing_character bar=$(seq -s "─" $(($volume / 5)) | sed 's/[0-9]//g') # Send the notification - if [[ $(dunstctl is-paused) == "false" ]]; then dunstify -i audio-on -r 2593 -u osd "$volume $bar" -a Volume & play '~/Sounds/changevol.wav'; fi + if [[ $(dunstctl is-paused) == "false" ]]; then dunstify -i audio-on -r 2593 -u low "$volume $bar" -a Volume & play '~/Sounds/changevol.wav'; fi } case $1 in @@ -39,7 +39,7 @@ case $1 in # Toggle mute #amixer -D pulse set Master 1+ toggle > /dev/null if is_mute ; then - if [[ $(dunstctl is-paused) == "false" ]]; then dunstify -i audio-volume-muted -r 2593 -u osd "Muto" -a Volume; fi + if [[ $(dunstctl is-paused) == "false" ]]; then dunstify -i audio-volume-muted -r 2593 -u low "Muto" -a Volume; fi else send_notification fi diff --git a/Sounds/shutter.ogg b/Sounds/shutter.ogg new file mode 100755 index 0000000..92b079b Binary files /dev/null and b/Sounds/shutter.ogg differ