From 44b7895bdf04a624aa9d8d6cd91c0a84bb419077 Mon Sep 17 00:00:00 2001 From: surtur Date: Fri, 14 Jul 2023 14:09:49 +0200 Subject: [PATCH] rm old scripts --- bin/mgp | 17 ------------- bin/screen-share-sway | 58 ------------------------------------------- bin/v4l2pls | 22 ---------------- home-surtur.nix | 8 ------ 4 files changed, 105 deletions(-) delete mode 100755 bin/mgp delete mode 100755 bin/screen-share-sway delete mode 100755 bin/v4l2pls diff --git a/bin/mgp b/bin/mgp deleted file mode 100755 index 52ad284..0000000 --- a/bin/mgp +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/bash - -# sort of automate updating some repos I like to track - -fol=~/utils - -dat_lst=("avalonia-dotnet-templates" "bitbot" "docker-tray" "ghidra" "icons/flat-remix" $(echo themes/flat-remix-{gtk,gnome}) $(echo int0x80/{1337-Noms-The-Hacker-Cookbook,anti-forensics,AWSBucketDump,blog,ctf-vm,dotfiles,FSEventsParser,githump,gobuster,iot-stuff,killallthehumans,lolsolved,nimbostratus,Packt-Publishing-Free-Learning,privoxy-mods,pxe,reversing,S3Scanner,slurp,sqlmap,SweetSecurity,tcispy,windows}) "MEGA-Instances" "sdtool" "scripts-vermaden" "TrebleShot-Desktop" "QSyncthingTray" "x11docker" "XorCurses" "Ventoy" "tea" "keepassx" "drone-cli" "flashfocus" "mermaid-live-editor" "screenkey" "rustlings" "systembus-notify" "BLAKE3" "multibootusb") - -#for i in $dat_list; do -for i in "${dat_lst[@]}"; do - echo "change directory to \"$i\"" - cd $fol/$i - echo "git pull" - git pull - echo -e "get back to \"$fol\"\n" - cd $fol -done diff --git a/bin/screen-share-sway b/bin/screen-share-sway deleted file mode 100755 index b82057d..0000000 --- a/bin/screen-share-sway +++ /dev/null @@ -1,58 +0,0 @@ -#!/bin/bash - -# Screen Sharing with OBS Studio on Fedora and Sway -# ref: https://github.com/hw0lff/screen-share-sway - -grep -q "alias obs" ~/.zshrc || echo 'alias obs="QT_QPA_PLATFORM=xcb obs"' >> ~/.zshrc - -V4L2_VERSION="0.12.5" -U="$HOME/utils" -MAKEFLAGS="$MAKEFLAGS -j$(nproc)" # take the honeybadger approach -printf '*- MAKEFLAGS: %s\n*- v4l2 version: %s\n' "$MAKEFLAGS" "$V4L2_VERSION" - -# grab and build latest v4l2 module -"$U"/dotfiles/bin/v4l2pls "$V4L2_VERSION" - -# ref: https://github.com/obsproject/obs-studio/wiki/Install-Instructions#red-hatfedora-based-build-directions -if [ ! -d "$U/obs-studio" ]; then - cd "$U" || exit - git clone --recursive https://github.com/obsproject/obs-studio.git -fi -cd "$U"/obs-studio || exit -git pull -git submodule update --recursive -mkdir -pv build && cd build -cmake -DUNIX_STRUCTURE=1 -DCMAKE_INSTALL_PREFIX=/usr .. -make clean -sudo make install - - -if [ ! -d "$U/obs-v4l2sink" ]; then - cd "$U" || exit - git clone https://github.com/CatxFish/obs-v4l2sink.git -fi -cd "$U"/obs-v4l2sink || exit -git pull - -mkdir -pv build && cd build -cmake -DLIBOBS_INCLUDE_DIR="$HOME/utils/obs-studio/libobs" -DCMAKE_INSTALL_PREFIX="$HOME/.local" .. -make -make install - - -if [ ! -d "$U/wlrobs" ]; then - cd "$U" || exit - hg clone https://hg.sr.ht/~scoopta/wlrobs -fi -cd "$U"/wlrobs || exit -hg pull -hg update -if [ ! -d build ]; then - mkdir -pv build - meson build -fi -meson --reconfigure build -ninja -C build -TGT="$HOME/.config/obs-studio/plugins/wlrobs/bin/64bit" -mkdir -pv "$TGT" -cp -v build/libwlrobs.so "$TGT" diff --git a/bin/v4l2pls b/bin/v4l2pls deleted file mode 100755 index f637973..0000000 --- a/bin/v4l2pls +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/bash - -nutmp=$(mktemp -d) -cd "$nutmp" -mkdir -v src && cd ./src/ -version="$1" -modn="v4l2loopback" -# download and extract the tarball -curl -L https://github.com/umlaeute/${modn}/archive/v${version}.tar.gz | tar xvzf - -# sudo mkdir -pv /usr/src/${modn}-${version} -sudo cp -Rv ${modn}-${version} /usr/src/ -# build and install the DKMS-module (requires superuser privileges) -sudo dkms add -m ${modn} -v ${version} -sudo dkms build -m ${modn} -v ${version} -sudo dkms install -m ${modn} -v ${version} - -sudo rm -rfv /usr/src/${modn}-${version} -cd /tmp -rm -rfv $nutmp - -# see -# https://github.com/umlaeute/v4l2loopback#load-the-module-at-boot diff --git a/home-surtur.nix b/home-surtur.nix index 899b99e..66bd0cf 100644 --- a/home-surtur.nix +++ b/home-surtur.nix @@ -219,10 +219,6 @@ in { source = bin/localbsync; executable = true; }; - ".local/bin/mgp" = { - source = bin/mgp; - executable = true; - }; ".local/bin/parec-wr" = { source = bin/parec-wr; executable = true; @@ -235,10 +231,6 @@ in { source = bin/qst_up; executable = true; }; - ".local/bin/v4l2pls" = { - source = bin/v4l2pls; - executable = true; - }; ".local/bin/winprint.sh" = { source = bin/winprint.sh; executable = true;