the GREAT CONFIG MIGRATION; (scwrypts v5 and some neat new config stuffs)
This commit is contained in:
13
config/local/pikachu/bin/apps
Executable file
13
config/local/pikachu/bin/apps
Executable 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
|
13
config/local/pikachu/bin/apps.midi
Executable file
13
config/local/pikachu/bin/apps.midi
Executable 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
|
6
config/local/pikachu/bin/default
Executable file
6
config/local/pikachu/bin/default
Executable file
@@ -0,0 +1,6 @@
|
||||
#!/bin/zsh
|
||||
|
||||
xrandr --auto
|
||||
|
||||
scwrypts desktop i3 set background -- $(scwrypts -n get theme).jpg
|
||||
scwrypts desktop screen blank -- enable
|
10
config/local/pikachu/bin/livingroom
Executable file
10
config/local/pikachu/bin/livingroom
Executable 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
11
config/local/pikachu/bin/office
Executable 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
|
1
config/local/pikachu/bin/scwrypts
Symbolic link
1
config/local/pikachu/bin/scwrypts
Symbolic link
@@ -0,0 +1 @@
|
||||
/home/w0ryn/.local/share/wryn/zsh/plugins/scwrypts/scwrypts
|
18
config/local/pikachu/bin/set-battery-max-charge
Executable file
18
config/local/pikachu/bin/set-battery-max-charge
Executable 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"
|
7
config/local/pikachu/bin/undock
Executable file
7
config/local/pikachu/bin/undock
Executable 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
|
Reference in New Issue
Block a user