Sixth experimental commit for the new bspwm-based rice
parent
f017d4c718
commit
7f92e1302d
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
#
|
||||
|
|
|
@ -22,6 +22,7 @@ syncthingtray --wait &
|
|||
#stalonetray &
|
||||
nextcloud &
|
||||
qlipper &
|
||||
kdeconnect-indicator &
|
||||
|
||||
#i=1
|
||||
#while [ $i -le 6 ]
|
||||
|
|
|
@ -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
|
||||
|
|
Binary file not shown.
Reference in New Issue