Skip to content

Instantly share code, notes, and snippets.

View JonnySB's full-sized avatar

Jonny Brownrigg JonnySB

  • Makers Academy
  • London, United Kingdom
  • 00:21 (UTC)
View GitHub Profile
(defcfg
;; For Linux
input (device-file "/dev/input/by-path/platform-i8042-serio-0-event-kbd")
output (uinput-sink "My KMonad output"
;; To understand the importance of the following line, see the section on
;; Compose-key sequences at the near-bottom of this file.
"/run/current-system/sw/bin/sleep 1 && /run/current-system/sw/bin/setxkbmap -option compose:ralt")
cmp-seq ralt ;; Set the compose key to `RightAlt'
cmp-seq-delay 6 ;; 5ms delay between each compose-key sequence press
Jul 21 09:10:07 jonnyarch kernel: microcode: updated early: 0x429 -> 0x433, date = 2023-12-05
Jul 21 09:10:07 jonnyarch kernel: Linux version 6.6.40-1-lts (linux-lts@archlinux) (gcc (GCC) 14.1.1 20240522, GNU ld (GNU Binutils) 2.42.0) #1 SMP PREEMPT_DYNAMIC Mon, 15 Jul 2024 09:23:08 +0000
Jul 21 09:10:07 jonnyarch kernel: Command line: BOOT_IMAGE=/boot/vmlinuz-linux-lts root=/dev/mapper/volgroup0-lv_root rw mem_sleep_default=deep
Jul 21 09:10:07 jonnyarch kernel: x86/split lock detection: #AC: crashing the kernel on kernel split_locks and warning on user-space split_locks
Jul 21 09:10:07 jonnyarch kernel: BIOS-provided physical RAM map:
Jul 21 09:10:07 jonnyarch kernel: BIOS-e820: [mem 0x0000000000000000-0x000000000009efff] usable
Jul 21 09:10:07 jonnyarch kernel: BIOS-e820: [mem 0x000000000009f000-0x00000000000fffff] reserved
Jul 21 09:10:07 jonnyarch kernel: BIOS-e820: [mem 0x0000000000100000-0x000000005bf6efff] usable
Jul 21 09:10:07 jonnyarch kernel: BIOS-e820: [mem 0x000000005bf6f000-0x0000000060d10fff]
@JonnySB
JonnySB / monitor_config.sh
Created February 25, 2024 00:07
monitor setup script
#!/bin/bash
display_count=`xrandr -d :0 -q | grep ' connected' | wc -l`
internalMonitor=eDP-1
widescreen=`xrandr -d :0 -q | grep 'connected 3440x1440' | cut -d' ' -f1`
penArtist=`xrandr -d :0 -q | grep 'connected 1920x1080' | cut -d' ' -f1`
if [ "$display_count" -eq 2 ]; then
xrandr --output "$widescreen" --mode 3440x1440