From 41be8167b6539c63831b4590cbdeb370bfa5c33a Mon Sep 17 00:00:00 2001 From: Sheldon Lee Date: Thu, 16 May 2024 00:07:04 +0800 Subject: [PATCH] Add untracked scripts, links and files used by scripts --- .config/scripts/bin/prefixhelper.sh | 1 + .config/scripts/functions/git | 8 ++++++ .../scripts/libvirt/usb-devices/bluetooth.xml | 6 ++++ .../libvirt/usb-devices/external-hdd.xml | 6 ++++ .config/scripts/libvirt/usb-devices/hhkb.xml | 6 ++++ .../scripts/libvirt/usb-devices/intent.xml | 6 ++++ .../libvirt/usb-devices/lamzu-atlantis.xml | 6 ++++ .config/scripts/steam/prefixhelper.sh | 26 ++++++++++++++++++ .../wayland-run-on-new-display | Bin 0 -> 16488 bytes 9 files changed, 65 insertions(+) create mode 120000 .config/scripts/bin/prefixhelper.sh create mode 100644 .config/scripts/functions/git create mode 100644 .config/scripts/libvirt/usb-devices/bluetooth.xml create mode 100644 .config/scripts/libvirt/usb-devices/external-hdd.xml create mode 100644 .config/scripts/libvirt/usb-devices/hhkb.xml create mode 100644 .config/scripts/libvirt/usb-devices/intent.xml create mode 100644 .config/scripts/libvirt/usb-devices/lamzu-atlantis.xml create mode 100755 .config/scripts/steam/prefixhelper.sh create mode 100755 .config/scripts/sway/wayland-run-on-new-display/wayland-run-on-new-display diff --git a/.config/scripts/bin/prefixhelper.sh b/.config/scripts/bin/prefixhelper.sh new file mode 120000 index 0000000..88dcb16 --- /dev/null +++ b/.config/scripts/bin/prefixhelper.sh @@ -0,0 +1 @@ +../steam/prefixhelper.sh \ No newline at end of file diff --git a/.config/scripts/functions/git b/.config/scripts/functions/git new file mode 100644 index 0000000..d3f2baf --- /dev/null +++ b/.config/scripts/functions/git @@ -0,0 +1,8 @@ +#!/bin/bash + +gitshow() +{ + hash=$(git log --oneline . | fzf | awk '{print$1}') + [ -z "$hash" ] && return + git show "$hash" +} diff --git a/.config/scripts/libvirt/usb-devices/bluetooth.xml b/.config/scripts/libvirt/usb-devices/bluetooth.xml new file mode 100644 index 0000000..0bac860 --- /dev/null +++ b/.config/scripts/libvirt/usb-devices/bluetooth.xml @@ -0,0 +1,6 @@ + + + + + + diff --git a/.config/scripts/libvirt/usb-devices/external-hdd.xml b/.config/scripts/libvirt/usb-devices/external-hdd.xml new file mode 100644 index 0000000..bef204f --- /dev/null +++ b/.config/scripts/libvirt/usb-devices/external-hdd.xml @@ -0,0 +1,6 @@ + + + + + + diff --git a/.config/scripts/libvirt/usb-devices/hhkb.xml b/.config/scripts/libvirt/usb-devices/hhkb.xml new file mode 100644 index 0000000..a23fa59 --- /dev/null +++ b/.config/scripts/libvirt/usb-devices/hhkb.xml @@ -0,0 +1,6 @@ + + + + + + diff --git a/.config/scripts/libvirt/usb-devices/intent.xml b/.config/scripts/libvirt/usb-devices/intent.xml new file mode 100644 index 0000000..8ec7192 --- /dev/null +++ b/.config/scripts/libvirt/usb-devices/intent.xml @@ -0,0 +1,6 @@ + + + + + + diff --git a/.config/scripts/libvirt/usb-devices/lamzu-atlantis.xml b/.config/scripts/libvirt/usb-devices/lamzu-atlantis.xml new file mode 100644 index 0000000..669f235 --- /dev/null +++ b/.config/scripts/libvirt/usb-devices/lamzu-atlantis.xml @@ -0,0 +1,6 @@ + + + + + + diff --git a/.config/scripts/steam/prefixhelper.sh b/.config/scripts/steam/prefixhelper.sh new file mode 100755 index 0000000..a933bed --- /dev/null +++ b/.config/scripts/steam/prefixhelper.sh @@ -0,0 +1,26 @@ +#!/bin/sh + +steamdir="$HOME/.local/share/Steam" +steamapps="$steamdir/steamapps" +common="$steamapps/common" +compatdata="$steamapps/compatdata" + +id="1611740" +proton_version="Proton 6.3" + +if [ ! -e "$compatdata/$id/pfx" ]; then + echo "Prefix not found." + exit +fi + +if [ ! -e "$common/$proton_version/proton" ]; then + echo "Proton not found." + exit +fi + +echo "$PWD/$1" + +STEAM_COMPAT_DATA_PATH="$compatdata/$id" \ +STEAM_COMPAT_CLIENT_INSTALL_PATH="$steamdir" \ +WINEPREFIX="$compatdata/$id/pfx" \ +"$common/$proton_version/proton" run "$PWD/$1" diff --git a/.config/scripts/sway/wayland-run-on-new-display/wayland-run-on-new-display b/.config/scripts/sway/wayland-run-on-new-display/wayland-run-on-new-display new file mode 100755 index 0000000000000000000000000000000000000000..7a1e5927873addb748a4bc422898091911130771 GIT binary patch literal 16488 zcmeHOeQX@n5r5~z!F(jPfzS}3SyG^Z))zY@#sQ_Ali1lrabiM}(o$G1cW2*~^WEic zoj7SzObwK)mDZpNMHQ_g`XOllF;z=b1jRr@LWPin1WG?t8B`)$q12#2-LG7K^WMy5 zZ@EJVRjMl8vvz0ZH#6^JcK7x@@4UM@Hg?to0!qp(^*KdSL!&`Lta!AI8IX`_Q*&`% zq&}(UK%T8JqYoJZttrQAN@*SAvp~sj0WoFhr3O|)rH4exuTpvRY@-pX8jMVSwZyXQ zr@!NV2o-&?J&T-CEPXE0qhx?0)aysF8EMjLHL|LdPI6r8xLxrhnEZ~i-%<7xI?e3~ zm3UH2=xF2m{InT5Dnk8!arX05OM4ZETa5k9Z@STs(_T0Gb#ujjx{=!xD%biZ_)%Ow zYLUylh1;ui9Ws0!gmQS*(qv*s>++?^Xj3wg>K|wtXlre1T^`J(gUfUms9zQix~JA{ z+NJ_3Fh-d8*RTvo7t&FmNKf`uDCFF{=Ff*rdOgm--Qd(Ygk3-!%CXqXedDRN(UtEG z%VS{_p7Xol$;V%opyF~kwP*Q_A%7o7Is48E`27{|ofYuQEA;0w*jqUK<#7Pz`g6Df z{`(5}$qM-E74U@>`uSPdTR8mX1b}k=JQwvW_8UXK6-T3*uMYBazJzUN!@f~1RD&S{ z$n&b4^;^4~Xe=A+P2}8Ic5By~WI7ew8s3qNDaYyUOQ)Qi8_v3pV@%5$?oK+HYGUMSy}2`RI2v`5)Rj~$OK3Ea z%Ot~loJcyAibY&6M5?eGiF>hZx<3_lvx$t##Io6RR>cMquIfo=?*tc%?8;zJcoZW% zsJ?I_rE)IDpM@ea5O#VJscP@aXA^D=%50>MykL?_JIQn;?9%8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