Use conflicting systemd units for color mode
This commit is contained in:
9
services/color-theme-dark.service
Normal file
9
services/color-theme-dark.service
Normal file
@@ -0,0 +1,9 @@
|
||||
[Unit]
|
||||
After=windowmanager.target
|
||||
Conflicts=color-theme-light.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/bin/env switch-color-mode dark
|
||||
RemainAfterExit=true
|
||||
PassEnvironment=DISPLAY
|
||||
@@ -1,9 +1,9 @@
|
||||
[Unit]
|
||||
After=windowmanager.target
|
||||
Conflicts=color-theme-dark.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/bin/env switch-color-mode light
|
||||
ExecStop=/usr/bin/env switch-color-mode dark
|
||||
RemainAfterExit=true
|
||||
PassEnvironment=DISPLAY
|
||||
|
||||
Reference in New Issue
Block a user