Sixth experimental commit for the new bspwm-based rice
parent
f017d4c718
commit
7f92e1302d
|
@ -290,36 +290,23 @@
|
||||||
|
|
||||||
|
|
||||||
[urgency_low]
|
[urgency_low]
|
||||||
# IMPORTANT: colors have to be defined in quotation marks.
|
|
||||||
# Otherwise the "#" and following would be interpreted as a comment.
|
|
||||||
background = "#2A2C2B"
|
background = "#2A2C2B"
|
||||||
foreground = "#e5e5e5"
|
foreground = "#e5e5e5"
|
||||||
timeout = 10
|
timeout = 1
|
||||||
# Icon for notifications with low urgency, uncomment to enable
|
fullscreen = yes
|
||||||
#default_icon = /path/to/icon
|
history_ignore = yes
|
||||||
|
|
||||||
[urgency_normal]
|
[urgency_normal]
|
||||||
background = "#2A2C2B"
|
background = "#2A2C2B"
|
||||||
foreground = "#e5e5e5"
|
foreground = "#e5e5e5"
|
||||||
timeout = 10
|
timeout = 5
|
||||||
fullscreen = yes
|
fullscreen = yes
|
||||||
# Icon for notifications with normal urgency, uncomment to enable
|
|
||||||
#default_icon = /path/to/icon
|
|
||||||
|
|
||||||
[urgency_critical]
|
[urgency_critical]
|
||||||
background = "#ea8f89"
|
background = "#2A2C2B"
|
||||||
foreground = "#2a2c2b"
|
foreground = "#eb4034"
|
||||||
timeout = 0
|
timeout = 0
|
||||||
fullscreen = yes
|
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
|
# Every section that isn't one of the above is interpreted as a rules to
|
||||||
# override settings for certain messages.
|
# override settings for certain messages.
|
||||||
|
|
|
@ -74,6 +74,18 @@ super + alt + m
|
||||||
Print
|
Print
|
||||||
flameshot gui
|
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
|
# Notification center
|
||||||
super + a
|
super + a
|
||||||
if [[ $(dunstctl count history) == "0" ]]; then play '~/Sounds/ding.ogg'; fi; dunstctl history-pop
|
if [[ $(dunstctl count history) == "0" ]]; then play '~/Sounds/ding.ogg'; fi; dunstctl history-pop
|
||||||
|
@ -142,6 +154,10 @@ super + {_,shift + }q
|
||||||
super + Tab
|
super + Tab
|
||||||
bspc desktop -l next
|
bspc desktop -l next
|
||||||
|
|
||||||
|
# minimize window
|
||||||
|
super + Down
|
||||||
|
wmctrl -ir $(xdotool getactivewindow) -b toggle,hidden
|
||||||
|
|
||||||
#
|
#
|
||||||
# focus/swap
|
# focus/swap
|
||||||
#
|
#
|
||||||
|
|
|
@ -22,6 +22,7 @@ syncthingtray --wait &
|
||||||
#stalonetray &
|
#stalonetray &
|
||||||
nextcloud &
|
nextcloud &
|
||||||
qlipper &
|
qlipper &
|
||||||
|
kdeconnect-indicator &
|
||||||
|
|
||||||
#i=1
|
#i=1
|
||||||
#while [ $i -le 6 ]
|
#while [ $i -le 6 ]
|
||||||
|
|
|
@ -19,7 +19,7 @@ function send_notification {
|
||||||
# https://en.wikipedia.org/wiki/Box-drawing_character
|
# https://en.wikipedia.org/wiki/Box-drawing_character
|
||||||
bar=$(seq -s "─" $(($volume / 5)) | sed 's/[0-9]//g')
|
bar=$(seq -s "─" $(($volume / 5)) | sed 's/[0-9]//g')
|
||||||
# Send the notification
|
# 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
|
case $1 in
|
||||||
|
@ -39,7 +39,7 @@ case $1 in
|
||||||
# Toggle mute
|
# Toggle mute
|
||||||
#amixer -D pulse set Master 1+ toggle > /dev/null
|
#amixer -D pulse set Master 1+ toggle > /dev/null
|
||||||
if is_mute ; then
|
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
|
else
|
||||||
send_notification
|
send_notification
|
||||||
fi
|
fi
|
||||||
|
|
Binary file not shown.
Reference in New Issue