From 055afa27a07e2cd5f20dcf3a1baccfe1de0b179a Mon Sep 17 00:00:00 2001 From: William Ball Date: Fri, 10 Jan 2025 23:23:09 -0800 Subject: [PATCH] updated books and papers scripts --- river/.config/river/init | 2 +- scripts/.local/bin/books.sh | 4 ++-- scripts/.local/bin/papers.sh | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/river/.config/river/init b/river/.config/river/init index 4b01d0a..e1cd56c 100755 --- a/river/.config/river/init +++ b/river/.config/river/init @@ -12,7 +12,6 @@ mod=Super wobsock=$XDG_RUNTIME_DIR/wob.sock rm -f $wobsock && mkfifo $wobsock && tail -f $wobsock | wob & - # Launch things riverctl map normal $mod Return spawn footclient riverctl map normal $mod+Shift Return spawn foot @@ -20,6 +19,7 @@ riverctl map normal $mod Semicolon spawn fuzzel riverctl map normal $mod BracketRight spawn "$browser" riverctl map normal $mod T spawn "$email" riverctl map normal $mod Z spawn "books.sh" +riverctl map normal $mod Y spawn "papers.sh" riverctl map normal $mod E spawn "$emacs" riverctl map normal $mod+Control O spawn "swaylock" diff --git a/scripts/.local/bin/books.sh b/scripts/.local/bin/books.sh index a7f68fb..19a88a9 100755 --- a/scripts/.local/bin/books.sh +++ b/scripts/.local/bin/books.sh @@ -2,6 +2,6 @@ prefix=$HOME/Nextcloud/Books/ -choice=$(find $prefix -type f | sed "s|$prefix||;s/_/ /g" | fzf) +choice=$(find $prefix -type f | sed "s|$prefix||;s/_/ /g" | fuzzel -d -w 60) -test -n "$choice" && evince $(echo $choice | sed "s/ /_/g;s|^|$prefix|") & +test -n "$choice" && zathura $(echo $choice | sed "s/ /_/g;s|^|$prefix|") & diff --git a/scripts/.local/bin/papers.sh b/scripts/.local/bin/papers.sh index 031396a..90f7ea1 100755 --- a/scripts/.local/bin/papers.sh +++ b/scripts/.local/bin/papers.sh @@ -2,6 +2,6 @@ prefix=$HOME/Nextcloud/Papers/ -choice=$(find $prefix -type f | sed "s|$prefix||;s/_/ /g" | fzf) +choice=$(find $prefix -type f | sed "s|$prefix||;s/_/ /g" | fuzzel -d -w 60) -test -n "$choice" && evince $(echo $choice | sed "s/ /_/g;s|^|$prefix|") & +test -n "$choice" && zathura $(echo $choice | sed "s/ /_/g;s|^|$prefix|") &