Dont send org notify on 'PROGRESS'
This commit is contained in:
@@ -19,4 +19,5 @@ SFMono also provides icons.
|
|||||||
+ =bemenu=
|
+ =bemenu=
|
||||||
+ =slurp=, =grim=, =swappy=
|
+ =slurp=, =grim=, =swappy=
|
||||||
+ =SwayNotificationCenter=
|
+ =SwayNotificationCenter=
|
||||||
|
+ =sworkstyle=
|
||||||
+ all =fcitx5= stuff (data, gtk, qt, mozc)
|
+ all =fcitx5= stuff (data, gtk, qt, mozc)
|
||||||
|
|||||||
@@ -586,6 +586,22 @@ I need my =hjkl= :(
|
|||||||
:straight t
|
:straight t
|
||||||
:config
|
:config
|
||||||
(setq alert-default-style 'libnotify)
|
(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))
|
(org-alert-enable))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ bindswitch --reload --locked lid:off output $laptop enable
|
|||||||
# Suspend after 30 minutes
|
# Suspend after 30 minutes
|
||||||
exec swayidle -w \
|
exec swayidle -w \
|
||||||
timeout 1200 'swaylock -f' \
|
timeout 1200 'swaylock -f' \
|
||||||
timeout 1800 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
|
timeout 1800 'systemctl suspend' \
|
||||||
before-sleep 'swaylock -f'
|
before-sleep 'swaylock -f'
|
||||||
|
|
||||||
# Input configuration
|
# Input configuration
|
||||||
@@ -174,8 +174,12 @@ input type:keyboard {
|
|||||||
# Window rules
|
# Window rules
|
||||||
title_align center
|
title_align center
|
||||||
default_border none
|
default_border none
|
||||||
|
default_floating_border normal
|
||||||
for_window [app_id="firefox" title="Firefox — Sharing Indicator"] kill
|
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="org.keepassxc.KeePassXC"] $ws9
|
||||||
|
assign [app_id="geary"] $ws8
|
||||||
|
|
||||||
# Status Bar
|
# Status Bar
|
||||||
# man 5 sway-bar
|
# man 5 sway-bar
|
||||||
@@ -202,6 +206,7 @@ bar {
|
|||||||
exec syncthing
|
exec syncthing
|
||||||
exec swaync
|
exec swaync
|
||||||
exec fcitx5
|
exec fcitx5
|
||||||
|
exec sworkstyle &> /tmp/sworkstyle.log
|
||||||
|
|
||||||
# Include some defaults
|
# Include some defaults
|
||||||
include /etc/sway/config.d/*
|
include /etc/sway/config.d/*
|
||||||
|
|||||||
Reference in New Issue
Block a user