Compare commits

...

11 Commits

Author SHA1 Message Date
c786299e91 Update noagendastream.sh 2025-06-23 15:57:21 -04:00
d9b6d6b3c5 Follow guidlines 2022-10-09 07:45:01 -07:00
7a23304c9c New Script: steamloop.sh 2022-03-31 06:57:55 -07:00
eeecf8df23 trb.sh: add title to notify-send frame 2021-11-03 10:48:15 -07:00
5f289995ba svc.sh: check if arg 2 is present for up cmd 2021-10-31 21:35:49 -07:00
5542e2ab9a rtlwifi-setup: change drive source 2021-10-27 21:50:51 -07:00
43cca1cb99 svc.sh: remove unused color vars 2021-10-26 20:57:58 -07:00
e2de8ac908 svc.sh: error handling and debug msg 2021-10-26 20:57:07 -07:00
da2f64b165 svc.sh: fix conditional 2021-10-26 20:53:14 -07:00
ddbd422e11 svc.sh: fix conditional 2021-10-26 20:52:26 -07:00
7e9f60c3ec svc.sh: remove unused variable 2021-10-26 20:50:53 -07:00
6 changed files with 43 additions and 30 deletions

View File

@@ -87,7 +87,7 @@ withoutLoop(){
elif [ $? = "1" ];then elif [ $? = "1" ];then
if [ "${play_sound}" = "true" ];then if [ "${play_sound}" = "true" ];then
${sound_player} ${player_opts} ${sound_file} "${sound_message}" & ${sound_player} "${player_opts}" "${sound_file}" "${sound_message}" &
fi fi

View File

@@ -2,5 +2,9 @@
if [ -f /usr/bin/mpv ];then if [ -f /usr/bin/mpv ];then
mpv http://listen.noagendastream.com/noagenda mpv "http://listen.noagendastream.com/noagenda"
elif [ -f "/usr/bin/vlc" ];then
vlc "http://listen.noagendastream.com/noagenda"
else [ -f "/usr/bin/xdg-open" ];then
xdg-open "http://listen.noagendastream.com/noagenda"
fi fi

View File

@@ -1,17 +1,17 @@
#!/bin/bash #!/bin/bash
pkgname="rtlwifi" pkgname="rtl88x2bu-git"
pkgurl="https://github.com/cilynx/rtl88x2bu.git" pkgurl="https://github.com/RinCat/RTL88x2BU-Linux-Driver.git"
tmpdir="/tmp" tmpdir="/usr/src"
_fetch_deps(){ _fetch_deps(){
if [ -f /usr/bin/apt ];then if [ -f /usr/bin/apt ];then
apt install git dnsmasq hostapd bc build-essential dkms wget unzip rsync sudo apt install git dnsmasq hostapd bc build-essential dkms wget unzip rsync
elif [ -f /usr/bin/dnf ];then elif [ -f /usr/bin/dnf ];then
dnf group install "Development Tools" sudo dnf group install "Development Tools"
dnf install unzip dnsmasq hostapd bc dkms kernel-headers rsync wget sudo dnf install unzip dnsmasq hostapd bc dkms kernel-headers rsync wget
else else
echo "No supported package manager" echo "No supported package manager"
fi fi
@@ -20,7 +20,7 @@ _fetch_deps(){
_download(){ _download(){
if [ ! -d "${tmpdir}"/"${pkgname}" ];then if [ ! -d "${tmpdir}"/"${pkgname}" ];then
git clone "${pkgurl}" "${tmpdir}"/"${pkgname}" sudo git clone "${pkgurl}" "${tmpdir}"/"${pkgname}"
fi fi
} }
@@ -30,14 +30,10 @@ _apply_patch(){
} }
_install(){ _install(){
cd "${tmpdir}"/"${pkgname}" || exit 1 sed -i 's/PACKAGE_VERSION="@PKGVER@"/PACKAGE_VERSION="git"/g' /usr/src/rtl88x2bu-git/dkms.conf
#_apply_patch sudo dkms add -m rtl88x2bu -v git
VER=$(sed -n 's/\PACKAGE_VERSION="\(.*\)"/\1/p' dkms.conf) sudo dkms autoinstall
rsync -rvhP ./ /usr/src/rtl88x2bu-"${VER}" sudo modprobe 88x2bu
dkms add -m rtl88x2bu -v "${VER}"
dkms build -m rtl88x2bu -v "${VER}"
dkms install -m rtl88x2bu -v "${VER}"
modprobe 88x2bu
} }
_fetch_deps _fetch_deps

14
steamloop.sh Executable file
View File

@@ -0,0 +1,14 @@
#!/bin/bash
# Running Steam in Wine causes Steam on Linux to lose connection
# This makes it hard to use Steam link if Steam has to be closed to reset
# This script just reopens Steam on the host so that Steam link can reconnect.
while true;do
if [ -z "$(pidof steam)" ];then
sleep 10s
/usr/bin/steam
fi
done

21
svc.sh
View File

@@ -17,26 +17,20 @@
## ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ## ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
############################################################################################## ##############################################################################################
RED='\033[0;31m'
LRED="\033[1;31m" LRED="\033[1;31m"
BLUE="\033[0;34m"
LBLUE="\033[1;34m"
GREEN="\033[0;32m"
LGREEN="\033[1;32m" LGREEN="\033[1;32m"
YELLOW="\033[1;33m"
CYAN="\033[0;36m"
LCYAN="\033[1;36m" LCYAN="\033[1;36m"
PURPLE="\033[0;35m"
LPURPLE="\033[1;35m"
BWHITE="\e[1m"
NC='\033[0m' # No Color NC='\033[0m' # No Color
osType=$(lsb-release -a | grep Distributor | cut -d ':' -f 2,2)
if [[ -f "/usr/bin/sv " ]];then if [[ -f "/usr/bin/sv " ]];then
serviceManager="runit" serviceManager="runit"
echo -e "${LGREEN}Detected Runit${NC}\n"
elif [[ -f "/usr/bin/systemctl" ]];then elif [[ -f "/usr/bin/systemctl" ]];then
serviceManager="systemd" serviceManager="systemd"
echo -e "${LGREEN}Detected SystemD${NC}\n"
else
echo -e "${LRED}no supported service manager found${NC}\n"
fi fi
@@ -139,7 +133,12 @@ systemd(){
echo echo
;; ;;
up) up)
if [[ ! -z "${2}" ]];then
systemctl status "${2}"
else
systemctl --type=service --state=running systemctl --type=service --state=running
fi
;; ;;
start) start)
@@ -166,6 +165,6 @@ systemd(){
if [[ "${serviceManager}" = "runit" ]];then if [[ "${serviceManager}" = "runit" ]];then
runit "${1}" "${2}" runit "${1}" "${2}"
elif [[ "${serviceManager}" ]];then elif [[ "${serviceManager}" = "systemd" ]];then
systemd "${1}" "${2}" systemd "${1}" "${2}"
fi fi

2
trb.sh
View File

@@ -20,7 +20,7 @@ zenity --question --text "Do you want to trim?"
if [[ $? == 1 ]];then if [[ $? == 1 ]];then
exit exit
else else
notify-send "Trimming..." notify-send -a "FS-Trim" "Trimming..."
echo "Trimming..." echo "Trimming..."
results=$(${su_prompt} /sbin/fstrim -va) results=$(${su_prompt} /sbin/fstrim -va)
notify-send "${results}" notify-send "${results}"