config

My configuration files and custom scripts.
git clone https://git.tronto.net/config
Download | Log | Files | Refs

commit 834f127ef8d3952bfe0deaa2abc31075d0d45de4
parent 0a1512c2308dc47f114c693183aec6b277afd269
Author: Sebastiano Tronto <sebastiano@tronto.net>
Date:   Sat,  9 May 2026 17:42:30 +0200

Add shortcut for fixing keyboard

Diffstat:
M.config/dwm/config.h | 1+
M.xinitrc | 3+--
Ascripts/xkfix | 7+++++++
3 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/.config/dwm/config.h b/.config/dwm/config.h @@ -189,6 +189,7 @@ static Key keys[] = { { MODKEY|ShiftMask, XK_v, spawn, SHCMD("popup-terminal pulsemixer") }, { MODKEY|ShiftMask, XK_b, spawn, SHCMD("popup-terminal bluetoothctl") }, { MODKEY|ShiftMask, XK_p, spawn, SHCMD("popup-terminal top") }, + { MODKEY, XK_space, spawn, SHCMD("xkfix") }, /* Multimedia */ { 0, XK_Print, spawn, SHCMD("dmenu-screenshot") }, diff --git a/.xinitrc b/.xinitrc @@ -18,8 +18,7 @@ while true; do done & # Extra settings -setxkbmap -option compose:ralt -setxkbmap -option caps:swapescape +xkfix # From scripts brightnessctl set 30% xset s off -dpms xrdb -merge ~/.Xresources diff --git a/scripts/xkfix b/scripts/xkfix @@ -0,0 +1,7 @@ +#!/bin/sh + +# Swap Esc and Caps Lock and set compose key to Right Alt +# Requires: setxkbmap + +setxkbmap -option caps:swapescape +setxkbmap -option compose:ralt