From 3af5fc5f86848924d49d30ecb8f5c2b960c9b1af Mon Sep 17 00:00:00 2001 From: Mike Vink Date: Sat, 25 May 2024 18:11:52 +0200 Subject: zshcmd and opaque Zathura --- mut/bin/zshcmd | 10 ++++++++++ mut/neovim/fnl/conf/init.fnl | 2 +- profiles/station/suckless.nix | 1 + profiles/station/zathura.nix | 3 +++ 4 files changed, 15 insertions(+), 1 deletion(-) create mode 100755 mut/bin/zshcmd 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 ''; }; }; -- cgit v1.2.3