aboutsummaryrefslogtreecommitdiff
path: root/.xprofile
diff options
context:
space:
mode:
authorBlista Kanjo2023-08-07 00:32:46 -0400
committerBlista Kanjo2023-08-07 00:32:46 -0400
commitf5fbef0b0e411e8948a787dae0c1b0733a9acb12 (patch)
tree770ca98368656d374f186db88d319b9073dd63f0 /.xprofile
parent364a3a76049ec8f6e41d2bb88fb196aaa0698068 (diff)
feat: make `.xprofile` linkable as `.zprofile`
Diffstat (limited to '.xprofile')
-rw-r--r--.xprofile11
1 files changed, 9 insertions, 2 deletions
diff --git a/.xprofile b/.xprofile
index d414a79..becc18c 100644
--- a/.xprofile
+++ b/.xprofile
@@ -1,5 +1,12 @@
-setxkbmap -option compose:ralt
-xset r rate 300 50
+#!/bin/sh
+
+if [ -n "$DISPLAY" ] && xhost >/dev/null; then
+ setxkbmap -option compose:ralt
+ xset r rate 300 50
+ export XPROFILE_X11_SPECIFICS=loaded
+else
+ echo "x11 is not running... x11-related settings have been skipped"
+fi
export EDITOR=nvim
export TERM=xterm-256color