robust env for monitor and wallpaper

This commit is contained in:
2026-03-02 21:58:51 +01:00
parent a1402c94d6
commit 21fb17a4cc
10 changed files with 29 additions and 9 deletions
+1
View File
@@ -0,0 +1 @@
$HYPR_MONITOR_SETUP = ~/.config/hypr/modules/monitor_setup_0_auto.conf
+5
View File
@@ -0,0 +1,5 @@
# export HYPR_MONITOR_SETUP=~/.config/hypr/modules/monitor_setup_buntes_monster.conf
export HYPR_WALLPAPER_LINK_SOURCE="$HOME/nextcloud/Photos/Wallpapers"
export HYPR_WALLPAPER_LINK="$HOME/.config/wpaperd/wallpapers/linked"
ln -sf $HYPR_WALLPAPER_PATH HYPR_WALLPAPER_LINK
-3
View File
@@ -1,3 +0,0 @@
MONITOR_SETUP=".config/hypr/modules/monitor_setup_0_auto.conf"
env = HYPR_WALLPAPER_PATH,~/nextcloud/Photos/Wallpapers/
+4 -2
View File
@@ -16,6 +16,8 @@
# Create your files separately and then link them to this file like this:
# source = ~/.config/hypr/myColors.conf
source = ~/.config/hypr/env.conf
exec = bash ~/.config/hypr/env
################
@@ -27,7 +29,6 @@ enable_color_management = true
# See https://wiki.hypr.land/Configuring/Monitors/
# monitor=,preferred,auto,auto
source = ~/.config/hypr/env
source = $HYPR_MONITOR_SETUP
# source = ~/.config/hypr/modules/monitor_setup_buntes_monster.conf
@@ -57,12 +58,13 @@ $menu = wofi --show drun
# Autostart necessary processes (like notifications daemons, status bars, etc.)
# Or execute your favorite apps at launch like this:
# exec = bash ~/.config/wpaperd/link_wallpapers.sh
exec-once = waybar &
# exec-one = hyprpaper &
exec-once = wpaperd &
exec-once = swaync &
exec-once = hypridle &
exec = nextcloud &
exec-once = nextcloud &
exec-once = sh ~/.config/hypr/scripts/portal-host-override.sh
exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP XDG_SESSION_DESKTOP XDG_SESSION_TYPE
exec-once = systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP XDG_SESSION_DESKTOP XDG_SESSION_TYPE
@@ -0,0 +1 @@
monitor=,preferred,auto,1.0
+14 -3
View File
@@ -3,7 +3,18 @@
set -eu # Exit immediately if a command exits with a non-zero status, and treat unset variables as an error.
if [ ! -f "hypr/.config/hypr/env" ]; then
cp "hypr/.config/hypr/env_template" "hypr/.config/hypr/env"
echo "Created hypr/.config/hypr/env from template."
CONF_SOURCE="hypr/.config/hypr/env_template"
CONF_TARGET="hypr/.config/hypr/env"
SH_SOURCE="hypr/.config/hypr/env_template"
SH_TARGET="hypr/.config/hypr/env"
if [ ! -f "$CONF_TARGET" ]; then
cp "$CONF_SOURCE" "$CONF_TARGET"
echo "Created $CONF_TARGET from template $CONF_SOURCE"
fi
if [ ! -f "$SH_TARGET" ]; then
cp "$SH_SOURCE" "$SH_TARGET"
echo "Created $SH_TARGET from template $SH_SOURCE"
15 fi