Fixed waybar and tmux
This commit is contained in:
parent
4d1f19b16c
commit
36fbf464ed
6 changed files with 172 additions and 24 deletions
21
flake.lock
generated
21
flake.lock
generated
|
@ -628,6 +628,26 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"minimal-tmux": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1748977843,
|
||||||
|
"narHash": "sha256-0gXtFVan+Urb79AjFOjHdjl3Q73m8M3wFSo3ZhjxcBA=",
|
||||||
|
"owner": "niksingh710",
|
||||||
|
"repo": "minimal-tmux-status",
|
||||||
|
"rev": "de2bb049a743e0f05c08531a0461f7f81da0fc72",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "niksingh710",
|
||||||
|
"repo": "minimal-tmux-status",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"neovim-nightly-overlay": {
|
"neovim-nightly-overlay": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-compat": "flake-compat_2",
|
"flake-compat": "flake-compat_2",
|
||||||
|
@ -768,6 +788,7 @@
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager",
|
||||||
"hyprland": "hyprland",
|
"hyprland": "hyprland",
|
||||||
|
"minimal-tmux": "minimal-tmux",
|
||||||
"neovim-nightly-overlay": "neovim-nightly-overlay",
|
"neovim-nightly-overlay": "neovim-nightly-overlay",
|
||||||
"nixpkgs": "nixpkgs_3",
|
"nixpkgs": "nixpkgs_3",
|
||||||
"stylix": "stylix"
|
"stylix": "stylix"
|
||||||
|
|
|
@ -14,10 +14,15 @@
|
||||||
neovim-nightly-overlay.url = "github:nix-community/neovim-nightly-overlay";
|
neovim-nightly-overlay.url = "github:nix-community/neovim-nightly-overlay";
|
||||||
|
|
||||||
# Home manager
|
# Home manager
|
||||||
home-manager.url = "github:nix-community/home-manager";
|
home-manager.url = "github:nix-community/home-manager";
|
||||||
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
|
||||||
hyprland.url = "github:hyprwm/Hyprland";
|
hyprland.url = "github:hyprwm/Hyprland";
|
||||||
|
|
||||||
|
minimal-tmux = {
|
||||||
|
url = "github:niksingh710/minimal-tmux-status";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs =
|
outputs =
|
||||||
|
|
|
@ -42,6 +42,8 @@ in
|
||||||
lazygit.enable = false;
|
lazygit.enable = false;
|
||||||
fish.enable = false;
|
fish.enable = false;
|
||||||
kitty.enable = false;
|
kitty.enable = false;
|
||||||
|
waybar.enable = false;
|
||||||
|
tmux.enable = false;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
{
|
{
|
||||||
host,
|
host,
|
||||||
config,
|
config,
|
||||||
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
inputs,
|
inputs,
|
||||||
...
|
...
|
||||||
|
@ -18,12 +19,10 @@ in
|
||||||
hyprpolkitagent
|
hyprpolkitagent
|
||||||
hyprland-qtutils
|
hyprland-qtutils
|
||||||
waypipe
|
waypipe
|
||||||
wmenu
|
wmenu
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
gnome.gnome-keyring.enable = true;
|
|
||||||
greetd = {
|
greetd = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
|
@ -49,13 +48,146 @@ in
|
||||||
home-manager.users.fw =
|
home-manager.users.fw =
|
||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
imports = [
|
|
||||||
./waybar.nix
|
|
||||||
];
|
|
||||||
programs = {
|
programs = {
|
||||||
hyprlock = {
|
hyprlock = {
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
|
rofi = {
|
||||||
|
enable = true;
|
||||||
|
font = lib.mkForce "ComicShannsMono Nerd Font 18";
|
||||||
|
};
|
||||||
|
waybar = {
|
||||||
|
enable = true;
|
||||||
|
systemd = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
settings = {
|
||||||
|
mainBar = {
|
||||||
|
modules-left = [
|
||||||
|
"hyprland/workspaces"
|
||||||
|
];
|
||||||
|
modules-right = [
|
||||||
|
"tray"
|
||||||
|
"clock"
|
||||||
|
];
|
||||||
|
"custom/arrow1" = {
|
||||||
|
format = "";
|
||||||
|
|
||||||
|
};
|
||||||
|
tray = {
|
||||||
|
format = "<span>{icon}</span>";
|
||||||
|
"icon-size" = 14;
|
||||||
|
spacing = 5;
|
||||||
|
};
|
||||||
|
|
||||||
|
clock = {
|
||||||
|
format = "<span> </span><span>{:%c}</span>";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
style = ''
|
||||||
|
@define-color bg #eff1f5;
|
||||||
|
@define-color fg #4c4f69;
|
||||||
|
@define-color lbg #e6e9ef;
|
||||||
|
@define-color yellow #df8e1d;
|
||||||
|
@define-color lavender #7287fd;
|
||||||
|
@define-color peach #fe640b;
|
||||||
|
@define-color red #d20f39;
|
||||||
|
@define-color green #40a02b;
|
||||||
|
@define-color blue #1e66f5;
|
||||||
|
@define-color border #dce0e8;
|
||||||
|
|
||||||
|
* {
|
||||||
|
min-height: 0;
|
||||||
|
margin: 0px 0px 0px 0px;
|
||||||
|
padding: 0;
|
||||||
|
border-radius: 7px;
|
||||||
|
font-family: "ComicShannsMono Nerd Font";
|
||||||
|
font-size: 14pt;
|
||||||
|
font-weight: 700;
|
||||||
|
padding-bottom: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
tooltip {
|
||||||
|
background: @bg;
|
||||||
|
border-radius: 7px;
|
||||||
|
border: 2px solid @border;
|
||||||
|
}
|
||||||
|
|
||||||
|
#window {
|
||||||
|
margin: 0px 0px 0px 0px;
|
||||||
|
padding-left: 10px;
|
||||||
|
padding-right: 7px;
|
||||||
|
border-radius: 3px;
|
||||||
|
border-color: @lbg;
|
||||||
|
background-color: @yellow;
|
||||||
|
color: @bg;
|
||||||
|
}
|
||||||
|
|
||||||
|
window#waybar.empty #window {
|
||||||
|
background-color: @bg;
|
||||||
|
border-bottom: none;
|
||||||
|
border-right: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
window#waybar {
|
||||||
|
background-color: @bg;
|
||||||
|
color: @lavender;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Workspaces */
|
||||||
|
@keyframes button_activate {
|
||||||
|
from { opacity: .3 }
|
||||||
|
to { opacity: 1.; }
|
||||||
|
}
|
||||||
|
|
||||||
|
#workspaces {
|
||||||
|
margin: 0px 0px 0px 0px;
|
||||||
|
border-radius: 3px;
|
||||||
|
padding: 1px;
|
||||||
|
background-color: @bg;
|
||||||
|
color: @bg;
|
||||||
|
}
|
||||||
|
|
||||||
|
#workspaces button {
|
||||||
|
margin: 0px 0px 0px 0px;
|
||||||
|
border-radius: 3px;
|
||||||
|
padding-left: 3px;
|
||||||
|
padding-right: 9px;
|
||||||
|
background-color: @bg;
|
||||||
|
color: @fg;
|
||||||
|
}
|
||||||
|
|
||||||
|
#workspaces button.active {
|
||||||
|
background-color:@blue;
|
||||||
|
color: @bg;
|
||||||
|
}
|
||||||
|
|
||||||
|
#workspaces button.urgent {
|
||||||
|
color: #F38BA8;
|
||||||
|
}
|
||||||
|
|
||||||
|
#workspaces button:hover {
|
||||||
|
border: solid transparent;
|
||||||
|
}
|
||||||
|
#tray {
|
||||||
|
margin: 0px 0px 0px 0px;
|
||||||
|
border-radius: 3px;
|
||||||
|
padding-left: 10px;
|
||||||
|
padding-right: 10px;
|
||||||
|
background-color: @bg;
|
||||||
|
color: @fg;
|
||||||
|
}
|
||||||
|
#clock {
|
||||||
|
margin: 0px 0px 0px 0px;
|
||||||
|
padding-left: 10px;
|
||||||
|
padding-right: 10px;
|
||||||
|
border-radius: 3px;
|
||||||
|
color: @bg;
|
||||||
|
background-color: @green;
|
||||||
|
}
|
||||||
|
'';
|
||||||
|
};
|
||||||
};
|
};
|
||||||
services = {
|
services = {
|
||||||
cliphist = {
|
cliphist = {
|
||||||
|
@ -211,8 +343,8 @@ in
|
||||||
misc = {
|
misc = {
|
||||||
disable_hyprland_logo = true;
|
disable_hyprland_logo = true;
|
||||||
disable_splash_rendering = true;
|
disable_splash_rendering = true;
|
||||||
enable_swallow = true;
|
enable_swallow = true;
|
||||||
swallow_regex = "^(kitty)$";
|
swallow_regex = "^(kitty)$";
|
||||||
};
|
};
|
||||||
|
|
||||||
bind = [
|
bind = [
|
||||||
|
@ -267,7 +399,7 @@ in
|
||||||
|
|
||||||
# Applications
|
# Applications
|
||||||
"$mod, q, exec, ${pkgs.firefox}/bin/firefox"
|
"$mod, q, exec, ${pkgs.firefox}/bin/firefox"
|
||||||
"$mod, d, exec, ${pkgs.rofi}/bin/rofi -show run"
|
"$mod, d, exec, ${pkgs.rofi}/bin/rofi -show drun"
|
||||||
|
|
||||||
# Screencapture
|
# Screencapture
|
||||||
"$mod, S, exec, ${pkgs.grim}/bin/grim | wl-copy"
|
"$mod, S, exec, ${pkgs.grim}/bin/grim | wl-copy"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ pkgs, ... }:
|
{ pkgs, inputs, ... }:
|
||||||
{
|
{
|
||||||
programs.tmux = {
|
programs.tmux = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -12,13 +12,7 @@
|
||||||
tmuxPlugins.sensible
|
tmuxPlugins.sensible
|
||||||
tmuxPlugins.pain-control
|
tmuxPlugins.pain-control
|
||||||
tmuxPlugins.sessionist
|
tmuxPlugins.sessionist
|
||||||
# {
|
{ plugin = inputs.minimal-tmux.packages.${pkgs.system}.default; }
|
||||||
# plugin = fw-pkgs.tmuxPlugins.minimal;
|
|
||||||
# extraConfig = ''
|
|
||||||
# bind-key b set-option status
|
|
||||||
# '';
|
|
||||||
# }
|
|
||||||
|
|
||||||
];
|
];
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
set -g set-clipboard on
|
set -g set-clipboard on
|
||||||
|
|
|
@ -1,6 +0,0 @@
|
||||||
{...}: let
|
|
||||||
in {
|
|
||||||
programs.waybar = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
}
|
|
Loading…
Add table
Add a link
Reference in a new issue