diff options
author | jao <jao@gnu.org> | 2022-08-29 04:22:13 +0100 |
---|---|---|
committer | jao <jao@gnu.org> | 2022-08-29 04:22:13 +0100 |
commit | 74785f0a4076ebdc65417727f764ff3ee6ce6355 (patch) | |
tree | 42116f8b2234666ec8faee0e34f289343b25ad5f | |
parent | 8b8f6252bf71648f39b8af8c98ea2b1c399ef9d5 (diff) | |
download | elibs-74785f0a4076ebdc65417727f764ff3ee6ce6355.tar.gz elibs-74785f0a4076ebdc65417727f764ff3ee6ce6355.tar.bz2 |
attic
-rw-r--r-- | attic/misc.el | 10 | ||||
-rw-r--r-- | init.el | 9 |
2 files changed, 10 insertions, 9 deletions
diff --git a/attic/misc.el b/attic/misc.el index 120d152..f4e73b8 100644 --- a/attic/misc.el +++ b/attic/misc.el @@ -291,3 +291,13 @@ ;; View html message in browser (type aV) (add-to-list 'mu4e-view-actions '("ViewInBrowser" . mu4e-action-view-in-browser) t)) + +;;; snippets +(defun jao-sway-run-or-focus-tidal () + (interactive) + (if (jao-shell-running-p "tidal-hifi") + (jao-swaymsg "[app_id=tidal-hifi] scratchpad show") + (let ((c + "tidal-hifi --enable-features=UseOzonePlatform --ozone-platform=wayland &")) + (start-process-shell-command "tidal-hifi" nil c)) + (jao-sway-run-or-focus-tidal))) @@ -493,15 +493,6 @@ (jao-swaymsg (format "workspace %s" (or ws 2))) (start-process-shell-command cmd nil cmd))) -(defun jao-sway-run-or-focus-tidal () - (interactive) - (if (jao-shell-running-p "tidal-hifi") - (jao-swaymsg "[app_id=tidal-hifi] scratchpad show") - (let ((c - "tidal-hifi --enable-features=UseOzonePlatform --ozone-platform=wayland &")) - (start-process-shell-command "tidal-hifi" nil c)) - (jao-sway-run-or-focus-tidal))) - (defun jao-sway-run-or-focus-firefox () (interactive) (jao-sway-run-or-focus "firefox")) |