Dont send org notify on 'PROGRESS'

This commit is contained in:
Marco Thomas
2022-05-23 23:57:39 +02:00
parent 9e0589a9cf
commit dffc83c77e
3 changed files with 23 additions and 1 deletions

View File

@@ -19,4 +19,5 @@ SFMono also provides icons.
+ =bemenu=
+ =slurp=, =grim=, =swappy=
+ =SwayNotificationCenter=
+ =sworkstyle=
+ all =fcitx5= stuff (data, gtk, qt, mozc)

View File

@@ -586,6 +586,22 @@ I need my =hjkl= :(
:straight t
:config
(setq alert-default-style 'libnotify)
(defun org-alert--parse-entry ()
"Parse an entry from the org agenda and return a list of the heading and the scheduled/deadline time"
(let ((head (org-alert--strip-text-properties (org-get-heading t t t t)))
(body (org-alert--grab-subtree))
(todo (org-get-todo-state)))
(string-match org-alert-time-match-string body)
(list head (match-string 1 body) todo)))
(defun org-alert--dispatch ()
(let* ((entry (org-alert--parse-entry))
(head (car entry))
(time (cadr entry))
(todo (cadr (cdr entry))))
(if time
(when (and (string= todo "TODO") (org-alert--check-time time))
(alert (concat time ": " head) :title org-alert-notification-title))
(alert head :title org-alert-notification-title))))
(org-alert-enable))
#+end_src

View File

@@ -50,7 +50,7 @@ bindswitch --reload --locked lid:off output $laptop enable
# Suspend after 30 minutes
exec swayidle -w \
timeout 1200 'swaylock -f' \
timeout 1800 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
timeout 1800 'systemctl suspend' \
before-sleep 'swaylock -f'
# Input configuration
@@ -174,8 +174,12 @@ input type:keyboard {
# Window rules
title_align center
default_border none
default_floating_border normal
for_window [app_id="firefox" title="Firefox — Sharing Indicator"] kill
for_window [class="discord"] move container to workspace number $ws3
for_window [class="Spotify"] move container to workspace number $ws4
assign [app_id="org.keepassxc.KeePassXC"] $ws9
assign [app_id="geary"] $ws8
# Status Bar
# man 5 sway-bar
@@ -202,6 +206,7 @@ bar {
exec syncthing
exec swaync
exec fcitx5
exec sworkstyle &> /tmp/sworkstyle.log
# Include some defaults
include /etc/sway/config.d/*