chore: update and minify config

This commit is contained in:
Alexandre Cavalheiro S. Tiago da Silva 2023-05-06 23:49:18 -03:00
parent 6efa74ea62
commit f893a5d054
Signed by: wizardlink
GPG key ID: A5767B54367CFBDF
1634 changed files with 1974 additions and 281623 deletions

View file

View file

@ -0,0 +1,18 @@
#!/bin/sh
#
# Load sinks
#
pactl load-module module-null-sink sink_name=output sink_properties=device.description="Output"
pactl load-module module-null-sink sink_name=applications sink_properties=device.description="Applications"
#
# Loopback audio to the correct places
#
# Application audio forwarded to microphone
pactl load-module module-loopback latency_msec=25 source=applications.monitor sink=output
# Microphone
pactl load-module module-loopback latency_msec=25 source=rnnoise_source sink=output
# Application audio forwarded to me
pactl load-module module-loopback latency_msec=25 source=applications.monitor sink=alsa_output.usb-Burr-Brown_from_TI_USB_Audio_CODEC-00.pro-output-0

View file

@ -0,0 +1,4 @@
#!/bin/sh
pactl unload-module module-loopback
pactl unload-module module-null-sink

View file

@ -0,0 +1 @@
fish -c '~/.local/share/emacs/src/emacs'

View file

@ -0,0 +1 @@
fish -c "lvim $@"

1
.local/share/scripts/hack.sh Executable file
View file

@ -0,0 +1 @@
fish -c 'lvim'

View file

@ -0,0 +1,8 @@
#!/bin/sh
export AMD_VULKAN_ICD="RADV"
export DXVK_ASYNC=1
export DXVK_STATE_CACHE=1
export MANGOHUD=1
export RADV_PERFTEST="gpl"
gamemoderun "$@"

View file

@ -0,0 +1,8 @@
#!/bin/sh
export AMD_VULKAN_ICD="RADV"
export DXVK_ASYNC=1
export DXVK_STATE_CACHE=1
export MANGOHUD=1
export RADV_PERFTEST="gpl"
gamescope -w 1280 -h 720 -W 1920 -H 1080 -f -- gamemoderun "$@"

View file

@ -0,0 +1,10 @@
#!/bin/sh
export AMD_VULKAN_ICD="RADV"
export DXVK_ASYNC=1
export DXVK_STATE_CACHE=1
export MANGOHUD=1
export RADV_PERFTEST="rt,gpl"
export VKD3D_CONFIG="dxr11"
export __GL_SHADER_DISK_CACHE_SKIP_CLEANUP=1
gamemoderun "$@" -dx12

Binary file not shown.

View file

@ -0,0 +1,43 @@
#!/var/home/wizardlink/.nimble/bin/nim r
from std/os import fileExists
from std/osproc import execProcess
import std/times
type
TimeTrack = tuple
pcBreak: Duration
pcBreakCycle: Duration
eyeBreak: Duration
eyeBreakCycle: Duration
NextAlerts = tuple
pcBreakCycle: Time
eyeBreakCycle: Time
let
trackingDefaults: TimeTrack = (
pcBreak: initDuration(minutes = 10),
pcBreakCycle: initDuration(hours = 2),
eyeBreak: initDuration(seconds = 20),
eyeBreakCycle: initDuration(minutes = 20),
)
var
nextAlerts: NextAlerts = (
pcBreakCycle: getTime() + trackingDefaults.pcBreakCycle,
eyeBreakCycle: getTime() + trackingDefaults.eyeBreakCycle,
)
while true:
let currentTime = getTime()
if fileExists("/var/home/wizardlink/.local/share/scripts/.stop"):
break
if nextAlerts.pcBreakCycle <= currentTime:
nextAlerts.pcBreakCycle += trackingDefaults.pcBreakCycle
nextAlerts.eyeBreakCycle += trackingDefaults.eyeBreakCycle # Clashes since it happens every 20 minutes
discard execProcess "pw-play /var/mnt/internal/personal/memes/tetris-pJF_LwW-EWo.mp3"
elif nextAlerts.eyeBreakCycle <= currentTime:
nextAlerts.eyeBreakCycle += trackingDefaults.eyeBreakCycle
discard execProcess "pw-play /var/mnt/internal/personal/memes/noooooo-eoNtgM4KGzc.mp3"