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