Migrate full DMS personalization on Ubuntu 24.04

This commit is contained in:
wuyang
2026-07-27 15:40:02 +08:00
parent fd0fcd3437
commit a0030934c0
24 changed files with 1769 additions and 469 deletions
+10
View File
@@ -0,0 +1,10 @@
#!/usr/bin/env bash
set -euo pipefail
for browser in google-chrome google-chrome-stable chromium chromium-browser firefox; do
if command -v "$browser" >/dev/null 2>&1; then
exec "$browser"
fi
done
exec xdg-open https://www.google.com
+4
View File
@@ -0,0 +1,4 @@
#!/usr/bin/env bash
set -euo pipefail
systemctl --user restart dms.service
-15
View File
@@ -1,15 +0,0 @@
#!/usr/bin/env bash
set -euo pipefail
state="${XDG_CONFIG_HOME:-$HOME/.config}/niri-beyond-glass/wallpaper"
wallpaper=""
if [[ -s "$state" ]]; then
IFS= read -r wallpaper < "$state"
fi
if [[ -n "$wallpaper" && -f "$wallpaper" ]]; then
exec swaybg -m fill -i "$wallpaper"
fi
exec swaybg -c '#15171a'