mirror of
https://github.com/CoolnsX/repos_scripts.git
synced 2025-12-20 07:15:20 +05:30
Rush B!
This commit is contained in:
24
.functions
24
.functions
@@ -1,49 +1,49 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
menu_droid () {
|
menu_droid() {
|
||||||
fzf --prompt="$1" $2
|
fzf --prompt="$1" $2
|
||||||
}
|
}
|
||||||
|
|
||||||
menu_linux () {
|
menu_linux() {
|
||||||
bemenu --fn 'Cascadia Mono 15' -i -c -W 0.6 -B 3 -l 25 -p "$1"
|
bemenu --fn 'Cascadia Mono 15' -i -c -W 0.6 -B 3 -l 25 -p "$1"
|
||||||
}
|
}
|
||||||
|
|
||||||
search_droid () {
|
search_droid() {
|
||||||
printf "%s" "$1" && read -r query
|
printf "%s" "$1" && read -r query
|
||||||
}
|
}
|
||||||
|
|
||||||
search_linux () {
|
search_linux() {
|
||||||
query=$(: | menu_linux "$1 ")
|
query=$(: | menu_linux "$1 ")
|
||||||
}
|
}
|
||||||
|
|
||||||
torrent_linux () {
|
torrent_linux() {
|
||||||
setsid -f "$TERMINAL" -e "$HOME/repos_scripts/torrent" "$1"
|
setsid -f "$TERMINAL" -e "$HOME/repos_scripts/torrent" "$1"
|
||||||
}
|
}
|
||||||
|
|
||||||
torrent_droid () {
|
torrent_droid() {
|
||||||
"$HOME/torrent" "$1"
|
"$HOME/torrent" "$1"
|
||||||
}
|
}
|
||||||
|
|
||||||
info_droid () {
|
info_droid() {
|
||||||
printf "\n\r\033[1;36m%s" "$1"
|
printf "\n\r\033[1;36m%s" "$1"
|
||||||
}
|
}
|
||||||
|
|
||||||
info_linux () {
|
info_linux() {
|
||||||
notify-send "$1" -r '10' -i "$2"
|
notify-send "$1" -r '10' -i "$2"
|
||||||
}
|
}
|
||||||
|
|
||||||
error_droid () {
|
error_droid() {
|
||||||
printf "\33[2K\r\033[1;31m%s" "$1"
|
printf "\33[2K\r\033[1;31m%s" "$1"
|
||||||
}
|
}
|
||||||
|
|
||||||
error_linux () {
|
error_linux() {
|
||||||
notify-send -u "critical" "$1" -r '10'
|
notify-send -u "critical" "$1" -r '10'
|
||||||
}
|
}
|
||||||
|
|
||||||
player_droid () {
|
player_droid() {
|
||||||
am start --user 0 -a android.intent.action.VIEW -d "$1" -n is.xyz.mpv/.MPVActivity >/dev/null 2>&1
|
am start --user 0 -a android.intent.action.VIEW -d "$1" -n is.xyz.mpv/.MPVActivity >/dev/null 2>&1
|
||||||
}
|
}
|
||||||
|
|
||||||
player_linux () {
|
player_linux() {
|
||||||
setsid -f mpv "$1" --force-media-title="$2"
|
setsid -f mpv "$1" --force-media-title="$2"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user