This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (-not (Test-Path "./ids.txt")) { | |
Write-Host "The 'ids.txt' has not yet been created. It will be created now. Please copy-paste all the ids you'd like to have audio for into it." | |
"" | Out-File ./ids.txt | |
Read-Host "Once you are done, press ENTER" | |
} | |
[string[]] $audioFiles = (Get-ChildItem *.wav).FullName | |
[string[]] $ids = (Get-Content -Path ./ids.txt -Raw).Split([Environment]::NewLine, [System.StringSplitOptions]::RemoveEmptyEntries) | |
if (!(Test-Path -path "./audioreplacements/")) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ! command -v steamcmd &> /dev/null | |
then | |
# Install SteamCMD | |
echo "SteamCMD was not found, installing..." | |
sudo update | |
sudo apt install software-properties-common; | |
sudo echo "deb http://ftp.us.debian.org/debian bookworm main non-free" > /etc/apt/sources.list.d/non-free.list | |
sudo dpkg --add-architecture i386; | |
sudo apt update | |
sudo apt install steamcmd |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# NOTE: Button numbers 4-7 do not map to any buttons for technical reasons, thus the skip to 8 | |
# Undo | |
xsetwacom set "HUION Huion Tablet_GS1331 Pad pad" button 1 key +Ctrl +Z | |
# Redo | |
xsetwacom set "HUION Huion Tablet_GS1331 Pad pad" button 2 key +Ctrl +Shift +Z | |
# Ctrl for easy zoom access | |
xsetwacom set "HUION Huion Tablet_GS1331 Pad pad" button 3 key +Ctrl | |
# Cut | |
xsetwacom set "HUION Huion Tablet_GS1331 Pad pad" button 8 key Ctrl X |