From 6b71003bcb1bd192f3efdda2dbea98ccbd297964 Mon Sep 17 00:00:00 2001 From: uttarayan21 Date: Wed, 12 Mar 2025 18:08:49 +0530 Subject: [PATCH] chore(tmux): Update catppuccin to latest syntax and update sops-nix --- flake.lock | 6 +++--- home/programs/tmux.nix | 30 ++++++++++++++---------------- 2 files changed, 17 insertions(+), 19 deletions(-) diff --git a/flake.lock b/flake.lock index 735af16c..05d1fcdb 100644 --- a/flake.lock +++ b/flake.lock @@ -2420,11 +2420,11 @@ ] }, "locked": { - "lastModified": 1741043164, - "narHash": "sha256-9lfmSZLz6eq9Ygr6cCmvQiiBEaPb54pUBcjvbEMPORc=", + "lastModified": 1741644481, + "narHash": "sha256-E0RrMykMtEv15V3QhpsFutgoSKhL1JBhidn+iZajOyg=", "owner": "Mic92", "repo": "sops-nix", - "rev": "3f2412536eeece783f0d0ad3861417f347219f4d", + "rev": "e653d71e82575a43fe9d228def8eddb73887b866", "type": "github" }, "original": { diff --git a/home/programs/tmux.nix b/home/programs/tmux.nix index d41e61d3..c0a00772 100644 --- a/home/programs/tmux.nix +++ b/home/programs/tmux.nix @@ -19,6 +19,7 @@ in { tmuxPlugins.better-mouse-mode tmuxPlugins.tmux-fzf tmuxPlugins.fzf-tmux-url + tmuxPlugins.battery { plugin = tmuxPlugins.tmux-thumbs; extraConfig = @@ -34,30 +35,27 @@ in { set -g @thumbs-command 'echo -n {} | wl-copy' ''; } - # { - # plugin = tmuxPlugins.tmux-super-fingers; - # extraConfig = "set -g @super-fingers-key i"; - # } { plugin = tmuxPlugins.catppuccin; extraConfig = - # tmux + /* + tmux + */ '' - set -g @catppuccin_flavour 'mocha' - set -g @catppuccin_window_default_text '''''' - ''; - } - { - plugin = tmuxPlugins.battery; - extraConfig = - # tmux - '' - set -g @catppuccin_status_modules_right "battery application session date_time" + set -g @catppuccin_flavor 'mocha' # latte, frappe, macchiato or mocha + set -g @catppuccin_window_status_style "rounded" + set -g status-left "" + set -g status-right "#{E:@catppuccin_status_application}" + set -ag status-right "#{E:@catppuccin_status_session}" + set -ag status-right "#{E:@catppuccin_status_uptime}" + set -agF status-right "#{E:@catppuccin_status_battery}" ''; } ]; extraConfig = - # tmux + /* + tmux + */ '' set -gw mode-keys vi set -g status-keys vi