From af7e14bcaf5c06fa5273408e563bb408d29ed019 Mon Sep 17 00:00:00 2001 From: Siina Mashek Date: Sat, 15 Jul 2023 21:28:08 +0300 Subject: [PATCH] removing unused scripts --- apsalar/audacious | 5 ----- apsalar/dwarf-fortress | 24 ------------------------ apsalar/lockmon.sh | 11 ----------- apsalar/starcitizen | 4 ---- common/song | 12 ------------ 5 files changed, 56 deletions(-) delete mode 100755 apsalar/audacious delete mode 100755 apsalar/dwarf-fortress delete mode 100755 apsalar/lockmon.sh delete mode 100755 apsalar/starcitizen delete mode 100755 common/song diff --git a/apsalar/audacious b/apsalar/audacious deleted file mode 100755 index b95250d..0000000 --- a/apsalar/audacious +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh -/usr/bin/rescrobbled & -/usr/bin/audacious -kill -9 $(pgrep -f rescrobbled) -exit diff --git a/apsalar/dwarf-fortress b/apsalar/dwarf-fortress deleted file mode 100755 index c0c1ae8..0000000 --- a/apsalar/dwarf-fortress +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/sh - -dwarfdir="/games/dwarf-fortress" -timestamp=$(date +"%Y%m%d-%H.%M.%S") - -# Remove libstdc++.so.6 since it's too old for bitbreaker -if [[ -f "$dwarfdir/libs/libstdc++.so.6" ]]; then - rm "$dwarfdir/libs/libstdc++.so.6" - echo "Removed bundled libstdc++.so.6" -fi - -# Clear the gamelog for stream -if [[ -f "$dwarfdir/gamelog.txt" ]]; then - mv "$dwarfdir/gamelog.txt" "$dwarfdir/logs/gamelog-$timestamp.txt" -fi - -cd $dwarfdir - -if [[ -f "dfhack" ]]; then - echo "DFHack installed, using dfhack" - alacritty -e ./dfhack -t "DFHack" -else - ./df -fi diff --git a/apsalar/lockmon.sh b/apsalar/lockmon.sh deleted file mode 100755 index 3208a56..0000000 --- a/apsalar/lockmon.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/sh - -bus-monitor --session "type='signal',interface='org.freedesktop.ScreenSaver'" | - while read x; do - case "$x" in - # Simulate monitor being off - *"boolean true"*) xrandr --output HDMI-0 --brightness 0.0;; - # Restore monitor brightness - *"boolean false"*) xrandr --output HDMI-0 --brightness 1.0;; - esac - done diff --git a/apsalar/starcitizen b/apsalar/starcitizen deleted file mode 100755 index 1fe6510..0000000 --- a/apsalar/starcitizen +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh - -LAUNCHER="c:\\Program Files\\Roberts Space Industries\\RSI Launcher\\RSI Launcher.exe" -WINEPREFIX=/data/starcitizen wine "$LAUNCHER" --use-gl=osmesa diff --git a/common/song b/common/song deleted file mode 100755 index 28aea37..0000000 --- a/common/song +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/sh - -player="spotify" -qdbus org.mpris.MediaPlayer2.$player /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Metadata >/tmp/currentsong 2> /dev/null -artist=$(cat /tmp/currentsong | grep "xesam:artist" | sed 's/.*artist: //') -title=$(cat /tmp/currentsong | grep "xesam:title" | sed 's/.*title: //') - -if [ "${artist}" != "" ] && [ "${title}" != "" ]; then - echo ${artist} - ${title} -else - echo "N/A" -fi