aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2025-10-13 19:37:30 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2025-10-13 19:39:20 +0200
commit3c722c79515f6007c2db2c535b268762b757fc6a (patch)
tree145643f4cfc2d60f86c73776ac4402f27d568835
parentd4d78509f077cc672ac367db438fec5566d124dc (diff)
add more files
-rw-r--r--.config/yadm/root/etc/X11/xorg.conf.d/90-libinput-logitech.conf8
-rw-r--r--.config/yadm/root/etc/containers/nodocker0
-rw-r--r--.config/yadm/root/etc/default/earlyoom1
-rw-r--r--.config/yadm/root/etc/libinput/local-overrides.quirks4
-rw-r--r--.config/yadm/root/etc/logid.cfg13
-rw-r--r--.config/yadm/root/etc/udev/hwdb.d/71-logitech-mx3.hwdb3
-rwxr-xr-x.local/share/bin/dbg40
-rwxr-xr-x.local/share/mode/reload.d/i32
-rwxr-xr-x.local/share/mode/switch.d/i314
9 files changed, 85 insertions, 0 deletions
diff --git a/.config/yadm/root/etc/X11/xorg.conf.d/90-libinput-logitech.conf b/.config/yadm/root/etc/X11/xorg.conf.d/90-libinput-logitech.conf
new file mode 100644
index 0000000..a1071b0
--- /dev/null
+++ b/.config/yadm/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/.config/yadm/root/etc/containers/nodocker b/.config/yadm/root/etc/containers/nodocker
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/.config/yadm/root/etc/containers/nodocker
diff --git a/.config/yadm/root/etc/default/earlyoom b/.config/yadm/root/etc/default/earlyoom
new file mode 100644
index 0000000..53ddf8b
--- /dev/null
+++ b/.config/yadm/root/etc/default/earlyoom
@@ -0,0 +1 @@
+EARLYOOM_ARGS="-M 102400 -r 3600 -n --avoid '(^|/)(init|systemd|Xorg|sshd)$'"
diff --git a/.config/yadm/root/etc/libinput/local-overrides.quirks b/.config/yadm/root/etc/libinput/local-overrides.quirks
new file mode 100644
index 0000000..9a897c2
--- /dev/null
+++ b/.config/yadm/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/.config/yadm/root/etc/logid.cfg b/.config/yadm/root/etc/logid.cfg
new file mode 100644
index 0000000..e98e048
--- /dev/null
+++ b/.config/yadm/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/.config/yadm/root/etc/udev/hwdb.d/71-logitech-mx3.hwdb b/.config/yadm/root/etc/udev/hwdb.d/71-logitech-mx3.hwdb
new file mode 100644
index 0000000..3ccaa11
--- /dev/null
+++ b/.config/yadm/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/.local/share/bin/dbg b/.local/share/bin/dbg
new file mode 100755
index 0000000..424110b
--- /dev/null
+++ b/.local/share/bin/dbg
@@ -0,0 +1,40 @@
+#!/bin/sh
+progname="$(basename "$(readlink -f "$0")")"
+die() {
+ ec="$1"
+ shift
+ echo "$@"
+ exit "$ec"
+}
+
+GDB="arm-none-eabi-gdb"
+
+[ $# -lt 1 ] && die 1 "usage: $progname DEVICE [gdb args...]"
+DEVICE="$1"
+shift
+
+if [ $# -eq 0 ] ; then
+ # automatically add --se flag if executable can be found
+ exec="$(find . -maxdepth 3 -name '*.elf' | head -n1)"
+ [ -n "$exec" ] && set -- --se="$exec"
+fi
+
+[ -n "$(echo "$*" | grep -i zephyr)" ] && GDB="arm-zephyr-eabi-gdb"
+
+fork JLinkGDBServerCLExe \
+ -device "$DEVICE" \
+ -select USB \
+ -endian little \
+ -if SWD \
+ -speed auto \
+ -singlerun \
+ -noir \
+ -nologtofile \
+ -silent
+
+# append startup attach command to args
+set -- --eval-command="target extended-remote :2331" "$@"
+
+# launch gdb and forward any other args to it
+exec "$GDB" "$@"
+
diff --git a/.local/share/mode/reload.d/i3 b/.local/share/mode/reload.d/i3
new file mode 100755
index 0000000..96212cf
--- /dev/null
+++ b/.local/share/mode/reload.d/i3
@@ -0,0 +1,2 @@
+#!/bin/sh
+fork i3-msg reload
diff --git a/.local/share/mode/switch.d/i3 b/.local/share/mode/switch.d/i3
new file mode 100755
index 0000000..713869e
--- /dev/null
+++ b/.local/share/mode/switch.d/i3
@@ -0,0 +1,14 @@
+#!/bin/sh
+[ $no_cfg -eq 1 ] && return
+
+indicator="$color0"
+mkcd "$XDG_CONFIG_HOME/i3"
+cat << EOF > 'color.conf'
+client.focused $fg $bg $fg $indicator $bg
+client.focused_inactive $bg $bg $fg $indicator $bg
+client.unfocused $bg $bg $fg $indicator $bg
+client.urgent $bg $bg $fg $indicator $bg
+client.placeholder $bg $bg $fg $indicator $bg
+client.background $bg
+EOF
+