From ead84d921dd0a5c91a6392c881f53bdfe8edca08 Mon Sep 17 00:00:00 2001 From: jao Date: Fri, 19 Feb 2021 05:27:34 +0000 Subject: a few shortcuts for sway --- init.org | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/init.org b/init.org index 059aafe..26b60b2 100644 --- a/init.org +++ b/init.org @@ -209,7 +209,8 @@ #+begin_src emacs-lisp (jao-load-path "app-launcher") (use-package app-launcher - :bind (("s-r" . app-launcher-run-app))) + :bind (("s-r" . app-launcher-run-app) + ("H-s-r" . app-launcher-run-app))) #+end_src *** Brightness control #+begin_src emacs-lisp @@ -532,7 +533,7 @@ (file-symlink-p current) t)))) (make-symbolic-link (expand-file-name f) current t) - (make-symbolic-link (expand-file-name f) "~/.lockimage" t) + ;; (make-symbolic-link (expand-file-name f) "~/.lockimage" t) (if jao-sway-enabled-p (jao-swaymsg (format "output * bg %s fill" current)) (shell-command (format "xwallpaper --zoom %s" f)))))) @@ -1334,6 +1335,7 @@ (switch-window-threshold 3)) :bind (("M-o" . switch-window) ("M-O" . switch-window-then-swap-buffer) + ("H-s-O" . switch-window-then-swap-buffer) ("C-x 4 d" . switch-window-then-dired) ("C-x 4 f" . switch-window-then-find-file) ("C-x 4 b" . switch-window-then-display-buffer))) @@ -4281,21 +4283,24 @@ (global-set-key "\C-z" 'comment-or-uncomment-region) (pretty-hydra-define jao-hydra-emacs-utils (:color blue :quit-key "q") - ("Misc" + ("Notes" + (("n" org-roam-capture "capture note") + ("N" org-roam-find-file-immediate "go to note")) + "Packages" (("a" jao-vterm-aptitude "aptitude") ("l" (progn (jao-afio--goto-scratch) (list-packages)) "package list") - ("f" (jao-sway-run-or-focus "firefox") "switch to firefox")) + ) "Network" (("s" jao-ssh "ssh") ("v" proton-vpn "proton vpn") ("m" run-proton-bridge "proton bridge")) - "Devices" + "" (("b" bluetooth-list-devices "bluetooth") - ("n" enwc "networks")) + ("f" (jao-sway-run-or-focus "firefox") "switch to firefox")) "Monitors" (("p" jao-vterm-htop "htop") - ("P" (jao-sway-run-or-focus "pavucontrol") "pavucontrol") - ("t" jao-time-echo-times "current time")) + ("t" jao-time-echo-times "current time") + ) "Looks" (("T" jao-toggle-transparency "toggle transparency" :toggle (jao-transparent-p) :color red) -- cgit v1.2.3