From b7ba02fbce85f1967139fd4dc21bf6497a14c983 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Thu, 29 May 2025 16:09:23 -0500 Subject: xcape is an x program and should not be placed in .profile --- dotfiles/system/.local/bin/startdwm | 3 +++ dotfiles/system/.profile.d/capslock.sh | 5 +---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dotfiles/system/.local/bin/startdwm b/dotfiles/system/.local/bin/startdwm index c88dade..68d7c91 100755 --- a/dotfiles/system/.local/bin/startdwm +++ b/dotfiles/system/.local/bin/startdwm @@ -24,6 +24,9 @@ xhost si:localuser:root # start desktop environment applications (conky | while read LINE; do xsetroot -name "$LINE"; done) & +# make short-pressed Ctrl behave like Escape +xcape -e 'Control_L=Escape' & + xautolock -time 5 -locker slock & # picom & sxhkd & diff --git a/dotfiles/system/.profile.d/capslock.sh b/dotfiles/system/.profile.d/capslock.sh index 1ca22f8..1754225 100644 --- a/dotfiles/system/.profile.d/capslock.sh +++ b/dotfiles/system/.profile.d/capslock.sh @@ -2,11 +2,8 @@ # capslock.sh # Craig Jennings -# long press capslock for control, short press for escape -# requires xcape package +# remap capslock for control # make CapsLock behave like Ctrl: setxkbmap -option ctrl:nocaps -# make short-pressed Ctrl behave like Escape: -xcape -e 'Control_L=Escape' -- cgit v1.2.3