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
|
40
config/local/pikachu/etc/X11/xinit/10-optimus-manager.conf
Normal file
40
config/local/pikachu/etc/X11/xinit/10-optimus-manager.conf
Normal 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
|
@@ -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
|
@@ -0,0 +1 @@
|
||||
ACTION=="add", RUN+="/home/w0ryn/.local/share/wryn/config/local/pikachu/bin/set-battery-max-charge"
|
1
config/local/pikachu/etc/udev/rules.d/91-backlight.rules
Normal file
1
config/local/pikachu/etc/udev/rules.d/91-backlight.rules
Normal 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"
|
20
config/local/pikachu/misc/pulseaudio.patch
Normal file
20
config/local/pikachu/misc/pulseaudio.patch
Normal 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
|
2
config/local/pikachu/misc/pulseaudio.patch.apply
Executable file
2
config/local/pikachu/misc/pulseaudio.patch.apply
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/bin/zsh
|
||||
sudo patch -p1 -d /usr/share/alsa-card-profile/mixer/paths/ -i "${0:a:h}/pulseaudio.patch"
|
1932
config/local/pikachu/user/X11/xkeymap
Normal file
1932
config/local/pikachu/user/X11/xkeymap
Normal file
File diff suppressed because it is too large
Load Diff
2
config/local/pikachu/user/alacritty/local.toml
Normal file
2
config/local/pikachu/user/alacritty/local.toml
Normal file
@@ -0,0 +1,2 @@
|
||||
[font]
|
||||
size = 9
|
Reference in New Issue
Block a user