aboutsummaryrefslogtreecommitdiff
path: root/tmux-tsunami/modules/common/bar.nix
diff options
context:
space:
mode:
authorCollin Williams <96917990+bluedragon1221@users.noreply.github.com>2026-07-15 12:03:58 -0500
committerCollin Williams <96917990+bluedragon1221@users.noreply.github.com>2026-07-15 12:03:58 -0500
commitd2aecd69c17fa64305c07333686576152432993d (patch)
tree2f52c7808a6cbd57ef60284947d3728a38cfab34 /tmux-tsunami/modules/common/bar.nix
parentf5ef0cf848e65d4fea2be8dee7bc1c72ad67046f (diff)
changes.
Diffstat (limited to 'tmux-tsunami/modules/common/bar.nix')
-rw-r--r--tmux-tsunami/modules/common/bar.nix69
1 files changed, 0 insertions, 69 deletions
diff --git a/tmux-tsunami/modules/common/bar.nix b/tmux-tsunami/modules/common/bar.nix
deleted file mode 100644
index cbb162a..0000000
--- a/tmux-tsunami/modules/common/bar.nix
+++ /dev/null
@@ -1,69 +0,0 @@
-{
- config,
- lib,
- tsunamiLib,
- ...
-}: let
- inherit (tsunamiLib) scriptPath;
-in {
- options = let
- hexColor = lib.types.strMatching "^#?([0-9a-fA-F]{6}|[0-9a-fA-F]{3})$";
- in {
- tsunami.theme = {
- bg = lib.mkOption {
- type = hexColor;
- default = "#fff";
- };
- bg_dark = lib.mkOption {
- type = hexColor;
- default = "#000";
- };
- };
- };
- config = {
- tsunami = {
- scripts = {
- "battery" = ''
- energy_now=$(cat /sys/class/power_supply/BAT0/energy_now)
- energy_full=$(cat /sys/class/power_supply/BAT0/energy_full)
- percentage=$((energy_now * 100 / energy_full))
- printf "%.0f%%" "$percentage"
- '';
-
- "bar" = ''
- tmux set -g status on
-
- tmux set -g status-position bottom
- tmux set -g status-justify absolute-centre
- tmux set -g status-bg "${config.tsunami.theme.bg}"
-
- tmux set -g status-left-style fg=green,bold
- tmux set -g status-left " #{client_session}"
-
- tmux set -g window-status-style fg=color243
- tmux set -g window-status-format " #I "
- tmux set -g window-status-current-style fg=color12,bold
- tmux set -g window-status-current-format " #I "
- tmux set -g window-status-separator ""
-
- tmux set -g status-right "#[fg=color243]%l:%M #[fg=red]#(${scriptPath "battery"}) "
-
- ## pane borders
- tmux set -g pane-border-style fg=${config.tsunami.theme.bg_dark},bg=${config.tsunami.theme.bg_dark}
- tmux set -g pane-active-border-style fg=${config.tsunami.theme.bg_dark},bg=${config.tsunami.theme.bg_dark}
-
- ## pane backgrounds
- # Set the foreground/background color for the active window
- tmux set -g window-active-style bg=${config.tsunami.theme.bg}
-
- # Set the foreground/background color for all other windows
- tmux set -g window-style bg=${config.tsunami.theme.bg_dark}
- '';
- };
-
- confs."bar" = ''
- run-shell ${scriptPath "bar"}
- '';
- };
- };
-}