From 1f6ca44844745f469704e778730d685e3f87fb98 Mon Sep 17 00:00:00 2001 From: jao Date: Sat, 3 Sep 2022 23:30:58 +0100 Subject: attic --- attic/misc.el | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'attic') diff --git a/attic/misc.el b/attic/misc.el index fe6a325..a720042 100644 --- a/attic/misc.el +++ b/attic/misc.el @@ -310,3 +310,14 @@ "tidal-hifi --enable-features=UseOzonePlatform --ozone-platform=wayland &")) (start-process-shell-command "tidal-hifi" nil c)) (jao-sway-run-or-focus-tidal))) + +;; + +(defun jao-afio--set-mode-line () + (when (and window-system (fboundp 'jao-mode-line-hide-inactive)) + (if (string= "docs" (jao-afio-frame-name)) + (jao-mode-line-show-inactive nil) + (jao-mode-line-hide-inactive nil)))) + +(unless jao-modeline-in-minibuffer + (add-hook 'jao-afio-switch-hook #'jao-afio--set-mode-line)) -- cgit v1.2.3