summaryrefslogtreecommitdiffstats
path: root/.zprofile
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2020-11-01 20:39:02 -0500
committerLuke Smith <luke@lukesmith.xyz>2020-11-01 20:39:02 -0500
commita801ddcbfcf1c0fd01a0c06975571e56c51b077b (patch)
tree4a848169c5841045066914a7f5fde60e43d57fbc /.zprofile
parentf770ac9df144ff24f7790aa23087abf000d656ff (diff)
parentf08e37bdad7aa7c69c7529fe9e48939a4b21d9cc (diff)
downloadeibhear-a801ddcbfcf1c0fd01a0c06975571e56c51b077b.tar.gz
eibhear-a801ddcbfcf1c0fd01a0c06975571e56c51b077b.tar.zst
eibhear-a801ddcbfcf1c0fd01a0c06975571e56c51b077b.zip
Merge branch 'master' of github.com:LukeSmithxyz/voidrice
Diffstat (limited to '.zprofile')
-rw-r--r--.zprofile4
1 files changed, 2 insertions, 2 deletions
diff --git a/.zprofile b/.zprofile
index b2425ee..92e7701 100644
--- a/.zprofile
+++ b/.zprofile
@@ -132,8 +132,8 @@ ex=🎯:\
[ ! -f ${XDG_CONFIG_HOME:-$HOME/.config}/shortcutrc ] && shortcuts >/dev/null 2>&1 &
if pacman -Qs libxft-bgra >/dev/null 2>&1; then
- # Start graphical server on tty1 if not already running.
- [ "$(tty)" = "/dev/tty1" ] && ! pidof Xorg >/dev/null 2>&1 && exec startx
+ # Start graphical server on user's current tty if not already running.
+ [[ -n "$(tty)" && -z $(pgrep -u $USER "\bXorg$") ]] && exec startx
else
echo "\033[31mIMPORTANT\033[0m: Note that \033[32m\`libxft-bgra\`\033[0m must be installed for this build of dwm.
Please run: