Add /etc configs

This commit is contained in:
buffet 2022-05-02 08:27:23 +00:00
parent 15a7e0bff5
commit 82a75e677d
5 changed files with 61 additions and 0 deletions

View file

@ -0,0 +1,11 @@
Section "Monitor"
Identifier "monitor catchall"
Option "DPMS" "false"
EndSection
Section "ServerFlags"
Option "StandbyTime" "0"
Option "SuspendTime" "0"
Option "OffTime" "0"
Option "BlankTime" "0"
EndSection

2
etc/Xorg/20opengl.conf Normal file
View file

@ -0,0 +1,2 @@
Section "Files"
EndSection

View file

@ -0,0 +1,11 @@
Section "InputClass"
Identifier "Trackpoint Wheel Emulation"
Driver "evdev"
MatchProduct "TPPS/2 IBM TrackPoint"
MatchDevicePath "/dev/input/event*"
Option "EmulateWheel" "true"
Option "EmulateWheelButton" "2"
Option "Emulate3Buttons" "false"
Option "XAxisMapping" "6 7"
Option "YAxisMapping" "4 5"
EndSection

View file

@ -0,0 +1,6 @@
Section "InputClass"
Identifier "touchpad catchall"
Driver "evdev"
MatchIsTouchpad "on"
Option "Ignore" "on"
EndSection

31
etc/portage/bashrc Normal file
View file

@ -0,0 +1,31 @@
declare -gA SNAPPER_PRE_SNAP_NUMS
snapper_pre_snap() {
local desc="$1 ${CATEGORY}/${PF}"
local n="$(snapper -c root create -t pre -p -d "${desc}")"
SNAPPER_PRE_SNAP_NUMS["${desc}"]="${n}"
}
snapper_post_snap() {
local desc="$1 ${CATEGORY}/${PF}"
local n="${SNAPPER_PRE_SNAP_NUMS["${desc}"]}"
snapper -c root create -t post --pre-number "${n}" -d "${desc}"
}
pre_pkg_preinst() {
snapper_pre_snap install
}
post_pkg_postinst() {
updatedb
snapper_post_snap install
}
pre_pkg_prerm() {
snapper_pre_snap rm
}
post_pkg_postrm() {
updatedb
snapper_post_snap rm
}