Remove old screencfg config

This commit is contained in:
2021-01-27 16:37:42 +01:00
parent 04d93333bf
commit 18833de76b
2 changed files with 1 additions and 3 deletions

View File

@@ -41,6 +41,5 @@ environment:
MACHINE_HAS_STEAM: "true" MACHINE_HAS_STEAM: "true"
MACHINE_HAS_DISCORD: "true" MACHINE_HAS_DISCORD: "true"
MACHINE_HAS_RESTIC_BACKUP: "false" MACHINE_HAS_RESTIC_BACKUP: "false"
MACHINE_DEFAULT_SCREENPROFILE: "ares"
MACHINE_RESOLUTION_X: "2560" MACHINE_RESOLUTION_X: "2560"
MACHINE_RESOLUTION_Y: "1440" MACHINE_RESOLUTION_Y: "1440"

View File

@@ -1,7 +1,6 @@
[Unit] [Unit]
BindsTo=autostart.target BindsTo=autostart.target
After=windowmanager.target After=windowmanager.target
ConditionEnvironment=MACHINE_DEFAULT_SCREENPROFILE
[Service] [Service]
Type=oneshot Type=oneshot
@@ -9,6 +8,6 @@ Type=oneshot
# > The command to execute may contain spaces, but control characters are not # > The command to execute may contain spaces, but control characters are not
# > allowed. # > allowed.
ExecStart=/usr/bin/env bash -c '%h/.screencfg/${MACHINE_DEFAULT_SCREENPROFILE}.sh' ExecStart=/usr/bin/env screencfg "%h/.screencfg/%H/default.yml"
RemainAfterExit=true RemainAfterExit=true
Environment=DISPLAY=:0 Environment=DISPLAY=:0