mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-03-20 01:37:45 +01:00
Compare commits
10 Commits
7d7cf12f55
...
2e331edab7
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2e331edab7 | ||
|
|
86f05abcce | ||
|
|
798ba175d0 | ||
|
|
a360fadd5f | ||
|
|
8315e4c885 | ||
|
|
f26e5678e6 | ||
|
|
ed9633da3f | ||
|
|
ec8e82745e | ||
|
|
44cb5f12e6 | ||
|
|
5ac6bde1d1 |
@ -4,7 +4,7 @@
|
|||||||
<alias>
|
<alias>
|
||||||
<family>serif</family>
|
<family>serif</family>
|
||||||
<prefer>
|
<prefer>
|
||||||
<family>Linux Libertine</family>
|
<family>Libertinus Serif</family>
|
||||||
<family>Joy Pixels</family>
|
<family>Joy Pixels</family>
|
||||||
<family>Noto Color Emoji</family>
|
<family>Noto Color Emoji</family>
|
||||||
<family>FontAwesome</family>
|
<family>FontAwesome</family>
|
||||||
@ -13,7 +13,7 @@
|
|||||||
<alias>
|
<alias>
|
||||||
<family>sans-serif</family>
|
<family>sans-serif</family>
|
||||||
<prefer>
|
<prefer>
|
||||||
<family>Linux Biolinum</family>
|
<family>Libertinus Sans</family>
|
||||||
<family>Joy Pixels</family>
|
<family>Joy Pixels</family>
|
||||||
<family>Noto Color Emoji</family>
|
<family>Noto Color Emoji</family>
|
||||||
<family>FontAwesome</family>
|
<family>FontAwesome</family>
|
||||||
@ -22,7 +22,7 @@
|
|||||||
<alias>
|
<alias>
|
||||||
<family>sans</family>
|
<family>sans</family>
|
||||||
<prefer>
|
<prefer>
|
||||||
<family>Linux Biolinum</family>
|
<family>Libertinus Sans</family>
|
||||||
<family>Joy Pixels</family>
|
<family>Joy Pixels</family>
|
||||||
<family>Noto Color Emoji</family>
|
<family>Noto Color Emoji</family>
|
||||||
<family>FontAwesome</family>
|
<family>FontAwesome</family>
|
||||||
@ -32,7 +32,7 @@
|
|||||||
<family>monospace</family>
|
<family>monospace</family>
|
||||||
<prefer>
|
<prefer>
|
||||||
<family>Noto Sans Mono</family>
|
<family>Noto Sans Mono</family>
|
||||||
<family>Liberation Mono</family>
|
<family>Libertinus Mono</family>
|
||||||
<family>FontAwesome</family>
|
<family>FontAwesome</family>
|
||||||
<family>Braille</family>
|
<family>Braille</family>
|
||||||
</prefer>
|
</prefer>
|
||||||
|
|||||||
@ -16,5 +16,8 @@ IFS='
|
|||||||
|
|
||||||
# Update each found profile.
|
# Update each found profile.
|
||||||
for profile in $profiles; do
|
for profile in $profiles; do
|
||||||
arkenfox-updater -p "${profile%%/user.js*}" -s
|
userjs=${profile%%/user.js*}
|
||||||
|
user=$(stat -c '%U' "$userjs") || continue
|
||||||
|
|
||||||
|
su -l "$user" -c "arkenfox-updater -c -p $userjs -s"
|
||||||
done
|
done
|
||||||
|
|||||||
@ -15,7 +15,7 @@ fi
|
|||||||
case "$url" in
|
case "$url" in
|
||||||
*mkv|*webm|*mp4|*youtube.com/watch*|*youtube.com/playlist*|*youtube.com/shorts*|*youtu.be*|*hooktube.com*|*bitchute.com*|*videos.lukesmith.xyz*|*odysee.com*)
|
*mkv|*webm|*mp4|*youtube.com/watch*|*youtube.com/playlist*|*youtube.com/shorts*|*youtu.be*|*hooktube.com*|*bitchute.com*|*videos.lukesmith.xyz*|*odysee.com*)
|
||||||
setsid -f mpv -quiet "$url" >/dev/null 2>&1 ;;
|
setsid -f mpv -quiet "$url" >/dev/null 2>&1 ;;
|
||||||
*png|*jpg|*jpe|*jpeg|*gif)
|
*png|*jpg|*jpe|*jpeg|*gif|*webp)
|
||||||
curl -sL "$url" > "/tmp/$(echo "$url" | sed "s/.*\///;s/%20/ /g")" && nsxiv -a "/tmp/$(echo "$url" | sed "s/.*\///;s/%20/ /g")" >/dev/null 2>&1 & ;;
|
curl -sL "$url" > "/tmp/$(echo "$url" | sed "s/.*\///;s/%20/ /g")" && nsxiv -a "/tmp/$(echo "$url" | sed "s/.*\///;s/%20/ /g")" >/dev/null 2>&1 & ;;
|
||||||
*pdf|*cbz|*cbr)
|
*pdf|*cbz|*cbr)
|
||||||
curl -sL "$url" > "/tmp/$(echo "$url" | sed "s/.*\///;s/%20/ /g")" && zathura "/tmp/$(echo "$url" | sed "s/.*\///;s/%20/ /g")" >/dev/null 2>&1 & ;;
|
curl -sL "$url" > "/tmp/$(echo "$url" | sed "s/.*\///;s/%20/ /g")" && zathura "/tmp/$(echo "$url" | sed "s/.*\///;s/%20/ /g")" >/dev/null 2>&1 & ;;
|
||||||
|
|||||||
@ -36,7 +36,7 @@ filter() { sed "s/ /:/g" | awk -F':' '$7==""{printf "%s%s (%s) %s\n",$1,$3,$5,$6
|
|||||||
unopenedluks="$(for drive in $allluks; do
|
unopenedluks="$(for drive in $allluks; do
|
||||||
uuid="${drive%% *}"
|
uuid="${drive%% *}"
|
||||||
uuid="${uuid//-}" # This is a bashism.
|
uuid="${uuid//-}" # This is a bashism.
|
||||||
for open in $decrypted; do
|
[ -n "$decrypted" ] && for open in $decrypted; do
|
||||||
[ "$uuid" = "$open" ] && break 1
|
[ "$uuid" = "$open" ] && break 1
|
||||||
done && continue 1
|
done && continue 1
|
||||||
echo "🔒 $drive"
|
echo "🔒 $drive"
|
||||||
|
|||||||
@ -13,11 +13,18 @@ bgloc="${XDG_DATA_HOME:-$HOME/.local/share}/bg"
|
|||||||
dunstconf="${XDG_CONFIG_HOME:-$HOME/.config}/dunst/dunstrc"
|
dunstconf="${XDG_CONFIG_HOME:-$HOME/.config}/dunst/dunstrc"
|
||||||
zathuraconf="${XDG_CONFIG_HOME:-$HOME/.config}/zathura/zathurarc"
|
zathuraconf="${XDG_CONFIG_HOME:-$HOME/.config}/zathura/zathurarc"
|
||||||
|
|
||||||
|
# Give -s as parameter to make notifications silent.
|
||||||
|
while getopts "s" o; do case "${o}" in
|
||||||
|
s) silent='1' ;;
|
||||||
|
esac done
|
||||||
|
|
||||||
|
shift $((OPTIND - 1))
|
||||||
|
|
||||||
trueloc="$(readlink -f "$1")" &&
|
trueloc="$(readlink -f "$1")" &&
|
||||||
case "$(file --mime-type -b "$trueloc")" in
|
case "$(file --mime-type -b "$trueloc")" in
|
||||||
image/* ) ln -sf "$(readlink -f "$1")" "$bgloc" && notify-send -i "$bgloc" "Changing wallpaper..." ;;
|
image/* ) ln -sf "$trueloc" "$bgloc" && [ -z "$silent" ] && notify-send -i "$bgloc" "Changing wallpaper..." ;;
|
||||||
inode/directory ) ln -sf "$(find "$trueloc" -iregex '.*.\(jpg\|jpeg\|png\|gif\)' -type f | shuf -n 1)" "$bgloc" && notify-send -i "$bgloc" "Random Wallpaper chosen." ;;
|
inode/directory ) ln -sf "$(find "$trueloc" -iregex '.*.\(jpg\|jpeg\|png\|gif\)' -type f | shuf -n 1)" "$bgloc" && [ -z "$silent" ] && notify-send -i "$bgloc" "Random Wallpaper chosen." ;;
|
||||||
*) notify-send "🖼️ Error" "Not a valid image or directory." ; exit 1;;
|
*) [ -z "$silent" ] && notify-send "🖼️ Error" "Not a valid image or directory." ; exit 1;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# If pywal is installed, use it.
|
# If pywal is installed, use it.
|
||||||
|
|||||||
@ -17,10 +17,17 @@ case $BLOCK_BUTTON in
|
|||||||
6) "$TERMINAL" -e "$EDITOR" "$0" ;;
|
6) "$TERMINAL" -e "$EDITOR" "$0" ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
if grep -xq 'up' /sys/class/net/w*/operstate 2>/dev/null ; then
|
# Wifi
|
||||||
|
if [ "$(cat /sys/class/net/w*/operstate 2>/dev/null)" = 'up' ] ; then
|
||||||
wifiicon="$(awk '/^\s*w/ { print "📶", int($3 * 100 / 70) "% " }' /proc/net/wireless)"
|
wifiicon="$(awk '/^\s*w/ { print "📶", int($3 * 100 / 70) "% " }' /proc/net/wireless)"
|
||||||
elif grep -xq 'down' /sys/class/net/w*/operstate 2>/dev/null ; then
|
elif [ "$(cat /sys/class/net/w*/operstate 2>/dev/null)" = 'down' ] ; then
|
||||||
grep -xq '0x1003' /sys/class/net/w*/flags && wifiicon="📡 " || wifiicon="❌ "
|
[ "$(cat /sys/class/net/w*/flags 2>/dev/null)" = '0x1003' ] && wifiicon="📡 " || wifiicon="❌ "
|
||||||
fi
|
fi
|
||||||
|
|
||||||
printf "%s%s%s\n" "$wifiicon" "$(sed "s/down/❎/;s/up/🌐/" /sys/class/net/e*/operstate 2>/dev/null)" "$(sed "s/.*/🔒/" /sys/class/net/tun*/operstate 2>/dev/null)"
|
# Ethernet
|
||||||
|
[ "$(cat /sys/class/net/e*/operstate 2>/dev/null)" = 'up' ] && ethericon="🌐" || ethericon="❎"
|
||||||
|
|
||||||
|
# TUN
|
||||||
|
[ -n "$(cat /sys/class/net/tun*/operstate 2>/dev/null)" ] && tunicon=" 🔒"
|
||||||
|
|
||||||
|
printf "%s%s%s\n" "$wifiicon" "$ethericon" "$tunicon"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user