summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Vink <mike@pionative.com>2024-05-25 18:11:52 +0200
committerMike Vink <mike@pionative.com>2024-05-25 18:11:52 +0200
commit3af5fc5f86848924d49d30ecb8f5c2b960c9b1af (patch)
tree570d24bf3a5a23cd1556a116446e847b69eed38f
parenteb8e0fa7ccdc2b8b28b344b18ef2f081553f91e9 (diff)
zshcmd and opaque Zathura
-rwxr-xr-xmut/bin/zshcmd10
-rw-r--r--mut/neovim/fnl/conf/init.fnl2
-rw-r--r--profiles/station/suckless.nix1
-rw-r--r--profiles/station/zathura.nix3
4 files changed, 15 insertions, 1 deletions
diff --git a/mut/bin/zshcmd b/mut/bin/zshcmd
new file mode 100755
index 0000000..1a2fc88
--- /dev/null
+++ b/mut/bin/zshcmd
@@ -0,0 +1,10 @@
+#!/usr/bin/env zsh
+if [ -f ~/.zshrc ]; then
+ source ~/.zshrc &>/dev/null
+fi
+
+# Enable alias expansion
+setopt aliases
+
+# Run your commands that use aliases
+eval ${@}
diff --git a/mut/neovim/fnl/conf/init.fnl b/mut/neovim/fnl/conf/init.fnl
index d2d4929..0e65c84 100644
--- a/mut/neovim/fnl/conf/init.fnl
+++ b/mut/neovim/fnl/conf/init.fnl
@@ -198,7 +198,7 @@
(vim.api.nvim_create_user_command
:Sh
(fn [cmd]
- (local thunk #(qfjob [:sh :-c cmd.args] nil))
+ (local thunk #(qfjob [:zshcmd cmd.args] nil))
(set last_job_thunk thunk)
(thunk))
{:nargs :* :bang true :complete :shellcmd})
diff --git a/profiles/station/suckless.nix b/profiles/station/suckless.nix
index cbbf7df..aa4c15f 100644
--- a/profiles/station/suckless.nix
+++ b/profiles/station/suckless.nix
@@ -25,6 +25,7 @@
opacityRules = [
"100:class_g = 'Wfica'"
"100:class_g = 'dwm'"
+ "100:class_g = 'Zathura'"
"100:name *= 'Firefox'"
"100:name *= 'mpv'"
"100:name *= 'LibreWolf'"
diff --git a/profiles/station/zathura.nix b/profiles/station/zathura.nix
index 084214c..73f7e3c 100644
--- a/profiles/station/zathura.nix
+++ b/profiles/station/zathura.nix
@@ -23,6 +23,9 @@
map i recolor
map p print
map g goto top
+
+ map m mark_add
+ map ' mark_evaluate
'';
};
};