Fix line-endings; Increase portability; Add speedtyper.py

This commit is contained in:
olari
2019-05-26 23:05:28 +03:00
parent 661a5984a3
commit 63a1b4f501
33 changed files with 1447 additions and 1341 deletions

View File

@@ -1,25 +1,22 @@
#!/bin/bash
# Discard on use
rm $0
# Increase nice and rtprio limits.
local user=$(cut -d' ' -f1 <<< $(who))
echo "$user - nice -20
$user - rtprio 99" | sudo tee --append /etc/security/limits.conf
# Create pulseaudio config.
sudo mkdir -p /etc/pulse/daemon.conf.d/
echo "high-priority = yes
nice-level = -15
realtime-scheduling = yes
realtime-priority = 50
resample-method = speex-float-0
default-fragments = 5
default-fragment-size-msec = 2" | sudo tee --append /etc/pulse/daemon.conf.d/10-lower-latency.conf
# Disable timer-based scheduling.
sudo sed -i 's/load-module module-udev-det*/load-module module-udev-detect tsched=0/g' /etc/pulse/default.pa
#!/usr/bin/env bash
# Increase nice and rtprio limits.
local user=$(cut -d' ' -f1 <<< $(who))
echo "$user - nice -20
$user - rtprio 99" | sudo tee --append /etc/security/limits.conf
# Create pulseaudio config.
sudo mkdir -p /etc/pulse/daemon.conf.d/
echo "high-priority = yes
nice-level = -15
realtime-scheduling = yes
realtime-priority = 50
resample-method = speex-float-0
default-fragments = 5
default-fragment-size-msec = 2" | sudo tee --append /etc/pulse/daemon.conf.d/10-lower-latency.conf
# Disable timer-based scheduling.
sudo sed -i 's/load-module module-udev-det*/load-module module-udev-detect tsched=0/g' /etc/pulse/default.pa

View File

@@ -1,12 +1,9 @@
#!/bin/bash
# Discard on use
rm $0
sudo mkdir -p /etc/X11/xorg.conf.d/
echo 'Section "InputClass"
Identifier "My Mouse"
Driver "libinput"
MatchIsPointer "yes"
Option "AccelProfile" "flat"
EndSection' | sudo tee --append /etc/X11/xorg.conf.d/50-mouse-acceleration.conf
#!/usr/bin/env bash
sudo mkdir -p /etc/X11/xorg.conf.d/
echo 'Section "InputClass"
Identifier "My Mouse"
Driver "libinput"
MatchIsPointer "yes"
Option "AccelProfile" "flat"
EndSection' | sudo tee --append /etc/X11/xorg.conf.d/50-mouse-acceleration.conf

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
USERNAME=""
PASSWORD=""

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
KEYMAP="dvorak-programmer"
DEVICE="/dev/sda"

View File

@@ -1,43 +1,40 @@
#!/bin/bash
# Discard on use
rm $0
# https://blog.thepoon.fr/osuLinuxAudioLatency/
sudo pacman-key --keyserver hkps://hkps.pool.sks-keyservers.net -r C0E7D0CDB72FBE95
sudo pacman-key --keyserver hkps://hkps.pool.sks-keyservers.net --lsign-key C0E7D0CDB72FBE95
echo "[thepoon]
Server = https://archrepo.thepoon.fr
Server = https://mirrors.celianvdb.fr/archlinux/thepoon
" | sudo tee --append /etc/pacman.conf
sudo pacman -S wine-osu winetricks
mkdir ~/osu!
cd ~/osu!
wget https://m1.ppy.sh/r/osu\!install.exe
export WINEPREFIX="$HOME/.wine_osu"
export WINEARCH=win32
winetricks dotnet40 &
cat <<EOF > ~/osu!/start.sh
#!/bin/sh
export WINEPREFIX="$HOME/.wine_osu"
export STAGING_AUDIO_DURATION=8000
export PATH=/opt/wine-osu/bin:$PATH
cd ~/osu!
wine osu!.exe "$@"
EOF
cat <<EOF > ~/osu!/kill.sh
#!/bin/sh
export WINEPREFIX="$HOME/.wine_osu"
wineserver -k
EOF
#!/usr/bin/env bash
# https://blog.thepoon.fr/osuLinuxAudioLatency/
sudo pacman-key --keyserver hkps://hkps.pool.sks-keyservers.net -r C0E7D0CDB72FBE95
sudo pacman-key --keyserver hkps://hkps.pool.sks-keyservers.net --lsign-key C0E7D0CDB72FBE95
echo "[thepoon]
Server = https://archrepo.thepoon.fr
Server = https://mirrors.celianvdb.fr/archlinux/thepoon
" | sudo tee --append /etc/pacman.conf
sudo pacman -S wine-osu winetricks
mkdir ~/osu!
cd ~/osu!
wget https://m1.ppy.sh/r/osu\!install.exe
export WINEPREFIX="$HOME/.wine_osu"
export WINEARCH=win32
winetricks dotnet40 &
cat <<EOF > ~/osu!/start.sh
#!/bin/sh
export WINEPREFIX="$HOME/.wine_osu"
export STAGING_AUDIO_DURATION=8000
export PATH=/opt/wine-osu/bin:$PATH
cd ~/osu!
wine osu!.exe "$@"
EOF
cat <<EOF > ~/osu!/kill.sh
#!/bin/sh
export WINEPREFIX="$HOME/.wine_osu"
wineserver -k
EOF

View File

@@ -1,10 +1,7 @@
#!/bin/bash
# Discard on use
rm $0
echo "[multilib]
Include = /etc/pacman.d/mirrorlist
" | sudo tee --append /etc/pacman.conf
sudo pacman -S steam steam-native-runtime
#!/usr/bin/env bash
echo "[multilib]
Include = /etc/pacman.d/mirrorlist
" | sudo tee --append /etc/pacman.conf
sudo pacman -S steam steam-native-runtime

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#yay -S yaru-gtk-theme yaru-sound-theme gnome-shell-extension-ubuntu-dock
#yay -S yaru-icon-theme # needs to be installed seperately for some reason