dotfiles

personal dotfiles
git clone anongit@rnpnr.xyz:dotfiles.git
Log | Files | Refs | Feed | Submodules

Commit: 295f1fc5a2c38ea19904a3df241986af9f2fa8fc
Parent: dc7040119b5674e9207b9fc743f114f31bdf4f7e
Author: Randy Palamar
Date:   Wed, 22 Feb 2023 11:52:10 -0700

replace page alias with a more robust shell script

Diffstat:
M.config/ksh/kshrc | 1-
Abin/page | 11+++++++++++
2 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/.config/ksh/kshrc b/.config/ksh/kshrc @@ -39,7 +39,6 @@ alias ll='ls -lh' alias mkdir='mkdir -p' alias mvi='mpv --profile=image' alias ncmpcpp='tput smkx && ncmpcpp' -alias page='tabbed -cd -r 2 zathura -e ""' # managing dotfiles alias rice='git --git-dir=~/.local/repos/dotfiles --work-tree=~' diff --git a/bin/page b/bin/page @@ -0,0 +1,11 @@ +#!/bin/sh + +# page: opens documents with zathura embedded in tabbed +# if page is already open documents are opened there instead + +xid="$XDG_RUNTIME_DIR/page.xid" + +[ -f "$xid" ] && $(xprop -id "$(<$xid)" >/dev/null 2>&1) || + tabbed -n page -cd >| "$xid" + +zathura --fork -e "$(<$xid)" $@