Added bin/cfgxport.sh and some fixes.

This commit is contained in:
Johannes Findeisen 2025-07-03 02:51:45 +02:00
commit 818620d474
4 changed files with 62 additions and 8 deletions

View file

@ -1,13 +1,20 @@
#!/bin/bash
. /home/hanez/.env
. ~/.env
# Export DEFAULT_SESSION in this file:
. /home/hanez/.penv
. ~/.penv
# My Xorg screen configuration is loaded here and looks something like this:
# 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
/home/hanez/.config/screenlayout.sh
# 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
if [[ "$1" == "xterm" ]]; then
shift
@ -26,3 +33,4 @@ case $1 in
exec dbus-launch $DEFAULT_SESSION
;;
esac