summaryrefslogtreecommitdiff
path: root/.profile
diff options
context:
space:
mode:
authorfilip <“filip.rabiega@gmail.com”>2026-01-21 11:26:01 +0100
committerfilip <“filip.rabiega@gmail.com”>2026-01-21 11:26:01 +0100
commit7c1058edb5da4eb145e57e66d78328beb9697085 (patch)
tree6995d3cb88220aec3b13e8a44fbcb5db2b246df9 /.profile
parent9fd1f06f2a10d3d0e120dd5a45ad8cc3dceb6d84 (diff)
downloaddotfiles-7c1058edb5da4eb145e57e66d78328beb9697085.tar.gz
dotfiles-7c1058edb5da4eb145e57e66d78328beb9697085.tar.bz2
dotfiles-7c1058edb5da4eb145e57e66d78328beb9697085.zip
lotsa changes too lazy to list then
Diffstat (limited to '.profile')
-rw-r--r--.profile13
1 files changed, 3 insertions, 10 deletions
diff --git a/.profile b/.profile
index d83a29f..cd93134 100644
--- a/.profile
+++ b/.profile
@@ -1,15 +1,8 @@
#!/bin/sh
-# Filip's .profile
+# Filip's .profile.
# Set environmental variables
. /home/filipek/.config/shell/envvarrc
-# Autostart stuff on reboot
-autostart="remaps slstatus xcompmgr xhidecursor"
-
-for program in $autostart; do
- pidof -sx "$program" || "$program" &
-done >/dev/null 2>&1
-
-# Set wallpaper
-xwallpaper --stretch "$HOME"/pix/wallpaper.jpg
+# Start graphical server on user's current tty if not already running.
+[ "$(tty)" = "/dev/tty1" ] && ! pidof -s Xorg >/dev/null 2>&1 && exec startx "$XINITRC"