From 4278b14eeeb9578cc41a7d3b310a47214c7fcdcb Mon Sep 17 00:00:00 2001 From: Benedikt Heine Date: Tue, 10 Oct 2017 18:05:57 +0200 Subject: [PATCH] Delete the lockscreen notification faster After timeout in msecs is merged in dunst, the notification can get a timeout in milliseconds and gets replaced quite fast. --- i3/dunst/dunstrc | 58 +++++------------------------------------------- i3/lockscreen.sh | 4 ++-- 2 files changed, 8 insertions(+), 54 deletions(-) diff --git a/i3/dunst/dunstrc b/i3/dunst/dunstrc index 6329438..a3d9314 100644 --- a/i3/dunst/dunstrc +++ b/i3/dunst/dunstrc @@ -205,58 +205,12 @@ foreground = "#E1E5EA" timeout = 0 - -# Every section that isn't one of the above is interpreted as a rules to -# override settings for certain messages. -# Messages can be matched by "appname", "summary", "body", "icon", "category", -# "msg_urgency" and you can override the "timeout", "urgency", "foreground", -# "background", "new_icon" and "format". -# Shell-like globbing will get expanded. -# -# SCRIPTING -# You can specify a script that gets run when the rule matches by -# setting the "script" option. -# The script will be called as follows: -# script appname summary body icon urgency -# where urgency can be "LOW", "NORMAL" or "CRITICAL". -# -# NOTE: if you don't want a notification to be displayed, set the format -# to "". -# NOTE: It might be helpful to run dunst -print in a terminal in order -# to find fitting options for rules. - -#[espeak] -# summary = "*" -# script = dunst_espeak.sh - -#[ignore] -# # This notification will not be displayed -# summary = "foobar" -# format = "" - -#[signed_on] -# appname = Pidgin -# summary = "*signed on*" -# urgency = low -# -#[signed_off] -# appname = Pidgin -# summary = *signed off* -# urgency = low -# -#[says] -# appname = Pidgin -# summary = *says* -# urgency = critical -# -#[twitter] -# appname = Pidgin -# summary = *twitter.com* -# urgency = normal -# -# vim: ft=cfg - -[locking] +[lockscreen] appname = "lockscreen" new_icon = "system-lock-screen" history_ignore = yes + +# Supergood seafile devs :facepalm: +[Seafile] + appname = "Seafile" + new_icon = "seafile" diff --git a/i3/lockscreen.sh b/i3/lockscreen.sh index ef9a209..8d703d4 100755 --- a/i3/lockscreen.sh +++ b/i3/lockscreen.sh @@ -53,8 +53,8 @@ notification(){ -a lockscreen \ -c lock-warn \ -u critical \ - -t 1000 \ - -i screensaver \ + -t 100 \ + -i system-lock-screen \ "Locking Screen" \ "Will Lock Screen in 15s" }