summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2024-03-27 01:14:10 +0000
committerjao <jao@gnu.org>2024-03-27 01:14:10 +0000
commit8d9ff7bd76276e454f2dff773a9e9192e44f0ce2 (patch)
tree177086d23c80098b192370ae4f299914e09503a2
parent3bc3eda3da67ec367c5b7f8ff883a7b073fc32b1 (diff)
downloadelibs-8d9ff7bd76276e454f2dff773a9e9192e44f0ce2.tar.gz
elibs-8d9ff7bd76276e454f2dff773a9e9192e44f0ce2.tar.bz2
pasystray shortcuts
-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)]