Add /etc configs
This commit is contained in:
parent
15a7e0bff5
commit
82a75e677d
5 changed files with 61 additions and 0 deletions
11
etc/Xorg/10disable-timeout.conf
Normal file
11
etc/Xorg/10disable-timeout.conf
Normal 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
2
etc/Xorg/20opengl.conf
Normal file
|
@ -0,0 +1,2 @@
|
|||
Section "Files"
|
||||
EndSection
|
11
etc/Xorg/30trackpoint.conf
Normal file
11
etc/Xorg/30trackpoint.conf
Normal 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
|
6
etc/Xorg/40disable-trackpad.conf
Normal file
6
etc/Xorg/40disable-trackpad.conf
Normal file
|
@ -0,0 +1,6 @@
|
|||
Section "InputClass"
|
||||
Identifier "touchpad catchall"
|
||||
Driver "evdev"
|
||||
MatchIsTouchpad "on"
|
||||
Option "Ignore" "on"
|
||||
EndSection
|
31
etc/portage/bashrc
Normal file
31
etc/portage/bashrc
Normal 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
|
||||
}
|
Loading…
Reference in a new issue