From 2b93a188d54d99bb39717b9e1b34b72ab063c2eb Mon Sep 17 00:00:00 2001 From: Jacopo De Simoi Date: Sun, 20 Nov 2022 23:36:07 -0500 Subject: [PATCH] Move kde utils to own source file --- zshrc.org | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/zshrc.org b/zshrc.org index 57ab62a..5b59e50 100644 --- a/zshrc.org +++ b/zshrc.org @@ -73,7 +73,9 @@ Define a number of KDE helpers. The other two swap between build and src dirs on my local git checkout -#+begin_src sh +#+begin_src sh :tangle kde-utils.sh + #!/bin/zsh + kde-current-activity () { qdbus >/dev/null && kactivities-cli --current-activity | awk {'print $2'} } @@ -93,6 +95,10 @@ The other two swap between build and src dirs on my local git checkout } #+end_src +#+begin_src sh +source ~/scripts/kde-utils.sh +#+end_src + **** TODO See if we can use zsh expansion instead of sed *** Android helpers :daily: