Skip to content

Commit

Permalink
feat(vrsjmp): Add toggle-do-not-disturb
Browse files Browse the repository at this point in the history
  • Loading branch information
leoshimo committed Jul 26, 2024
1 parent fffbacf commit 8d29d3c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
6 changes: 5 additions & 1 deletion scripts/os_notify.ll
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,8 @@
(macos_ui_notify title subtitle)
(linux_ui_notify title subtitle)))
(spawn_srv :os_notify :interface '(notify))
# Depends on shortcuts
(defn toggle_do_not_disturb ()
(exec "shortcuts" "run" "do-not-disturb-toggle"))
(spawn_srv :os_notify :interface '(notify toggle_do_not_disturb))
8 changes: 5 additions & 3 deletions scripts/vrsjmp.ll
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@
(make_item "1Password" '(open_app "1Password"))
(make_item "Excalidraw" '(open_url "https://excalidraw.com"))
(make_item "XCode" '(exec "open_xcode")) # TODO: Built-in regex
(make_item "Chrome" '(open_app "Google Chrome"))
(make_item "Show Desktop" '(show_desktop)))
(make_item "Chrome" '(open_app "Google Chrome")))


# directories
(list (make_item "Downloads" '(open_file "~/Downloads"))
Expand Down Expand Up @@ -149,7 +149,9 @@
(list (make_item "Restart vrsd" '(exec "pkill" "-ax" "vrsd"))
(make_item "Toggle Darkmode" '(toggle_darkmode))
(make_item "Toggle Color Filter" '(toggle_color_filters))
(make_item "Open in Wayback" '(active_tab_open_wayback)))
(make_item "Open in Wayback" '(active_tab_open_wayback))
(make_item "Show Desktop" '(show_desktop))
(make_item "Toggle DND" '(toggle_do_not_disturb)))

# reading
(list (make_item "Add to Reading List" '(add_rlist_active_tab))
Expand Down

0 comments on commit 8d29d3c

Please sign in to comment.