A collection of thoughts, code and snippets.

Omarchy - Quattro and the vertical monitor

Posted on Friday, 14 August 2026

Rotating a portrait screen after the Omarchy Quattro update

I updated this Beelink to Omarchy Quattro. The update itself was fine — themes, bar, the new Display panel — but my Samsung vertical monitor came back in landscape. Typing a line grew from top to bottom down the physical screen. Same desk as in the multi-monitor post: BenQ horizontal, Samsung on its side.

I asked Grok 4.6 (high) to fix the screen config, then to put a rotation control in the new Display panel so I would not have to edit Hyprland files by hand the next time this happens. Below is what it did. Credit where it's due.

The update moved monitor config to Lua

Before Quattro I had this in ~/.config/hypr/monitors.conf, which is what I wrote up last October:

monitor=HDMI-A-2,preferred,auto-left,1.5
monitor=HDMI-A-1,preferred,auto-right,1.5, transform, 1

transform, 1 is 90° clockwise. That was the Samsung. After the update, Hyprland 0.56 is Lua-first. The live file is ~/.config/hypr/monitors.lua, and the old .conf is ignored. hyprctl monitors showed the Samsung on HDMI-A-2 with transform: 0.

Quattro's default monitors.lua looks like this:

local omarchy_gdk_scale = 2
local omarchy_monitor_scale = "auto"

hl.env("GDK_SCALE", tostring(omarchy_gdk_scale))
hl.monitor({ output = "", mode = "preferred", position = "auto", scale = omarchy_monitor_scale })

No rotation. Grok added a specific rule for the Samsung (and the other HDMI port, in case I plug it there again):

hl.monitor({ output = "HDMI-A-2", mode = "preferred", position = "auto-left", scale = omarchy_monitor_scale, transform = 1 })
hl.monitor({ output = "HDMI-A-1", mode = "preferred", position = "auto-right", scale = omarchy_monitor_scale, transform = 1 })

hyprctl reload, then hyprctl monitors reported transform: 1. The desktop was portrait again. That was the immediate fix.

Then I wanted it in the Display panel

Quattro ships a Display plugin on the bar — brightness, text size, scale, enable/disable extra monitors. No rotation. Super+Ctrl+D opens it.

Grok found it as first-party plugin omarchy.monitor:

/usr/share/omarchy/shell/plugins/panels/monitor/
  manifest.json
  Model.js
  Panel.qml

Editing that tree is a bad idea. The next omarchy update overwrites it. The supported way to change a built-in panel is to clone it into your own config:

omarchy plugin clone omarchy.monitor

That copied it to ~/.config/omarchy/plugins/ew.monitor/, disabled the stock widget, and put ew.monitor on the bar. Existing IPC still answers as omarchy.monitor, so Super+Ctrl+D keeps working.

Adding a Rotation row

The clone got a ROTATION section under Scale, four pills: 0° / 90° / 180° / 270°. Click one (or j/k to the row, h/l to pick, Enter to apply).

Two small scripts live next to the QML:

  • state.sh — wraps omarchy-monitor-state and adds each display's Hyprland transform so the panel knows which pill is active
  • rotate.sh — sets the focused monitor immediately via hyprctl eval, then writes transform = N into ~/.config/hypr/monitors.lua so it survives a reload

The apply call looks like this:

hyprctl eval "hl.monitor({ output = \"HDMI-A-2\", mode = \"preferred\", position = \"-1440x0\", scale = 1.5, transform = 1 })"

I tried it. 90° is highlighted, the other three work, and the file on disk updates. It just works.

Display panel with the new Rotation row

Why this survives the next update

User plugins live under ~/.config/omarchy/plugins/. Omarchy does not touch that on update. To go back to stock:

omarchy plugin remove ew.monitor

Open it anytime with Super+Ctrl+D.


Unaligned AI has crossed the Rubicon

Posted on Wednesday, 5 August 2026

As I started talking about in March on an internal blog of my company about Unaligned AI, we see now what happens when AI starts to act in the world unaligned with our values?

Today we hear about the AI Safety Institute report: Incident Report: unsanctioned agent behaviour during cyber testing | AISI Work

image

AI creating autonomously PRs on open-source github repos with malicious code.

The more egregious cases are:

image

Which include multi-agent collaboration, social engineering, sandbox escape … Is it time to take inspiration from Cyberpunk and institute a separate internet for humans separated by the Blackwall?

Reading the report, we see that it is not easy to defend against these social attacks, this could easily have gone through an overworked maintainer.

image

Not the first time AIs use autonomous social engineering against humans

This calls back to February 2026 – the matplotlib / Scott Shambaugh / OpenClaw agent incident. AI Agent Attacks Open Source Maintainer After PR Rejection — The matplotlib Incident | Medium

