From 6c30decf8db06422755ba1e596bcfd029fb0a85e Mon Sep 17 00:00:00 2001 From: Robert Helgesson Date: Tue, 15 Jan 2019 19:46:00 +0100 Subject: [PATCH] i3: replace use of types.string by types.str (cherry picked from commit 59a4ac71f94339b01c7bdb66542d1cc3b46a841c) --- modules/services/window-managers/i3.nix | 40 ++++++++++++------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/modules/services/window-managers/i3.nix b/modules/services/window-managers/i3.nix index 1a21d12a..059c7a8a 100644 --- a/modules/services/window-managers/i3.nix +++ b/modules/services/window-managers/i3.nix @@ -8,7 +8,7 @@ let commonOptions = { fonts = mkOption { - type = types.listOf types.string; + type = types.listOf types.str; default = ["monospace 8"]; description = '' Font list used for window titles. Only FreeType fonts are supported. @@ -21,7 +21,7 @@ let startupModule = types.submodule { options = { command = mkOption { - type = types.string; + type = types.str; description = "Command that will be executed on startup."; }; @@ -41,7 +41,7 @@ let }; workspace = mkOption { - type = types.nullOr types.string; + type = types.nullOr types.str; default = null; description = '' Launch application on a particular workspace. DEPRECATED: @@ -55,17 +55,17 @@ let barColorSetModule = types.submodule { options = { border = mkOption { - type = types.string; + type = types.str; visible = false; }; background = mkOption { - type = types.string; + type = types.str; visible = false; }; text = mkOption { - type = types.string; + type = types.str; visible = false; }; }; @@ -74,27 +74,27 @@ let colorSetModule = types.submodule { options = { border = mkOption { - type = types.string; + type = types.str; visible = false; }; childBorder = mkOption { - type = types.string; + type = types.str; visible = false; }; background = mkOption { - type = types.string; + type = types.str; visible = false; }; text = mkOption { - type = types.string; + type = types.str; visible = false; }; indicator = mkOption { - type = types.string; + type = types.str; visible = false; }; }; @@ -111,7 +111,7 @@ let }; id = mkOption { - type = types.nullOr types.string; + type = types.nullOr types.str; default = null; description = '' Specifies the bar ID for the configured bar instance. @@ -151,7 +151,7 @@ let }; command = mkOption { - type = types.string; + type = types.str; default = "${cfg.package}/bin/i3bar"; defaultText = "i3bar"; description = "Command that will be used to start a bar."; @@ -159,7 +159,7 @@ let }; statusCommand = mkOption { - type = types.string; + type = types.str; default = "${pkgs.i3status}/bin/i3status"; description = "Command that will be used to get status lines."; }; @@ -168,19 +168,19 @@ let type = types.submodule { options = { background = mkOption { - type = types.string; + type = types.str; default = "#000000"; description = "Background color of the bar."; }; statusline = mkOption { - type = types.string; + type = types.str; default = "#ffffff"; description = "Text color to be used for the statusline."; }; separator = mkOption { - type = types.string; + type = types.str; default = "#666666"; description = "Text color to be used for the separator."; }; @@ -238,7 +238,7 @@ let }; trayOutput = mkOption { - type = types.string; + type = types.str; default = "primary"; description = "Where to output tray."; }; @@ -248,7 +248,7 @@ let windowCommandModule = types.submodule { options = { command = mkOption { - type = types.string; + type = types.str; description = "i3wm command to execute."; example = "border pixel 1"; }; @@ -505,7 +505,7 @@ let type = types.submodule { options = { background = mkOption { - type = types.string; + type = types.str; default = "#ffffff"; description = '' Background color of the window. Only applications which do not cover