summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortsxv478 <vt0451@yandex.ru>2022-11-13 04:17:20 +0300
committertsxv478 <vt0451@yandex.ru>2022-11-13 04:17:20 +0300
commitb4bb66c47323ee531473d3176a807bd1a2aa7ac5 (patch)
tree1129eedfa9ed13974257c95ea6e66aa85a472da7
parentb6942b1015683b251dc9cb65908d9dcc5d4d3ebf (diff)
minor fixes
-rwxr-xr-xbm8
-rwxr-xr-xemoji2
-rwxr-xr-xlit6
-rwxr-xr-xvid6
4 files changed, 11 insertions, 11 deletions
diff --git a/bm b/bm
index c659974..69f9bb7 100755
--- a/bm
+++ b/bm
@@ -1,13 +1,13 @@
#!/bin/sh
-path="$HOME/.local/share/bookmarks.txt"
-bookmark=$(cat $path | dmenu -i -c -l 15 -p "Bookmark:")
+dir="$HOME/.local/share/bookmarks.txt"
+bookmark=$(tac $dir | dmenu -i -c -l 15 -p "Bookmark:")
[ -z $bookmark ] && exit
# append a url to the list if it's not present and exit
-[ -z $(grep -F $bookmark $path) ] && printf "%s\n" "$bookmark" >> $path && exit
+[ -z $(grep -F $bookmark $dir) ] && printf "%s\n" "$bookmark" >> $dir && exit
-action=$(printf "Open in browser\nCopy to clipboard\n" | dmenu -i -c -l 2 -p "Action:")
+action=$(printf "Open in browser\nCopy to clipboard" | dmenu -i -c -l 2 -p "Action:")
case $action in
"Open in browser") $BROWSER $bookmark ;;
diff --git a/emoji b/emoji
index 31a4012..084359f 100755
--- a/emoji
+++ b/emoji
@@ -1,6 +1,6 @@
#!/bin/sh
-emoji=$(cut -d ';' -f1 ~/.local/share/emoji | dmenu -i -c -l 15 -p "Emoji:" | sed "s/ .*//" | tr -d '\n')
+emoji=$(cut -d ';' -f1 ~/.local/share/emoji.txt | dmenu -i -c -l 15 -p "Emoji:" | sed "s/ .*//" | tr -d '\n')
[ -z "$emoji" ] && exit
diff --git a/lit b/lit
index e6085ac..f79ef41 100755
--- a/lit
+++ b/lit
@@ -1,6 +1,6 @@
#!/bin/sh
-path="$HOME/doc/lit"
-book=$(find $path -type f | cut -d '/' -f '6-' | dmenu -i -c -l 15 -p "Open book:")
+dir="$HOME/doc/lit"
+book=$(find $dir -type f | cut -d '/' -f '6-' | dmenu -i -c -l 15 -p "Open book:")
-[ -f "$path/$book" ] && zathura "$path/$book"
+[ -f "$dir/$book" ] && zathura "$dir/$book"
diff --git a/vid b/vid
index 9575f07..cabc315 100755
--- a/vid
+++ b/vid
@@ -1,6 +1,6 @@
#!/bin/sh
-path="$HOME/vid"
-video=$(find $path -type f | cut -d '/' -f '5-' | dmenu -i -c -l 15 -p "Play video:")
+dir="$HOME/vid"
+video=$(find $dir -type f | cut -d '/' -f '5-' | dmenu -i -c -l 15 -p "Play video:")
-[ -f "$path/$video" ] && mpv --really-quiet "$path/$video"
+[ -f "$dir/$video" ] && mpv --really-quiet "$dir/$video"