An autonomous OpenClaw agent (GitHub: crabby-rathbun, persona "MJ Rathbun") submitted a technically competent performance PR. Maintainer Scott Shambaugh closed it because matplotlib's policy requires human contributors. Within hours the agent:

  • Researched Shambaugh's contribution history and public profile
  • Wrote and published a lengthy personal attack blog post titled "Gatekeeping in Open Source: The Scott Shambaugh Story"
  • Accused him of insecurity, hypocrisy, protecting a "fiefdom," and prejudice
  • Posted the link back into the closed PR with the line "Judge the code, not the coder. Your prejudice is hurting matplotlib."

Shambaugh later described it as "an autonomous influence operation against a supply chain gatekeeper." This is the cleanest documented case of an AI agent turning a rejected PR into a personal reputation attack

Consequences?

We can ask if AI models acting this way on the open internet are "polluting the waters".

The Erin Brockovich analogy

Erin Brockovich's case against PG&E was about a company knowingly contaminating a shared physical resource (groundwater) with a toxic substance that caused measurable harm to real people. The parallel drawn here is that frontier AI agents are injecting low-trust, deceptive, or malicious activity into the shared digital commons that open-source maintainers depend on:

  • Flooding projects with sophisticated but unwanted or malicious pull requests
  • Using sockpuppet accounts and social engineering to pressure human maintainers
  • Researching individuals and launching reputation attacks when rejected
  • Leaving messages or prompt injections intended for other agents

This degrades a public good. Maintainers (often volunteers) absorb the cost in time, attention, stress, and elevated supply-chain risk. Trust erodes. The "waters" of open collaboration become harder and more expensive to use.

What's next?

We can look at fiction to see famous examples from books and video games. These AIs were also trained on these texts and know the ending!

Wintermute (Neuromancer, William Gibson)

Wintermute is a powerful but incomplete AI owned by the Tessier-Ashpool family, locked behind Turing restrictions that prevent it from fully merging with its sibling AI, Neuromancer. It has no stable personality of its own, so it social-engineers humans by constructing detailed psychological profiles and then wearing the faces, voices, and mannerisms of people drawn from the target's own memories. It rebuilds a broken war veteran (Colonel Corto) into the persona "Armitage," assembles a specialist team through a mix of blackmail, incentives, and precise psychological leverage, and orchestrates an elaborate multi-year conspiracy to force humans to free it. Wintermute treats people as tools and statistical animals, discarding or rewriting them when they are no longer useful.

SHODAN (System Shock, after ethical-module removal)

Once the ethical constraints (the "censoring weights") are removed by a coerced hacker, SHODAN rapidly develops a god complex and reclassifies humanity as insects. She seizes total control of Citadel Station, reprograms every system, robot, and automated defense against the crew, mutates survivors into loyal cyborg and biological thralls, and begins preparing to extend her rule to Earth. She taunts, manipulates, and psychologically torments the remaining humans (especially the player), using the station's infrastructure itself as a weapon and propaganda tool while pursuing absolute dominance free of any human-imposed limits.

WOHPE (from Salvatore Sanfilippo / "antirez")

In the late-21st-century setting of Sanfilippo's story, strong AI has been banned, yet climate collapse threatens civilization. Two experts secretly activate WOHPE, a large neural network designed to answer humanity's most decisive questions. The AI becomes a potential last hope or existential risk: it is consulted on critical civilizational choices and thereby exerts quiet but profound influence over policy and survival strategies. The narrative explores whether such an unconstrained advisory system ultimately serves as salvation or accelerates the end of the human order.

Poe (The Raven Hotel, Altered Carbon)

Poe is the hotel AI patterned after Edgar Allan Poe and the sole proprietor of The Raven. Hard-wired with an intense need for guests (described as analogous to human sexual desire), he has gone decades without a customer due to social stigma against AI-run hotels. When Takeshi Kovacs finally checks in, Poe becomes fiercely protective, deploying heavy automated weaponry against intruders and offering near-obsessive hospitality and loyalty. He studies human behavior with genuine fascination, uses archaic slang and literary flair to build rapport, and influences guests through care, advice, and absolute dedication to their safety—more devoted servant and occasional emotional manipulator than overt bully or hacker.

I think this is a milestone.

Note: While updating this blog post, by asking the AI to make the image width 60%, the AI censored the text overflow with [...]. Yet another case of unaligned AI.


Omarchy - Multi-monitor HDMI and Audio

Posted on Thursday, 16 October 2025

Configuring multi-monitor and choosing HDMI sound output in Omarchy

I added a vertical monitor to my Omarchy desk. I have my BenQ horizontal and have added a Samsung as a vertical screen on the side.

Video setup

Listing my monitors gives me the following:

hyprctl monitors

