the GREAT CONFIG MIGRATION; (scwrypts v5 and some neat new config stuffs)

This commit is contained in:
2025-02-19 21:56:37 -07:00
parent 623828461e
commit 1b70e44700
114 changed files with 330 additions and 328 deletions

13
config/local/pikachu/bin/apps Executable file
View File

@@ -0,0 +1,13 @@
#!/bin/zsh
tmux new -d -s apps -n 'foreman' 'htop' \; \
split-window -d -t apps:foreman "clear; echo 'Keeping apps fresh...'; while true; do sleep 30; done" \
2>/dev/null
${XDG_DATA_HOME}/home/w0ryn/.local/share/project-source-code/yage/dotwryn/code/config/local/pikachu/bin
for APP in $(find "${0:a:h}" -name apps.\*)
do
echo "looking for $APP"
tmux list-windows -t apps: | awk '{print $2;}' | grep -q $APP \
|| tmux new-window -dn $APP -t apps: "${0:a:h}/$APP"
done

View File

@@ -0,0 +1,13 @@
#!/bin/zsh
cd ${XDG_DATA_HOME:-${HOME}/.local/share}/project-source-code/python/xorg-midi/code
source ../env/bin/activate
while true
do
clear
echo "activating midi controller"
./midi-controller
echo "midi controller died; waiting to reconnect"
sleep 3
done

View File

@@ -0,0 +1,6 @@
#!/bin/zsh
xrandr --auto
scwrypts desktop i3 set background -- $(scwrypts -n get theme).jpg
scwrypts desktop screen blank -- enable

View File

@@ -0,0 +1,10 @@
#!/bin/zsh
xrandr --auto
xrandr --output HDMI-1-0 --off
sleep 1
xrandr --output HDMI-1-0 --mode 2560x1440
scwrypts desktop i3 set background -- $(scwrypts -n get theme).jpg
scwrypts desktop screen blank -- disable

11
config/local/pikachu/bin/office Executable file
View File

@@ -0,0 +1,11 @@
#!/bin/zsh
xrandr --auto
xrandr --output HDMI-1-0 --off
sleep 1
xrandr --output HDMI-1-0 --mode 1920x1080
xrandr --output eDP-1 --off
scwrypts desktop i3 set background -- $(scwrypts -n get theme).jpg
scwrypts desktop screen blank -- disable

View File

@@ -0,0 +1 @@
/home/w0ryn/.local/share/wryn/zsh/plugins/scwrypts/scwrypts

View File

@@ -0,0 +1,18 @@
#!/bin/bash
[[ $EUID -eq 0 ]] || {
echo "root access required" >&2
exit 1
}
MAX_CHARGE_THRESHOLD=$1
[ "$MAX_CHARGE_THRESHOLD" ] \
|| MAX_CHARGE_THRESHOLD=75
DEVICE_SETTING_FILE=/sys/class/power_supply/BAT1/charge_control_end_threshold
[ "$MAX_CHARGE_THRESHOLD" ] && [[ $MAX_CHARGE_THRESHOLD -ge 40 ]] && [[ $MAX_CHARGE_THRESHOLD -le 100 ]] || {
echo -e "Value '$MAX_CHARGE_THRESHOLD' is invalid. If you REALLY want to do this, overwrite the setting yourself\n$DEVICE_SETTING_FILE" >&2
exit 2
}
echo "$MAX_CHARGE_THRESHOLD" > "$DEVICE_SETTING_FILE"

View File

@@ -0,0 +1,7 @@
#!/bin/zsh
xrandr --output HDMI-1-0 --off
xrandr --output eDP-1 --mode 2560x1600
scwrypts desktop i3 set background -- $(scwrypts -n get theme).jpg
scwrypts desktop screen blank -- disable

View File

@@ -0,0 +1,40 @@
Section "Files"
ModulePath "/usr/lib/nvidia"
ModulePath "/usr/lib32/nvidia"
ModulePath "/usr/lib32/nvidia/xorg/modules"
ModulePath "/usr/lib32/xorg/modules"
ModulePath "/usr/lib64/nvidia/xorg/modules"
ModulePath "/usr/lib64/nvidia/xorg"
ModulePath "/usr/lib64/xorg/modules"
EndSection
Section "ServerLayout"
Identifier "layout"
Screen 0 "integrated"
Inactive "nvidia"
Option "AllowNVIDIAGPUScreens"
EndSection
Section "Device"
Identifier "integrated"
Driver "modesetting"
BusID "PCI:101:0:0"
Option "DRI" "3"
EndSection
Section "Screen"
Identifier "integrated"
Device "integrated"
EndSection
Section "Device"
Identifier "nvidia"
Driver "nvidia"
BusID "PCI:100:0:0"
Option "Coolbits" "28"
EndSection
Section "Screen"
Identifier "nvidia"
Device "nvidia"
EndSection

View File

@@ -0,0 +1,40 @@
Section "Files"
ModulePath "/usr/lib/nvidia"
ModulePath "/usr/lib32/nvidia"
ModulePath "/usr/lib32/nvidia/xorg/modules"
ModulePath "/usr/lib32/xorg/modules"
ModulePath "/usr/lib64/nvidia/xorg/modules"
ModulePath "/usr/lib64/nvidia/xorg"
ModulePath "/usr/lib64/xorg/modules"
EndSection
Section "ServerLayout"
Identifier "layout"
Screen 0 "integrated"
Inactive "nvidia"
Option "AllowNVIDIAGPUScreens"
EndSection
Section "Device"
Identifier "integrated"
Driver "modesetting"
BusID "PCI:101:0:0"
Option "DRI" "3"
EndSection
Section "Screen"
Identifier "integrated"
Device "integrated"
EndSection
Section "Device"
Identifier "nvidia"
Driver "nvidia"
BusID "PCI:100:0:0"
Option "Coolbits" "28"
EndSection
Section "Screen"
Identifier "nvidia"
Device "nvidia"
EndSection

View File

@@ -0,0 +1 @@
ACTION=="add", RUN+="/home/w0ryn/.local/share/wryn/config/local/pikachu/bin/set-battery-max-charge"

View File

@@ -0,0 +1 @@
SUBSYSTEM=="backlight", ACTION=="add", RUN+="/usr/bin/env chgrp video %S%p/brightness", RUN+="/usr/bin/env chmod g+w %S%p/brightness"

View File

@@ -0,0 +1,20 @@
--- a/analog-output-speaker.conf
+++ b/analog-output-speaker.conf
@@ -71,12 +71,14 @@
[Element Hardware Master]
switch = mute
-volume = merge
-override-map.1 = all
-override-map.2 = all-left,all-right
+volume = ignore
[Element Master]
switch = mute
+volume = ignore
+
+[Element PCM]
+switch = mute
volume = merge
override-map.1 = all
override-map.2 = all-left,all-right

View File

@@ -0,0 +1,2 @@
#!/bin/zsh
sudo patch -p1 -d /usr/share/alsa-card-profile/mixer/paths/ -i "${0:a:h}/pulseaudio.patch"

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,2 @@
[font]
size = 9