summaryrefslogtreecommitdiffhomepage
path: root/init.el
diff options
context:
space:
mode:
Diffstat (limited to 'init.el')
-rw-r--r--init.el15
1 files changed, 10 insertions, 5 deletions
diff --git a/init.el b/init.el
index 56a0afc..9c142a1 100644
--- a/init.el
+++ b/init.el
@@ -2920,7 +2920,10 @@
(use-package jao-random-album :demand t)
(jao-def-exec-in-term "aptitude" "aptitude" (jao-afio-goto-scratch))
-(jao-def-exec-in-term "htop" "htop" (jao-afio-goto-scratch))
+
+(defun jao-toggle-pasystray-applet ()
+ (interactive)
+ (or (jao-shell-kill-p "pasystray") (jao-shell-exec "pasystray")))
(transient-define-prefix jao-transient-streaming ()
[:description
@@ -2984,8 +2987,9 @@
("r" (lambda ()
(concat (if jao-random-album-active "dis" "en") "able random album"))
jao-random-album-toggle)
- ("P" (lambda () (concat "Toggle to " (if (jao-mpc-mopidy-p) "mpd" "mopidy")))
- jao-mpc-toggle-port)]])
+ ;; ("P" (lambda () (concat "Toggle to " (if (jao-mpc-mopidy-p) "mpd" "mopidy")))
+ ;; jao-mpc-toggle-port)
+ ("P" "pasystray" jao-toggle-pasystray-applet)]])
(global-set-key (kbd "s-m") #'jao-transient-media)
@@ -3199,6 +3203,8 @@
(outline-show-entry))
((derived-mode-p 'org-mode) (org-reveal))))
+(jao-def-exec-in-term "htop" "htop" (jao-afio-goto-scratch))
+
(transient-define-prefix jao-transient-utils ()
"Global operations."
[["Notes"
@@ -3212,8 +3218,7 @@
("dr" "search docs with recoll" jao-recoll-consult-docs)]
["Monitors"
("p" "htop" jao-term-htop)
- ;; ("v" "vpn status" jao-mullvad-status)
- ;; ("m" "set tmr" tmr)
+ ("P" "pasytray" jao-toggle-pasystray-applet)
("x" "restart i3bar" jao-river-restart-i3bar :if jao-river-enabled-p)
("x" "restart xmobar" jao-xmobar-restart :if jao-exwm-enabled-p)
("x" "kill xmobar" jao-xmobar-kill :if jao-xmonad-enabled-p)]