mirror of
https://github.com/nix-community/home-manager
synced 2024-11-26 21:19:45 +01:00
polybar: minor reformatting
This commit is contained in:
parent
629d66e0b9
commit
4602c00dcf
1 changed files with 11 additions and 11 deletions
|
@ -10,18 +10,18 @@ let
|
|||
|
||||
toPolybarIni = generators.toINI {
|
||||
mkKeyValue = key: value:
|
||||
let
|
||||
quoted = v:
|
||||
if hasPrefix " " v || hasSuffix " " v
|
||||
then ''"${v}"''
|
||||
else v;
|
||||
let
|
||||
quoted = v:
|
||||
if hasPrefix " " v || hasSuffix " " v
|
||||
then ''"${v}"''
|
||||
else v;
|
||||
|
||||
value' =
|
||||
if isBool value then (if value then "true" else "false")
|
||||
else if (isString value && key != "include-file") then quoted value
|
||||
else toString value;
|
||||
in
|
||||
"${key}=${value'}";
|
||||
value' =
|
||||
if isBool value then (if value then "true" else "false")
|
||||
else if (isString value && key != "include-file") then quoted value
|
||||
else toString value;
|
||||
in
|
||||
"${key}=${value'}";
|
||||
};
|
||||
|
||||
configFile = pkgs.writeText "polybar.conf"
|
||||
|
|
Loading…
Reference in a new issue