aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/default.nix1
-rw-r--r--modules/global.nix1
-rw-r--r--modules/i3status.nix74
-rw-r--r--modules/sway/default.nix1
4 files changed, 77 insertions, 0 deletions
diff --git a/modules/default.nix b/modules/default.nix
index d46c392..e2e0bd3 100644
--- a/modules/default.nix
+++ b/modules/default.nix
@@ -5,6 +5,7 @@
./mako.nix
./neovide.nix
./fzf.nix
+ ./i3status.nix
./tmux
./zsh
./sway
diff --git a/modules/global.nix b/modules/global.nix
index 30d39ec..8146fbe 100644
--- a/modules/global.nix
+++ b/modules/global.nix
@@ -54,6 +54,7 @@ in
};
};
+
gtk = {
enable = true;
gtk3.extraConfig.gtk-application-prefer-dark-theme = 1;
diff --git a/modules/i3status.nix b/modules/i3status.nix
new file mode 100644
index 0000000..d796943
--- /dev/null
+++ b/modules/i3status.nix
@@ -0,0 +1,74 @@
+{ config, lib, pkgs, ... }:
+let
+ cfg = config.modules.i3status;
+in
+{
+ options.modules.i3status = {
+ enable = lib.mkEnableOption "i3status";
+ battery = lib.mkEnableOption "battery module";
+ wireless = lib.mkOption {
+ type = lib.types.bool;
+ description = "enable wifi module";
+ default = true;
+ };
+ };
+
+ config = lib.mkIf cfg.enable {
+ home.packages = with pkgs; [
+ ];
+ programs.i3status = {
+ enable = true;
+ enableDefault = false;
+ general = {
+ colors = true;
+ color_good = "#cacaca";
+ color_degraded = "#aca98a";
+ color_bad = "#ac8a8c";
+ interval = 60;
+ separator = " ";
+ };
+ modules = {
+ "volume master" = {
+ position = 1;
+ settings = {
+ format = " %volume";
+ format_muted = "";
+ device = "default";
+# mixer = "Master";
+# mixer_idx = 0;
+ };
+ };
+ "wireless _first_" = {
+ enable = cfg.wireless;
+ position = 3;
+ settings = {
+ format_up = "%quality";
+ format_down = "󰖪";
+ };
+ };
+ "ethernet _first_" = {
+ position = 2;
+ enable = !cfg.wireless;
+ };
+ # i have some laptops that use bat1
+ "battery all" = {
+ position = 4;
+ enable = cfg.battery;
+ settings = {
+ format = "%status %percentage";
+ format_percentage = "%.00f%s";
+ status_chr = "󱐋";
+ status_bat = "";
+ status_idle = "󱐋";
+ };
+ };
+ "tztime local" = {
+ position = 10;
+ settings = {
+ format = " %-I:%M %P";
+ };
+ };
+ };
+ };
+ };
+}
diff --git a/modules/sway/default.nix b/modules/sway/default.nix
index bde8293..a0348f3 100644
--- a/modules/sway/default.nix
+++ b/modules/sway/default.nix
@@ -116,6 +116,7 @@ in
};
extraConfig = ''
modifier ${modifier}
+ separator_symbol " "
'';
colors = {
background = "#0d0d0d";