Waybar tmux fix, readme video

This commit is contained in:
foglar 2024-12-30 09:08:38 +01:00
parent ca1745a8d9
commit 2ab5b39140
3 changed files with 17 additions and 9 deletions

View File

@ -11,6 +11,8 @@
## Showcase ## Showcase
[![Watch the video](https://github.com/foglar/nix-config/raw/refs/heads/master/docs/demo.mp4)
<div> <div>
<img width="300" src="./docs/screenshot1.png" /> <img width="300" src="./docs/screenshot1.png" />
<img width="300" src="./docs/screenshot2.png" /> <img width="300" src="./docs/screenshot2.png" />

View File

@ -2,6 +2,7 @@
lib, lib,
config, config,
pkgs, pkgs,
userSettings,
... ...
}: { }: {
options = { options = {
@ -287,13 +288,20 @@
}; };
style = '' style = ''
@define-color bar-bg rgba(0, 0, 0, 0); ${
@define-color main-bg #11111b; if
@define-color main-fg #cdd6f4; (
@define-color wb-act-bg #a6adc8; userSettings.theme == "catppuccin-mocha" || userSettings.theme == "tokyo-night-dark"
@define-color wb-act-fg #313244; )
@define-color wb-hvr-bg #f5c2e7; then "@define-color bar-bg rgba(0, 0, 0, 0);
@define-color wb-hvr-fg #313; @define-color main-bg #11111b;
@define-color main-fg #cdd6f4;
@define-color wb-act-bg #a6adc8;
@define-color wb-act-fg #313244;
@define-color wb-hvr-bg #f5c2e7;
@define-color wb-hvr-fg #313;"
else ""
}
* { * {
border: none; border: none;
border-radius: 0px; border-radius: 0px;

View File

@ -9,7 +9,6 @@
}; };
config = lib.mkIf config.program.tmux.enable { config = lib.mkIf config.program.tmux.enable {
stylix.targets.tmux.enable = true; stylix.targets.tmux.enable = true;
programs.tmux = { programs.tmux = {
@ -53,7 +52,6 @@
set -g base-index 1 set -g base-index 1
set -g pane-base-index 1 set -g pane-base-index 1
set-window-option -g pane-base-index 1 set-window-option -g pane-base-index 1
set-option -g renumber-windows only
bind -n M-H previous-window bind -n M-H previous-window
bind -n M-L next-window bind -n M-L next-window