robust env for monitor and wallpaper
This commit is contained in:
@@ -1 +1,3 @@
|
|||||||
hypr/.config/hypr/env
|
hypr/.config/hypr/env
|
||||||
|
hypr/.config/hypr/env.conf
|
||||||
|
hypr/.config/hypr/env.sh
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
$HYPR_MONITOR_SETUP = ~/.config/hypr/modules/monitor_setup_0_auto.conf
|
||||||
Executable
+5
@@ -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
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
MONITOR_SETUP=".config/hypr/modules/monitor_setup_0_auto.conf"
|
|
||||||
|
|
||||||
env = HYPR_WALLPAPER_PATH,~/nextcloud/Photos/Wallpapers/
|
|
||||||
@@ -16,6 +16,8 @@
|
|||||||
# Create your files separately and then link them to this file like this:
|
# Create your files separately and then link them to this file like this:
|
||||||
# source = ~/.config/hypr/myColors.conf
|
# 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/
|
# See https://wiki.hypr.land/Configuring/Monitors/
|
||||||
# monitor=,preferred,auto,auto
|
# monitor=,preferred,auto,auto
|
||||||
|
|
||||||
source = ~/.config/hypr/env
|
|
||||||
source = $HYPR_MONITOR_SETUP
|
source = $HYPR_MONITOR_SETUP
|
||||||
# source = ~/.config/hypr/modules/monitor_setup_buntes_monster.conf
|
# 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.)
|
# Autostart necessary processes (like notifications daemons, status bars, etc.)
|
||||||
# Or execute your favorite apps at launch like this:
|
# Or execute your favorite apps at launch like this:
|
||||||
|
|
||||||
|
# exec = bash ~/.config/wpaperd/link_wallpapers.sh
|
||||||
exec-once = waybar &
|
exec-once = waybar &
|
||||||
# exec-one = hyprpaper &
|
# exec-one = hyprpaper &
|
||||||
exec-once = wpaperd &
|
exec-once = wpaperd &
|
||||||
exec-once = swaync &
|
exec-once = swaync &
|
||||||
exec-once = hypridle &
|
exec-once = hypridle &
|
||||||
exec = nextcloud &
|
exec-once = nextcloud &
|
||||||
exec-once = sh ~/.config/hypr/scripts/portal-host-override.sh
|
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 = 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
|
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
|
||||||
@@ -3,7 +3,18 @@
|
|||||||
|
|
||||||
set -eu # Exit immediately if a command exits with a non-zero status, and treat unset variables as an error.
|
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
|
CONF_SOURCE="hypr/.config/hypr/env_template"
|
||||||
cp "hypr/.config/hypr/env_template" "hypr/.config/hypr/env"
|
CONF_TARGET="hypr/.config/hypr/env"
|
||||||
echo "Created hypr/.config/hypr/env from template."
|
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
|
fi
|
||||||
|
|
||||||
|
if [ ! -f "$SH_TARGET" ]; then
|
||||||
|
cp "$SH_SOURCE" "$SH_TARGET"
|
||||||
|
echo "Created $SH_TARGET from template $SH_SOURCE"
|
||||||
|
15 fi
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
[default]
|
[default]
|
||||||
path = $HYPR_WALLPAPER_PATH
|
path = "~/.config/wpaperd/wallpapers/linked"
|
||||||
mode = "center"
|
mode = "center"
|
||||||
#recursive = true
|
#recursive = true
|
||||||
#sorting = "random"
|
#sorting = "random"
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 975 KiB |
+1
@@ -0,0 +1 @@
|
|||||||
|
/home/mathias/nextcloud/Photos/Wallpapers
|
||||||
Reference in New Issue
Block a user