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" = {
|
||||
monitor = "DisplayPort-1";
|
||||
monitor = "\${env:MONITOR:DisplayPort-1}";
|
||||
width = "100%";
|
||||
height = "20px";
|
||||
font = [
|
||||
|
@ -94,4 +94,3 @@ with lib;
|
|||
};
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@ in
|
|||
|
||||
services.polybar = {
|
||||
enable = true;
|
||||
script = "polybar &";
|
||||
script = "MONITOR=$(xrandr | grep \"connected primary\" | awk '{print $1;}') polybar &";
|
||||
settings = polybarConfig;
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue