all repos — dotfiles @ 14acc68594f8824a40ba10b96037dded76ad69c5

linux dotfiles

scripts: add shiori-menu
Prithu Goswami pg@prithu.dev
Thu, 28 Apr 2022 00:09:40 +0530
commit

14acc68594f8824a40ba10b96037dded76ad69c5

parent

48c1468058a4792ef0b357dc6e9debef46525933

2 files changed, 25 insertions(+), 0 deletions(-)

jump to
A bin/scripts/shiori-menu

@@ -0,0 +1,23 @@

+#!/bin/bash + +url=$(printf "" | dmenu -p URL) +tags=$(printf "" | dmenu -p tags) +archive=$(printf "yes\nno" | dmenu -p archive ) + +if [ $archive = "yes" ] +then + aopt="" +elif [ $archive = "no" ] +then + aopt="--no-archival" +fi + +if [ "$url" ] +then + if [ "$tags" ] + then + ssh inty "shiori add $aopt -t \"$tags\" $url" + else + ssh inty "shiori add $aopt $url" + fi +fi
M config/launcherconfig/launcher

@@ -1,5 +1,6 @@

log passmenu_ +shiori-menu otp i3lock -c 000000 note

@@ -12,3 +13,4 @@ firefox

rofi -show emoji rofi -show drun rofi -show calc -modi calc -no-show-match -no-sort -no-history +mpv --ytdl-format=720p60 https://twitch.tv/rwxrob