home/.xinitrc

36 lines
789 B
Text
Raw Normal View History

#!/bin/bash
2024-09-02 00:44:33 +02:00
2025-07-03 02:51:45 +02:00
. ~/.env
2024-09-02 02:06:41 +02:00
# Export DEFAULT_SESSION in this file:
2025-07-03 02:51:45 +02:00
. ~/.penv
2024-09-02 00:44:33 +02:00
2025-07-03 02:51:45 +02:00
# Xorg screen setup
export DISPLAY=:0.0
xrandr --output DisplayPort-0 --mode 2560x1440 --pos 0x0 --rotate normal --output DisplayPort-1 --primary --mode 2560x1440 --pos 2560x0 --rotate normal --output DisplayPort-2 --mode 2560x1440 --pos 5120x0 --rotate normal --output HDMI-A-0 --off
# Disable screen blanking
# Source: https://superuser.com/questions/644804/disable-screensaver-screen-blank-via-command-line
xset s off
xset s noblank
xset -dpms
2024-09-02 00:44:33 +02:00
if [[ "$1" == "xterm" ]]; then
shift
fi
case $1 in
awesome)
exec dbus-launch awesome
;;
qtile)
while true; do
exec dbus-launch qtile start
done
;;
*)
exec dbus-launch $DEFAULT_SESSION
;;
esac
2025-07-03 02:51:45 +02:00