sway: group all notifications
This commit is contained in:
parent
095d9d18b7
commit
30b792dd76
2 changed files with 25 additions and 24 deletions
|
@ -11,7 +11,7 @@ SUS_CMD="$HOME/.config/sway/bin/sway_suspend"
|
||||||
# 120 min suspend
|
# 120 min suspend
|
||||||
pkill -x swayidle
|
pkill -x swayidle
|
||||||
swayidle -w \
|
swayidle -w \
|
||||||
timeout 1500 "$TERM_CMD bash -c 'notify-send -u critical display\ will\ turn\ off\ soon'" \
|
timeout 1500 "$TERM_CMD bash -c 'dunstify -r 123 -u critical display\ will\ turn\ off\ soon'" \
|
||||||
resume "$LOCK_CMD on" \
|
resume "$LOCK_CMD on" \
|
||||||
timeout 1800 "$LOCK_CMD off" \
|
timeout 1800 "$LOCK_CMD off" \
|
||||||
timeout 2700 "$LOCK_CMD lockonly" \
|
timeout 2700 "$LOCK_CMD lockonly" \
|
||||||
|
|
31
config
31
config
|
@ -24,6 +24,7 @@ set $idle_cmd $HOME/.config/sway/bin/start_swayidle.sh
|
||||||
set $waybar_cmd $HOME/.config/sway/bin/start_waybar.sh
|
set $waybar_cmd $HOME/.config/sway/bin/start_waybar.sh
|
||||||
set $move_cmd $HOME/.config/sway/bin/sway_move
|
set $move_cmd $HOME/.config/sway/bin/sway_move
|
||||||
set $font Cascadia Code PL Regular 10
|
set $font Cascadia Code PL Regular 10
|
||||||
|
set $notify_cmd dunstify -r 123
|
||||||
|
|
||||||
# Your preferred application launcher
|
# Your preferred application launcher
|
||||||
set $menu wofi --show drun --prompt applications
|
set $menu wofi --show drun --prompt applications
|
||||||
|
@ -267,18 +268,18 @@ mode "move" {
|
||||||
bindsym $mod+k focus up
|
bindsym $mod+k focus up
|
||||||
bindsym $mod+l focus right
|
bindsym $mod+l focus right
|
||||||
# Return to default mode
|
# Return to default mode
|
||||||
bindsym Return exec notify-send "mode: default"; mode "default"
|
bindsym Return exec $notify_cmd "mode: default"; mode "default"
|
||||||
bindsym Escape exec notify-send "mode: default"; mode "default"
|
bindsym Escape exec $notify_cmd "mode: default"; mode "default"
|
||||||
}
|
}
|
||||||
mode "mark" {
|
mode "mark" {
|
||||||
bindsym a mark a
|
bindsym a exec $notify_cmd "mode: mark a"; mark a
|
||||||
bindsym s mark s
|
bindsym s exec $notify_cmd "mode: mark s"; mark s
|
||||||
bindsym d mark d
|
bindsym d exec $notify_cmd "mode: mark d"; mark d
|
||||||
bindsym z mark z
|
bindsym z exec $notify_cmd "mode: mark z"; mark z
|
||||||
bindsym x mark x
|
bindsym x exec $notify_cmd "mode: mark x"; mark x
|
||||||
bindsym c mark c
|
bindsym c exec $notify_cmd "mode: mark c"; mark c
|
||||||
bindsym Return exec notify-send "mode: default"; mode "default"
|
bindsym Return exec $notify_cmd "mode: default"; mode "default"
|
||||||
bindsym Escape exec notify-send "mode: default"; mode "default"
|
bindsym Escape exec $notify_cmd "mode: default"; mode "default"
|
||||||
}
|
}
|
||||||
# Move the focused workspace to another monitor
|
# Move the focused workspace to another monitor
|
||||||
mode "move-workspace" {
|
mode "move-workspace" {
|
||||||
|
@ -290,12 +291,12 @@ mode "move-workspace" {
|
||||||
bindsym $mod+j focus down
|
bindsym $mod+j focus down
|
||||||
bindsym $mod+k focus up
|
bindsym $mod+k focus up
|
||||||
bindsym $mod+l focus right
|
bindsym $mod+l focus right
|
||||||
bindsym Return exec notify-send "mode: default"; mode "default"
|
bindsym Return exec $notify_cmd "mode: default"; mode "default"
|
||||||
bindsym Escape exec notify-send "mode: default"; mode "default"
|
bindsym Escape exec $notify_cmd "mode: default"; mode "default"
|
||||||
}
|
}
|
||||||
bindsym $mod+m exec notify-send "mode: move"; mode "move"
|
bindsym $mod+m exec $notify_cmd "mode: move"; mode "move"
|
||||||
bindsym $mod+Shift+a exec notify-send "mode: mark"; mode "mark"
|
bindsym $mod+Shift+a exec $notify_cmd "mode: mark"; mode "mark"
|
||||||
bindsym $mod+o exec notify-send "mode: move-workspace"; mode "move-workspace"
|
bindsym $mod+o exec $notify_cmd "mode: move-workspace"; mode "move-workspace"
|
||||||
|
|
||||||
#
|
#
|
||||||
# Window Rules:
|
# Window Rules:
|
||||||
|
|
Loading…
Reference in a new issue