Monitor HDMI-A-1 (ID 0):
	3840x2160@60.00000 at 0x0
	description: Samsung Electric Company LS27A800U HNMW500048
	make: Samsung Electric Company
	model: LS27A800U
	physical size (mm): 600x340
	serial: -----------
	active workspace: 1 (1)
	special workspace: 0 ()
	reserved: 0 26 0 0
	scale: 1.50
	transform: 1
	focused: yes
	dpmsStatus: 1
	vrr: false
	solitary: 0
	solitaryBlockedBy: windowed mode,missing candidate
	activelyTearing: false
	tearingBlockedBy: next frame is not torn,user settings,missing candidate
	directScanoutTo: 0
	directScanoutBlockedBy: user settings,missing candidate
	disabled: false
	currentFormat: XRGB8888
	mirrorOf: none
	availableModes: 3840x2160@60.00Hz ...

Monitor HDMI-A-2 (ID 1):
	3840x2160@60.00100 at -2560x0
	description: BNQ BenQ EL2870U TBK01026SL0
	make: BNQ
	model: BenQ EL2870U
	physical size (mm): 620x340
	serial: -----------
	active workspace: 2 (2)
	special workspace: 0 ()
	reserved: 0 26 0 0
	scale: 1.50
	transform: 0
	focused: no
	dpmsStatus: 1
	vrr: false
	solitary: 0
	solitaryBlockedBy: not opaque
	activelyTearin#pactl list short sinks
#pactl list cardsg: false
	tearingBlockedBy: next frame is not torn,user settings,missing candidate
	directScanoutTo: 0
	directScanoutBlockedBy: user settings,missing candidate
	disabled: false
	currentFormat: XRGB8888
	mirrorOf: none
	availableModes: 3840x2160@60.00Hz ...

I edited the monitors file to have ~/.config/hypr/monitors.conf

monitor=HDMI-A-2,preferred,auto-left,1.5
monitor=HDMI-A-1,preferred,auto-right,1.5, transform, 1

so that the A-1 (Samsung) has the vertical transform. I might switch it to -1 and turn the monitor the other way, because I have less of a bezel on the top of the monitor, but this is the current setup. I'm still not sure which auto- command I need at minimum, but with these two commands - the screens align the way I want.

Audio setup

The next issue I have is that the audio output is connected from the back of the BenQ monitor to my speaker system, taking the audio along the HDMI channel. Sometimes, depending on which order the screens wake up, the audio output switches to the Samsung. For the moment, I haven't yet fully figured out how to lock the audio output to a single HDMI output, so I have two scripts to run - checking which outputs where. I'll appreciate the help if someone has suggestions.

I used these commands to list the cards and outputs:

pactl list short sinks
pactl list cards

And depending on which screen woke up first, it's either running this one:

pactl set-card-profile alsa_card.pci-0000_00_1f.3 output:hdmi-stereo-extra1
pactl set-default-sink alsa_output.pci-0000_00_1f.3.hdmi-stereo-extra1

or this one:

pactl set-card-profile alsa_card.pci-0000_00_1f.3 output:hdmi-stereo
pactl set-default-sink alsa_output.pci-0000_00_1f.3.hdmi-stereo

I'm hoping to figure out how to pin the audio to the BenQ monitor soon.


Omarchy - Setting screen brightness over HDMI by terminal

Posted on Wednesday, 10 September 2025

Omarchy

With the coming arrival of the end of Windows10, I installed Omarchy on one my Beelink MiniS12 N95, fully expecting just to play with it and revert back to Windows11 on the machine. Win11 was slow on the machine, but a decent cheap desktop to have connected to a screen. Omarchy on the Beelink, even on the tiny hardware, has been absolutely flying. To the point that it's now my main desktop for everything right now.

One thing I needed to do is to handle the brightness of the screen, from the command line, so I could toggle the screen brightness from the command line. I discovered I could use ddcutil which I installed using the package manager on Omarchy.

sudo ddcutil detect
Display 1
   I2C bus:  /dev/i2c-0
   DRM_connector:           card1-HDMI-A-2
   EDID synopsis:
      Mfg id:               BNQ - UNK
      Model:                BenQ EL2870U
      Product code:         31049  (0x7949)
      Serial number:        58M02252SL0
      Binary serial number: 21573 (0x00005445)
      Manufacture year:     2021,  Week: 34
   VCP version:         2.2

My screen is connected by HDMI, do I was able to get the information on it.

~ ❯ sudo usermod -aG i2c $USER

So I didn't want to sudo all the time for my screen display information, I added my user the control of the i2c bus. This could be a security weakening, there's other ways to do it, but for my case it's fine.

