summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorRaymaekers Luca <raymaekers.luca@gmail.com>2024-12-29 17:43:00 +0100
committerRaymaekers Luca <raymaekers.luca@gmail.com>2024-12-29 17:43:00 +0100
commit70ac73bc332facb6b55044a8a6145ea805592d18 (patch)
tree48a0b7a5e246d1900395407f9ed1e41c99d98703 /bin
parentd79faa9e1b36e99dcf8925fc3271f32950f00309 (diff)
checkpoint
Diffstat (limited to 'bin')
-rwxr-xr-xbin/common/ytclipo4
-rwxr-xr-xbin/extra/cycleKB2
-rwxr-xr-xbin/extra/mtr2
-rwxr-xr-xbin/extra/p.sh2
-rwxr-xr-xbin/guiscripts/dmtofi4
-rwxr-xr-xbin/guiscripts/lh2
-rwxr-xr-xbin/guiscripts/wintitle3
-rwxr-xr-xbin/menuscripts/memoji2
-rwxr-xr-xbin/menuscripts/mpotp2
-rwxr-xr-xbin/menuscripts/shdul.sh2
10 files changed, 11 insertions, 14 deletions
diff --git a/bin/common/ytclipo b/bin/common/ytclipo
index 4d9d846..f8d30b4 100755
--- a/bin/common/ytclipo
+++ b/bin/common/ytclipo
@@ -4,7 +4,7 @@ inp="$1"
[ -z "$inp" ] && inp="$(ytlink)"
[ "$inp" ] || exit 1
>&2 printf "inp: %s\n" "$inp"
-notify-send "ytclipo" "$inp" || :
+herbe "_ytclipo" "*$inp" || :
yt-dlp "$inp" \
--restrict-filenames \
@@ -12,4 +12,4 @@ yt-dlp "$inp" \
-S "res:1080" \
-P "$HOME/vids/youtube/" \
-o "%(channel)s/%(title)s.%(ext)s"
-notify-send "ytclipo" "finished downloading." || :
+herbe "_ytclipo" "finished downloading." || :
diff --git a/bin/extra/cycleKB b/bin/extra/cycleKB
index 25f018d..597f26f 100755
--- a/bin/extra/cycleKB
+++ b/bin/extra/cycleKB
@@ -18,4 +18,4 @@ IndexLayout="$(list_layouts | awk "/^$(current_keymap)/ {print NR}")"
[ "$IndexLayout" -eq "$NumLayouts" ] && IndexLayout=1 || IndexLayout=$((IndexLayout + 1))
Layout="$(list_layouts | sed -n "${IndexLayout}p" )"
setxkbmap $Layout &
-notify-send -t 1000 "cycleKB" "${Layout%% *}"
+herbe "_cycleKB" "*${Layout%% *}"
diff --git a/bin/extra/mtr b/bin/extra/mtr
index 486a9b8..68aac60 100755
--- a/bin/extra/mtr
+++ b/bin/extra/mtr
@@ -20,4 +20,4 @@ category="$(list_categories | commander -cl)"
transmission-remote debuc.com -a "$(clipo)" -w "/downloads/$category"
-notify-send "mtr" "added to <b>$category</b>"
+herbe "_mtr" "*added to $category"
diff --git a/bin/extra/p.sh b/bin/extra/p.sh
index 98f8ede..ff36e71 100755
--- a/bin/extra/p.sh
+++ b/bin/extra/p.sh
@@ -668,7 +668,7 @@ case "$1" in
curl -Ls "$url" > "$html"
level1="$(pup -p 'span.infocard:nth-child(2) > small:nth-child(2) text{}' < "$html")"
level2="$(pup -p 'span.infocard:nth-child(4) > small:nth-child(2) text{}' < "$html")"
- notify-send "p.sh" "$level1\n$level2"
+ herbe "_p.sh" "$level1\n$level2"
;;
# moves
diff --git a/bin/guiscripts/dmtofi b/bin/guiscripts/dmtofi
index 5cdc3cf..ed9f673 100755
--- a/bin/guiscripts/dmtofi
+++ b/bin/guiscripts/dmtofi
@@ -2,7 +2,7 @@
if ! mv ~/bin/.dmenu ~/bin/dmenu 2>/dev/null
then
mv ~/bin/dmenu ~/bin/.dmenu
- notify-send "dmtofi" "dmenu <b>enabled</b>!"
+ herbe "_dmtofi" "*enabled!"
else
- notify-send "dmtofi" "dmenu <b>disabled</b>!"
+ herbe "_dmtofi" "*disabled!"
fi
diff --git a/bin/guiscripts/lh b/bin/guiscripts/lh
index ba39ec0..fd7f573 100755
--- a/bin/guiscripts/lh
+++ b/bin/guiscripts/lh
@@ -7,7 +7,7 @@
# otherwise it opens link in browser.
[ "${url:=$1}" ] || url="$(clipo)"
-notify-send "linkhandler" "$url"
+herbe "_linkhandler" "$url"
case "$url" in
file://*)
diff --git a/bin/guiscripts/wintitle b/bin/guiscripts/wintitle
deleted file mode 100755
index 64938a5..0000000
--- a/bin/guiscripts/wintitle
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-notify-send "wintitle" "<b>$(hyprctl activewindow -j | jq -r '.title')</b>"
diff --git a/bin/menuscripts/memoji b/bin/menuscripts/memoji
index 5766238..0b3965d 100755
--- a/bin/menuscripts/memoji
+++ b/bin/menuscripts/memoji
@@ -13,7 +13,7 @@ case "$1" in
input=$(tee | cut -f 1 -d ' ')
if [ "$input" ]
then
- notify-send "dmemoji" "$input <b>copied!</b>"
+ herbe "_dmemoji" "*$input copied!"
printf "%s" "$input" | clipp
fi
;;
diff --git a/bin/menuscripts/mpotp b/bin/menuscripts/mpotp
index 2be6186..8ffb468 100755
--- a/bin/menuscripts/mpotp
+++ b/bin/menuscripts/mpotp
@@ -4,4 +4,4 @@ pass="$(find "$PASSWORD_STORE_DIR"/keys/otp -iname "*.gpg" |
dmenu -c)"
[ "$pass" ] || exit 1
pass otp -c keys/otp/"$pass"
-notify-send -t 1000 "mpass" "copied $pass"
+herbe "_mpotp" "copied $pass"
diff --git a/bin/menuscripts/shdul.sh b/bin/menuscripts/shdul.sh
index 4e1d744..8c059b9 100755
--- a/bin/menuscripts/shdul.sh
+++ b/bin/menuscripts/shdul.sh
@@ -113,7 +113,7 @@ view_schedule()
then
print_schedule "$1" "$2"
prev_now="$now"
- notify-send -u critical -t 5000 "shdul" "$(awk "NR==$((now-1)) {print \$2}" "$1")"
+ herbe "_shdul" "$(awk "NR==$((now-1)) {print \$2}" "$1")"
# Align with clock
sleep "$((60-$(date +%-S)))s"