From 74785f0a4076ebdc65417727f764ff3ee6ce6355 Mon Sep 17 00:00:00 2001 From: jao Date: Mon, 29 Aug 2022 04:22:13 +0100 Subject: attic --- attic/misc.el | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'attic') 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))) -- cgit v1.2.3