Enable dependent on WM

This commit is contained in:
Valentin Brandl 2024-08-11 17:23:54 +02:00
parent e515e87c7f
commit 1c7a0c7dbe
Signed by: vbrandl
GPG Key ID: CAD4DA1A789125F9
3 changed files with 6 additions and 6 deletions

View File

@ -1,6 +1,6 @@
{ pkgs, ... }: {
{ config, pkgs, ... }: {
services.polybar = {
enable = true;
enable = config.xsession.windowManager.i3.enable;
config = {
"bar/top" = {
monitor = "\${env:MONITOR:}";

View File

@ -1,6 +1,6 @@
{ ... }: {
{ config, ... }: {
services.redshift = {
enable = true;
enable = config.xsession.windowManager.i3.enable;
longitude = "49.01315";
latitude = "12.1119";
};

View File

@ -1,6 +1,6 @@
{ pkgs, ... }: {
{ config, pkgs, ... }: {
programs.waybar = {
enable = true;
enable = config.wayland.windowManager.sway.enable;
systemd.enable = true;
settings = {
mainBar = {