From 59414f25afadeb04c3e112f8465fd903720f5d1f Mon Sep 17 00:00:00 2001 From: Solomon Laing Date: Thu, 12 May 2022 17:43:28 +0930 Subject: [PATCH] added xmodmap :D --- .Xmodmap | 4 ++++ .xinitrc | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 .Xmodmap diff --git a/.Xmodmap b/.Xmodmap new file mode 100644 index 0000000..1945241 --- /dev/null +++ b/.Xmodmap @@ -0,0 +1,4 @@ +clear lock +clear control +add control = Caps_Lock Control_L Control_R +keycode 66 = Control_L Caps_Lock NoSymbol NoSymbol diff --git a/.xinitrc b/.xinitrc index eacada3..ff81d04 100644 --- a/.xinitrc +++ b/.xinitrc @@ -1,3 +1,4 @@ + #!/bin/sh userresources=$HOME/.Xresources @@ -40,13 +41,15 @@ fi # it seems modules and xorg confs were not due to there being an intel # integrated card, not sure how the desktop will react though -HOST=$(hostname) +HOST=$(cat /etc/hostname) if [ "$HOST" == "archmetabox" ] ; then # this is specifically for the laptop so check hostname xrandr --setprovideroutputsource modesetting NVIDIA-G0 xrandr --auto fi + +HOST=$(hostname) if [ "$HOST" == "holocene" ] ; then [ -f ~/.xprofile ] && . ~/.xprofile