diff options
| author | Arpit Chakladar <54011232+arpitchakladar@users.noreply.github.com> | 2025-07-10 01:29:48 +0530 |
|---|---|---|
| committer | Arpit Chakladar <54011232+arpitchakladar@users.noreply.github.com> | 2025-07-10 01:29:48 +0530 |
| commit | 085ff668ab45ac8d57c093e502b1175a86f2c14e (patch) | |
| tree | 0fe7de3fdb29a9d0f7294e4af91d938fe5283533 /modules/desktop/status-bar/polybar/default.nix | |
| parent | 70b590bf6b83dcb8f142451951a0f54ec3308283 (diff) | |
| download | home-manager-config-085ff668ab45ac8d57c093e502b1175a86f2c14e.tar.gz home-manager-config-085ff668ab45ac8d57c093e502b1175a86f2c14e.zip | |
Removed unnecessary packages.
Diffstat (limited to 'modules/desktop/status-bar/polybar/default.nix')
| -rw-r--r-- | modules/desktop/status-bar/polybar/default.nix | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/modules/desktop/status-bar/polybar/default.nix b/modules/desktop/status-bar/polybar/default.nix deleted file mode 100644 index 76901f6..0000000 --- a/modules/desktop/status-bar/polybar/default.nix +++ /dev/null @@ -1,34 +0,0 @@ -{ config, lib, pkgs, ... }: - -let - polybarPackage = pkgs.polybar.override { - i3Support = config.desktop.window-manager.i3.enable; - }; -in -{ - options.desktop.status-bar.polybar = { - enable = lib.mkEnableOption "Enables polybar."; - command = lib.mkOption { - type = lib.types.str; - description = "Command to run polybar."; - # This command calculates the width of the polybar to create those gaps - default = toString (pkgs.writeShellScript "polybar-run.sh" '' -#!/bin/sh - -MONITOR_WIDTH=$(xrandr | grep '*' | awk '{print $1}' | cut -d'x' -f1 | head -n1) -OFFSET=${toString config.desktop.window-manager.gap} -POLYBAR_WIDTH=$((MONITOR_WIDTH - 2 * OFFSET)) POLYBAR_OFFSET=$OFFSET ${polybarPackage}/bin/polybar main & -''); - }; - }; - - config = lib.mkIf config.desktop.status-bar.polybar.enable { - services.polybar.enable = true; - services.polybar.script = config.desktop.status-bar.polybar.command; - services.polybar.package = polybarPackage; - services.polybar.config = lib.mkMerge [ - (import ./bar { inherit config lib; }) - (import ./module { inherit config lib; }) - ]; - }; -} |
