home/polybar: fix default monitor
This commit is contained in:
parent
0ec6a2cc4f
commit
3c153d4a90
2 changed files with 2 additions and 3 deletions
|
@ -4,7 +4,7 @@ with lib;
|
||||||
|
|
||||||
{
|
{
|
||||||
"bar/main" = {
|
"bar/main" = {
|
||||||
monitor = "DisplayPort-1";
|
monitor = "\${env:MONITOR:DisplayPort-1}";
|
||||||
width = "100%";
|
width = "100%";
|
||||||
height = "20px";
|
height = "20px";
|
||||||
font = [
|
font = [
|
||||||
|
@ -94,4 +94,3 @@ with lib;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -30,7 +30,7 @@ in
|
||||||
|
|
||||||
services.polybar = {
|
services.polybar = {
|
||||||
enable = true;
|
enable = true;
|
||||||
script = "polybar &";
|
script = "MONITOR=$(xrandr | grep \"connected primary\" | awk '{print $1;}') polybar &";
|
||||||
settings = polybarConfig;
|
settings = polybarConfig;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue