New backup 2025-03-21 14:00:08
This commit is contained in:
parent
9847782a6b
commit
a7ab7c4b25
2 changed files with 0 additions and 24 deletions
|
@ -1,8 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
|
|
||||||
if [ "$(pactl get-sink-mute @DEFAULT_SINK@)" = "Mute: yes" ]; then
|
|
||||||
echo 0
|
|
||||||
exit
|
|
||||||
else
|
|
||||||
echo "$(wpctl get-volume @DEFAULT_AUDIO_SINK@ | sed 's/[^0-9]//g')"
|
|
||||||
fi
|
|
|
@ -1,16 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
nm_active=`nmcli con show --active`
|
|
||||||
vpn_active='false'
|
|
||||||
|
|
||||||
if [ -z ${1} ];then
|
|
||||||
if echo "${nm_active}" | grep -q 'vpn' || echo "${nm_active}" | grep -q 'wireguard';then
|
|
||||||
vpn_active='true'
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
if echo "${nm_active}" | grep -q "${1}";then
|
|
||||||
vpn_active='true'
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
printf '%s' "${vpn_active}"
|
|
Loading…
Add table
Reference in a new issue