From ebedebddcd70f13ec35ee6c188bf3a44a7ee0c20 Mon Sep 17 00:00:00 2001 From: Dym Sohin Date: Tue, 23 Apr 2024 14:31:59 +0200 Subject: [PATCH] 2024-apr --- _installs/socketsupply.sh | 14 ++++++++ _sys/xorg.conf | 71 +++++++++++++++++++++++++++++++++++++++ alacritty/alacritty.toml | 40 ++++++++++++++++++++++ 3 files changed, 125 insertions(+) create mode 100755 _installs/socketsupply.sh create mode 100644 _sys/xorg.conf create mode 100644 alacritty/alacritty.toml diff --git a/_installs/socketsupply.sh b/_installs/socketsupply.sh new file mode 100755 index 0000000..cc4ba52 --- /dev/null +++ b/_installs/socketsupply.sh @@ -0,0 +1,14 @@ +#!/bin/sh + +sudo apt install -y \ + build-essential \ + clang-14 \ + git \ + libwebkit2gtk-4.1-dev \ + libc++abi-14-dev \ + libc++-14-dev \ + libdbus-1-dev \ + pkg-config + + +npm i @socketsupply/socket -g diff --git a/_sys/xorg.conf b/_sys/xorg.conf new file mode 100644 index 0000000..4fa67d8 --- /dev/null +++ b/_sys/xorg.conf @@ -0,0 +1,71 @@ +# nvidia-settings: X configuration file generated by nvidia-settings +# nvidia-settings: version 510.47.03 + +Section "ServerLayout" + Identifier "Layout0" + Screen 0 "Screen0" 0 0 + InputDevice "Keyboard0" "CoreKeyboard" + InputDevice "Mouse0" "CorePointer" + Option "Xinerama" "0" +EndSection + +Section "Files" +EndSection + +Section "Module" + Load "dbe" + Load "extmod" + Load "type1" + Load "freetype" + Load "glx" +EndSection + +Section "InputDevice" + # generated from default + Identifier "Mouse0" + Driver "mouse" + Option "Protocol" "auto" + Option "Device" "/dev/psaux" + Option "Emulate3Buttons" "no" + Option "ZAxisMapping" "4 5" +EndSection + +Section "InputDevice" + # generated from default + Identifier "Keyboard0" + Driver "kbd" +EndSection + +Section "Monitor" + # HorizSync source: edid, VertRefresh source: edid + Identifier "Monitor0" + VendorName "Unknown" + ModelName "LG Electronics LG HDR 4K" + HorizSync 30.0 - 135.0 + VertRefresh 56.0 - 61.0 + Option "DPMS" +EndSection + +Section "Device" + Identifier "Device0" + Driver "nvidia" + VendorName "NVIDIA Corporation" + BoardName "NVIDIA GeForce GTX 1060 6GB" +EndSection + +Section "Screen" + Identifier "Screen0" + Device "Device0" + Monitor "Monitor0" + DefaultDepth 24 + Option "Stereo" "0" + Option "nvidiaXineramaInfoOrder" "DFP-1" + Option "metamodes" "DP-0: nvidia-auto-select +1920+0, HDMI-0: nvidia-auto-select +0+0" + Option "SLI" "Off" + Option "MultiGPU" "Off" + Option "BaseMosaic" "off" + SubSection "Display" + Depth 24 + EndSubSection +EndSection + diff --git a/alacritty/alacritty.toml b/alacritty/alacritty.toml new file mode 100644 index 0000000..8dba16d --- /dev/null +++ b/alacritty/alacritty.toml @@ -0,0 +1,40 @@ +[colors.primary] +background = "0x000000" +foreground = "0x00ff00" + +[font] +size = 13.0 + +[font.bold] +family = "monospace" +style = "Bold" + +[font.glyph_offset] +x = 0 +y = 4 + +[font.italic] +family = "monospace" +style = "Italic" + +[font.normal] +family = "monospace" +style = "Regular" + +[font.offset] +x = 0 +y = 4 + +[[keyboard.bindings]] +action = "Paste" +key = "V" +mods = "Super" + +[[keyboard.bindings]] +action = "Copy" +key = "C" +mods = "Super" + +[window.padding] +x = 18 +y = 10