From f5fbef0b0e411e8948a787dae0c1b0733a9acb12 Mon Sep 17 00:00:00 2001 From: Blista Kanjo Date: Mon, 7 Aug 2023 00:32:46 -0400 Subject: feat: make `.xprofile` linkable as `.zprofile` --- .xprofile | 11 +++++++++-- .zprofile | 1 + 2 files changed, 10 insertions(+), 2 deletions(-) create mode 120000 .zprofile 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 diff --git a/.zprofile b/.zprofile new file mode 120000 index 0000000..8078978 --- /dev/null +++ b/.zprofile @@ -0,0 +1 @@ +/home/kylert/.xprofile \ No newline at end of file -- cgit v1.2.3