mirror of
https://github.com/Andrey0189/nixos-config-reborn.git
synced 2025-09-15 10:06:00 +03:00
add waybar configuration
This commit is contained in:
@@ -5,5 +5,6 @@
|
|||||||
./hyprland
|
./hyprland
|
||||||
./zsh.nix
|
./zsh.nix
|
||||||
./tmux.nix
|
./tmux.nix
|
||||||
|
./waybar
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
@@ -11,7 +11,7 @@
|
|||||||
exec-once = [
|
exec-once = [
|
||||||
"swww-daemon"
|
"swww-daemon"
|
||||||
"swww img ~/Downloads/wp.png"
|
"swww img ~/Downloads/wp.png"
|
||||||
"sleep 5 && waybar -c ~/.config/waybar/config.json"
|
"sleep 5 && waybar"
|
||||||
"wl-paste --type text --watch cliphist store"
|
"wl-paste --type text --watch cliphist store"
|
||||||
"wl-paste --type image --watch cliphist store"
|
"wl-paste --type image --watch cliphist store"
|
||||||
];
|
];
|
||||||
|
6
home-manager/modules/waybar/default.nix
Normal file
6
home-manager/modules/waybar/default.nix
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./main.nix
|
||||||
|
# ./styles.nix
|
||||||
|
];
|
||||||
|
}
|
87
home-manager/modules/waybar/main.nix
Normal file
87
home-manager/modules/waybar/main.nix
Normal file
@@ -0,0 +1,87 @@
|
|||||||
|
{
|
||||||
|
programs.waybar = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
mainBar = {
|
||||||
|
layer = "top";
|
||||||
|
position = "top";
|
||||||
|
height = 30;
|
||||||
|
modules-left = ["hyprland/workspaces"];
|
||||||
|
modules-center = ["hyprland/window"];
|
||||||
|
modules-right = ["hyprland/language" "custom/weather" "pulseaudio" "battery" "clock" "tray"];
|
||||||
|
"hyprland/workspaces" = {
|
||||||
|
disable-scroll = true;
|
||||||
|
all-outputs = false;
|
||||||
|
format = "{icon}";
|
||||||
|
format-icons = {
|
||||||
|
"1" = "";
|
||||||
|
"2" = "";
|
||||||
|
"3" = "";
|
||||||
|
"4" = "";
|
||||||
|
"5" = "";
|
||||||
|
"6" = "";
|
||||||
|
"7" = "";
|
||||||
|
"8" = "";
|
||||||
|
"9" = "";
|
||||||
|
};
|
||||||
|
|
||||||
|
persistent-workspaces = {
|
||||||
|
"*" = 9;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
"hyprland/language" = {
|
||||||
|
format-en = "🇺🇸";
|
||||||
|
format-ru = "🇷🇺";
|
||||||
|
min-length = 5;
|
||||||
|
tooltip = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
"custom/weather" = {
|
||||||
|
format = " {} ";
|
||||||
|
exec = "curl -s 'wttr.in/Tashkent?format=%c%t'";
|
||||||
|
interval = 300;
|
||||||
|
class = "weather";
|
||||||
|
};
|
||||||
|
|
||||||
|
"battery" = {
|
||||||
|
states = {
|
||||||
|
warning = 30;
|
||||||
|
critical = 1;
|
||||||
|
};
|
||||||
|
format = "{icon} {capacity}%";
|
||||||
|
format-charging = " {capacity}%";
|
||||||
|
format-alt = "{time} {icon}";
|
||||||
|
format-icons = ["" "" "" "" ""];
|
||||||
|
};
|
||||||
|
|
||||||
|
"tray" = {
|
||||||
|
icon-size = 14;
|
||||||
|
spacing = 1;
|
||||||
|
};
|
||||||
|
|
||||||
|
"clock" = {
|
||||||
|
format = "{:%d.%m.%Y - %H:%M}";
|
||||||
|
format-alt = "{:%A, %B %d at %R}";
|
||||||
|
};
|
||||||
|
|
||||||
|
"pulseaudio" = {
|
||||||
|
format = "{icon} {volume}%";
|
||||||
|
format-bluetooth = "{icon} {volume}% ";
|
||||||
|
format-muted = "";
|
||||||
|
format-icons = {
|
||||||
|
"headphones" = "";
|
||||||
|
"handsfree" = "";
|
||||||
|
"headset" = "";
|
||||||
|
"phone" = "";
|
||||||
|
"portable" = "";
|
||||||
|
"car" = "";
|
||||||
|
"default" = ["" ""];
|
||||||
|
};
|
||||||
|
on-click = "pavucontrol";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Reference in New Issue
Block a user