update configs

This commit is contained in:
2025-05-08 12:33:34 +02:00
parent 13eefb792f
commit 023f608bec
4 changed files with 17 additions and 7 deletions

View File

@@ -1,8 +1,5 @@
#!/bin/sh
# screenlayout setup for odin
autorandr -c
# start some nice programs
# if [ -d /etc/X11/xinit/xinitrc.d ] ; then
# for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
@@ -71,6 +68,8 @@ setxkbmap pl &
# Host-specific rules
if [ "$(hostname)" = "zion" ]; then
# Zion rules (Desktop)
# screenlayout setup for odin
bash $HOME/.config/screenlayout/main.sh &
# Enable DPMS and set longer timeouts for desktop
# xset +dpms
# xset dpms 1200 2400 3600 # Standby: 20 min, Suspend: 40 min, Off: 60 min
@@ -92,6 +91,7 @@ if [ "$(hostname)" = "zion" ]; then
elif [ "$(hostname)" = "thor" ]; then
# Thor rules (Laptop)
autorandr -c
# Enable DPMS and set shorter timeouts for laptop
# xset +dpms
# xset dpms 300 600 900 # Standby: 5 min, Suspend: 10 min, Off: 15 min
@@ -109,8 +109,12 @@ elif [ "$(hostname)" = "thor" ]; then
--timer 600 "loginctl lock-session" "" \
--timer 750 "xset dpms force standby" "" \
--timer 900 "systemctl suspend" "" &
else
# Fallback rules for other hosts
autorandr -c
fi
# auths
# /usr/lib/mate-polkit/polkit-mate-authentication-agent-1 &
# gnome-keyring-daemon &