From 83631dde73e30d55c3c011ea3e0cf762125dc676 Mon Sep 17 00:00:00 2001
From: Julien Moutinho <julm+julm-nix@sourcephile.fr>
Date: Sun, 19 Jan 2025 23:06:40 +0100
Subject: [PATCH] julm: pumpkin: Xmodmap: use Control_R as alternative modMask

---
 homes/julm/hosts/pumpkin.nix | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/homes/julm/hosts/pumpkin.nix b/homes/julm/hosts/pumpkin.nix
index 6bf2e79..5cab16b 100644
--- a/homes/julm/hosts/pumpkin.nix
+++ b/homes/julm/hosts/pumpkin.nix
@@ -106,6 +106,12 @@
     tag Program:$current.program,
   '';
 
+  home.file.".Xmodmap".text = ''
+    ! Make Control_R behave like Super_L, the modMask used in Xmonad
+    remove control = Control_R
+    add mod4 = Control_R
+  '';
+
   /* Cannot be automounted
     systemd.user.mounts = {
     mnt-aubergine = {
-- 
2.47.2