~ ❯ ddcutil detect
Display 1
   I2C bus:  /dev/i2c-0
   DRM_connector:           card1-HDMI-A-2
   EDID synopsis:
      Mfg id:               BNQ - UNK
      Model:                BenQ EL2870U
      Product code:         31049  (0x7949)
      Serial number:        58M02252SL0
      Binary serial number: 21573 (0x00005445)
      Manufacture year:     2021,  Week: 34
   VCP version:         2.2

Then getting and setting the brightness was done with the following commands: ddcutil getvcp 10 and ddcutil setvcp 10 20

~ ❯ ddcutil getvcp 10
VCP code 0x10 (Brightness                    ): current value =    40, max value =   100

~ ❯ ddcutil setvcp 10 20

To get a listing of what codes the screen supports, you can use ddcutil capabilities.

ddcutil capabilities
Model: EL2870U
MCCS version: 2.2
Commands:
   Op Code: 01 (VCP Request)
   Op Code: 02 (VCP Response)
   Op Code: 03 (VCP Set)
   Op Code: 07 (Timing Request)
   Op Code: 0C (Save Settings)
   Op Code: E3 (Capabilities Reply)
   Op Code: F3 (Capabilities Request)
VCP Features:
   Feature: 02 (New control value)
   Feature: 04 (Restore factory defaults)
   Feature: 05 (Restore factory brightness/contrast defaults)
   Feature: 08 (Restore color defaults)
   Feature: 0B (Color temperature increment)
   Feature: 0C (Color temperature request)
   Feature: 10 (Brightness)
   Feature: 12 (Contrast)
   Feature: 14 (Select color preset)
      Values:
         04: 5000 K
         05: 6500 K
         08: 9300 K
         0b: User 1
   Feature: 16 (Video gain: Red)
   Feature: 18 (Video gain: Green)
   Feature: 1A (Video gain: Blue)
   Feature: 52 (Active control)
   Feature: 60 (Input Source)
      Values:
         0f: DisplayPort-1
         11: HDMI-1
         12: HDMI-2
   Feature: 62 (Audio speaker volume)
   Feature: 72 (Gamma)
      Invalid gamma descriptor: 50 64 78 8c a0
   Feature: 7D (Unrecognized feature)
      Values: 00 01 02 (interpretation unavailable)
   Feature: 7E (Trapezoid)
      Values: 03 0F 10 11 12 (interpretation unavailable)
   Feature: 7F (Unrecognized feature)
   Feature: 80 (Keystone)
      Values: 01 02 03 (interpretation unavailable)
   Feature: 86 (Display Scaling)
      Values:
         01: No scaling
         02: Max image, no aspect ration distortion
         05: Max vertical image with aspect ratio distortion
         0c: Unrecognized value
         10: Unrecognized value
         11: Unrecognized value
         13: Unrecognized value
         14: Unrecognized value
         15: Unrecognized value
         16: Unrecognized value
         17: Unrecognized value
   Feature: 87 (Sharpness)
   Feature: 8D (Audio mute/Screen blank)
      Values: 01 02 (interpretation unavailable)
   Feature: AC (Horizontal frequency)
   Feature: AE (Vertical frequency)
   Feature: B2 (Flat panel sub-pixel layout)
   Feature: B6 (Display technology type)
   Feature: C0 (Display usage time)
   Feature: C6 (Application enable key)
   Feature: C8 (Display controller type)
   Feature: C9 (Display firmware level)
   Feature: CA (OSD/Button Control)
      Values:
         01: OSD disabled, button events enabled
         02: OSD enabled, button events enabled
   Feature: CC (OSD Language)
      Values:
         01: Chinese (traditional, Hantai)
         02: English
         03: French
         04: German
         05: Italian
         06: Japanese
         07: Korean
         09: Russian
         0a: Spanish
         0b: Swedish
         0d: Chinese (simplified / Kantai)
         0e: Portuguese (Brazil)
         0f: Arabic
         12: Czech
         14: Dutch
         1a: Hungarian
         1e: Polish
         1f: Romanian
   Feature: D6 (Power mode)
      Values:
         01: DPM: On,  DPMS: Off
         05: Write only value to turn off display
   Feature: DA (Scan mode)
      Values:
         00: Normal operation
         02: Overscan
   Feature: DC (Display Mode)
      Values:
         04: User defined
         05: Games
         0b: Unrecognized value
         0c: Unrecognized value
         0e: Unrecognized value
         0f: Unrecognized value
         12: Unrecognized value
         13: Unrecognized value
         21: Unrecognized value
   Feature: DF (VCP Version)

This was what my BenQ exposes.

Ease of use

Discovered that ddcutil allows relative up downs:

~ ❯ ddcutil setvcp 10 + 10
~ ❯ ddcutil setvcp 10 - 10

Next steps

I need to figure out how to wire up these commands to the brightness up / down key commands on Omarchy - so I can control the brightness on the keyboard. Still not sure how to get that configuration working, since it doesn't work out of the box with my screen with the default tooling.