diff options
| author | Loek Le Blansch <loek@pipeframe.xyz> | 2026-08-02 15:40:01 +0200 |
|---|---|---|
| committer | Loek Le Blansch <loek@pipeframe.xyz> | 2026-08-02 15:40:01 +0200 |
| commit | 84dd5d0d25b6ff22497c27407099a4d4b1293587 (patch) | |
| tree | b047275461700addf96b71833d6947afc4e0d46b /root/etc | |
| parent | db8249bd20d3afe03fa994ba2a486d5f4683fa3c (diff) | |
move root files
Diffstat (limited to 'root/etc')
23 files changed, 136 insertions, 0 deletions
diff --git a/root/etc/NetworkManager/dispatcher.d/executable_70-auto-wifi.sh b/root/etc/NetworkManager/dispatcher.d/executable_70-auto-wifi.sh new file mode 100644 index 0000000..4680626 --- /dev/null +++ b/root/etc/NetworkManager/dispatcher.d/executable_70-auto-wifi.sh @@ -0,0 +1,21 @@ +#!/bin/sh + +export LANG=C + +interface="$1" +action="$2" + +connectivity="$(nmcli networking connectivity)" +interface_type="$(nmcli -g GENERAL.TYPE device show "$interface")" +interface_state="$(nmcli -g GENERAL.STATE device show "$interface" | grep -o '^[0-9]\+')" + +if [ "$action" = "down" ] && [ "$connectivity" = "none" ]; then + nmcli radio wifi on + exit +fi + +if [ "$action" = "up" ] && [ "$interface_type" == "ethernet" ] && [ "$interface_state" = "100" ]; then + nmcli radio wifi off + exit +fi + diff --git a/root/etc/X11/xorg.conf.d/00-keyboard.conf b/root/etc/X11/xorg.conf.d/00-keyboard.conf new file mode 100644 index 0000000..d4f95ff --- /dev/null +++ b/root/etc/X11/xorg.conf.d/00-keyboard.conf @@ -0,0 +1,9 @@ +Section "InputClass" + Identifier "system-keyboard" + MatchIsKeyboard "on" + Option "XkbLayout" "us" + Option "XkbModel" "pc105" + Option "XkbOptions" "ctrl:nocaps" + Option "AutoRepeat" "250 40" +EndSection + diff --git a/root/etc/X11/xorg.conf.d/40-trackpad.conf b/root/etc/X11/xorg.conf.d/40-trackpad.conf new file mode 100644 index 0000000..f390b93 --- /dev/null +++ b/root/etc/X11/xorg.conf.d/40-trackpad.conf @@ -0,0 +1,9 @@ +Section "InputClass" + Identifier "Trackpad preferences" + MatchIsTouchpad "on" + Driver "libinput" + Option "NaturalScrolling" "1" + Option "Tapping" "1" + Option "ScrollPixelDistance" "40" +EndSection + diff --git a/root/etc/X11/xorg.conf.d/50-mouse-acceleration.conf b/root/etc/X11/xorg.conf.d/50-mouse-acceleration.conf new file mode 100644 index 0000000..199635d --- /dev/null +++ b/root/etc/X11/xorg.conf.d/50-mouse-acceleration.conf @@ -0,0 +1,8 @@ +Section "InputClass" + Identifier "default mouse acceleration" + Driver "libinput" + MatchIsPointer "yes" + Option "AccelProfile" "flat" + Option "AccelSpeed" "0" +EndSection + diff --git a/root/etc/X11/xorg.conf.d/72-wacom-options.conf b/root/etc/X11/xorg.conf.d/72-wacom-options.conf new file mode 100644 index 0000000..81aaf60 --- /dev/null +++ b/root/etc/X11/xorg.conf.d/72-wacom-options.conf @@ -0,0 +1,11 @@ +Section "InputClass" + Identifier "default wacom pen area + double click interval" + MatchDriver "wacom" + MatchProduct "Pen" + NoMatchProduct "eraser" + NoMatchProduct "cursor" + Option "Area" "0 0 15200 4275" + Option "MapToOutput" "1920x1080+0+0" + Option "TapTime" "100" +EndSection + diff --git a/root/etc/X11/xorg.conf.d/90-libinput-logitech.conf b/root/etc/X11/xorg.conf.d/90-libinput-logitech.conf new file mode 100644 index 0000000..a1071b0 --- /dev/null +++ b/root/etc/X11/xorg.conf.d/90-libinput-logitech.conf @@ -0,0 +1,8 @@ +Section "InputClass" + Identifier "Logitech MX Master 3S High res scrolling" + MatchUSBID "046d:c548" + MatchDevicePath "/dev/input/event*" + Driver "libinput" + Option "HighResolutionWheelScrolling" "false" +EndSection + diff --git a/root/etc/X11/xorg.conf.d/90-libinput-wacom.conf b/root/etc/X11/xorg.conf.d/90-libinput-wacom.conf new file mode 100644 index 0000000..26643b8 --- /dev/null +++ b/root/etc/X11/xorg.conf.d/90-libinput-wacom.conf @@ -0,0 +1,9 @@ +Section "InputClass" + Identifier "force libinput as driver for wacom tablet touchpad" + MatchUSBID "056a:*" + MatchDevicePath "/dev/input/event*" + MatchIsTouchpad "true" + Driver "libinput" + Option "NaturalScrolling" "true" +EndSection + diff --git a/root/etc/X11/xorg.conf.d/90-wacom-overrides.conf b/root/etc/X11/xorg.conf.d/90-wacom-overrides.conf new file mode 100644 index 0000000..f2e2bbf --- /dev/null +++ b/root/etc/X11/xorg.conf.d/90-wacom-overrides.conf @@ -0,0 +1,7 @@ +Section "InputClass" + Identifier "Wacom Tablet Overrides" + MatchDriver "wacom" + Option "AccelerationProfile" "5" + Option "ConstantDeceleration" "2" + Option "AdaptiveDeceleration" "3" +EndSection diff --git a/root/etc/containers/empty_nodocker b/root/etc/containers/empty_nodocker new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/root/etc/containers/empty_nodocker diff --git a/root/etc/default/earlyoom b/root/etc/default/earlyoom new file mode 100644 index 0000000..53ddf8b --- /dev/null +++ b/root/etc/default/earlyoom @@ -0,0 +1 @@ +EARLYOOM_ARGS="-M 102400 -r 3600 -n --avoid '(^|/)(init|systemd|Xorg|sshd)$'" diff --git a/root/etc/kernel/cmdline b/root/etc/kernel/cmdline new file mode 100644 index 0000000..2448b2c --- /dev/null +++ b/root/etc/kernel/cmdline @@ -0,0 +1 @@ +quiet diff --git a/root/etc/libinput/local-overrides.quirks b/root/etc/libinput/local-overrides.quirks new file mode 100644 index 0000000..9a897c2 --- /dev/null +++ b/root/etc/libinput/local-overrides.quirks @@ -0,0 +1,4 @@ +[Logitech MX Master 3S] +MatchVendor=0x046D +MatchProduct=0xC548 +AttrEventCode=-REL_WHEEL_HI_RES;-REL_HWHEEL_HI_RES; diff --git a/root/etc/lightdm/executable_autorandr-change b/root/etc/lightdm/executable_autorandr-change new file mode 100644 index 0000000..f181fe8 --- /dev/null +++ b/root/etc/lightdm/executable_autorandr-change @@ -0,0 +1,5 @@ +#!/bin/sh +autorandr --change + +# make sure this script exits happily +exit 0 diff --git a/root/etc/lightdm/lightdm-gtk-greeter.conf b/root/etc/lightdm/lightdm-gtk-greeter.conf new file mode 100644 index 0000000..7ba729d --- /dev/null +++ b/root/etc/lightdm/lightdm-gtk-greeter.conf @@ -0,0 +1,8 @@ +[greeter] +font-name = Inter 9 +theme-name = adw-gtk3-dark +indicators = ~clock;~spacer;~power +hide-user-image = true +screensaver-timeout = 15 +default-session = xinitrc +clock-format = %t%H:%M diff --git a/root/etc/locale.conf b/root/etc/locale.conf new file mode 100644 index 0000000..abfaa52 --- /dev/null +++ b/root/etc/locale.conf @@ -0,0 +1,2 @@ +LANG=en_US.UTF-8 +LC_COLLATE=C diff --git a/root/etc/locale.gen b/root/etc/locale.gen new file mode 100644 index 0000000..6ab95e3 --- /dev/null +++ b/root/etc/locale.gen @@ -0,0 +1,3 @@ +en_US.UTF-8 UTF-8 +ja_JP.UTF-8 UTF-8 +nl_NL.UTF-8 UTF-8 diff --git a/root/etc/logid.cfg b/root/etc/logid.cfg new file mode 100644 index 0000000..e98e048 --- /dev/null +++ b/root/etc/logid.cfg @@ -0,0 +1,13 @@ +devices: ({ + name: "MX Master 3S"; + smartshift: { + on: true; + threshold: 255; + torque: 255; + }; + hiresscroll: { + hires: false; + invert: false; + target: false; + }; +}); diff --git a/root/etc/sudoers.d/10-wheel-nopasswd b/root/etc/sudoers.d/10-wheel-nopasswd new file mode 100644 index 0000000..46208d6 --- /dev/null +++ b/root/etc/sudoers.d/10-wheel-nopasswd @@ -0,0 +1,4 @@ +# allow all users in `wheel` group to use sudo for all commands without prompt +# for password +%wheel ALL=(ALL) NOPASSWD: ALL + diff --git a/root/etc/systemd/logind.conf.d/10-laptop-lid.conf b/root/etc/systemd/logind.conf.d/10-laptop-lid.conf new file mode 100644 index 0000000..c289779 --- /dev/null +++ b/root/etc/systemd/logind.conf.d/10-laptop-lid.conf @@ -0,0 +1,4 @@ +[Login] +HandleLidSwitch=suspend +HandleLidSwitchExternalPower=ignore +HandleLidSwitchDocked=ignore diff --git a/root/etc/udev/hwdb.d/71-logitech-mx3.hwdb b/root/etc/udev/hwdb.d/71-logitech-mx3.hwdb new file mode 100644 index 0000000..3ccaa11 --- /dev/null +++ b/root/etc/udev/hwdb.d/71-logitech-mx3.hwdb @@ -0,0 +1,3 @@ +mouse:usb:v046dpc548:name:Logitech USB Receiver Mouse:* + MOUSE_WHEEL_CLICK_ANGLE=1 + MOUSE_WHEEL_CLICK_COUNT=360 diff --git a/root/etc/udev/rules.d/90-backlight.rules b/root/etc/udev/rules.d/90-backlight.rules new file mode 100644 index 0000000..23eedf8 --- /dev/null +++ b/root/etc/udev/rules.d/90-backlight.rules @@ -0,0 +1 @@ +SUBSYSTEM=="backlight", ACTION=="add", RUN+="/bin/chgrp video /sys/class/backlight/%k/brightness", RUN+="/bin/chmod g+w /sys/class/backlight/%k/brightness" diff --git a/root/etc/udev/rules.d/99-capture-card.rules b/root/etc/udev/rules.d/99-capture-card.rules new file mode 100644 index 0000000..b180639 --- /dev/null +++ b/root/etc/udev/rules.d/99-capture-card.rules @@ -0,0 +1,3 @@ +# set video controls +SUBSYSTEM=="video4linux", KERNEL=="video[0-9]*", ATTR{index}=="0", ATTRS{idVendor}=="534d", ATTRS{idProduct}=="2109", RUN+="/usr/bin/v4l2-ctl -d $devnode --set-ctrl=brightness=0,contrast=127,saturation=127,hue=0" + diff --git a/root/etc/xdg/nvim/init.vim b/root/etc/xdg/nvim/init.vim new file mode 100644 index 0000000..f238fc6 --- /dev/null +++ b/root/etc/xdg/nvim/init.vim @@ -0,0 +1,2 @@ +set notermguicolors +colorscheme vim |