From 82a75e677d65f0ff3699d3efce3c4da394d776e1 Mon Sep 17 00:00:00 2001 From: buffet Date: Mon, 2 May 2022 08:27:23 +0000 Subject: [PATCH] Add /etc configs --- etc/Xorg/10disable-timeout.conf | 11 +++++++++++ etc/Xorg/20opengl.conf | 2 ++ etc/Xorg/30trackpoint.conf | 11 +++++++++++ etc/Xorg/40disable-trackpad.conf | 6 ++++++ etc/portage/bashrc | 31 +++++++++++++++++++++++++++++++ 5 files changed, 61 insertions(+) create mode 100644 etc/Xorg/10disable-timeout.conf create mode 100644 etc/Xorg/20opengl.conf create mode 100644 etc/Xorg/30trackpoint.conf create mode 100644 etc/Xorg/40disable-trackpad.conf create mode 100644 etc/portage/bashrc diff --git a/etc/Xorg/10disable-timeout.conf b/etc/Xorg/10disable-timeout.conf new file mode 100644 index 0000000..9416479 --- /dev/null +++ b/etc/Xorg/10disable-timeout.conf @@ -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 diff --git a/etc/Xorg/20opengl.conf b/etc/Xorg/20opengl.conf new file mode 100644 index 0000000..582220f --- /dev/null +++ b/etc/Xorg/20opengl.conf @@ -0,0 +1,2 @@ +Section "Files" +EndSection diff --git a/etc/Xorg/30trackpoint.conf b/etc/Xorg/30trackpoint.conf new file mode 100644 index 0000000..a910202 --- /dev/null +++ b/etc/Xorg/30trackpoint.conf @@ -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 diff --git a/etc/Xorg/40disable-trackpad.conf b/etc/Xorg/40disable-trackpad.conf new file mode 100644 index 0000000..ad5d929 --- /dev/null +++ b/etc/Xorg/40disable-trackpad.conf @@ -0,0 +1,6 @@ +Section "InputClass" + Identifier "touchpad catchall" + Driver "evdev" + MatchIsTouchpad "on" + Option "Ignore" "on" +EndSection diff --git a/etc/portage/bashrc b/etc/portage/bashrc new file mode 100644 index 0000000..c06daec --- /dev/null +++ b/etc/portage/bashrc @@ -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 +}