aboutsummaryrefslogtreecommitdiff
path: root/share/home/waybar.nix
diff options
context:
space:
mode:
authorMiran Bastaja <miran.bastaja04@gmail.com>2024-03-15 07:52:32 +0100
committerMiran Bastaja <miran.bastaja04@gmail.com>2024-03-15 07:52:32 +0100
commit97555be8b119392bdb5bce0ee052ffc52b48db1c (patch)
treec7cc94a4b9642795d15ac28b924dbc46740556c6 /share/home/waybar.nix
parent65505d8fe23ad02b8da3e3c595247282cf389294 (diff)
WIP hyprdesktop module, waybar
Diffstat (limited to 'share/home/waybar.nix')
-rw-r--r--share/home/waybar.nix48
1 files changed, 48 insertions, 0 deletions
diff --git a/share/home/waybar.nix b/share/home/waybar.nix
new file mode 100644
index 0000000..6f85d96
--- /dev/null
+++ b/share/home/waybar.nix
@@ -0,0 +1,48 @@
+{ lib, ... }: {
+ programs.waybar = {
+ enable = true;
+ systemd = {
+ enable = true;
+ target = "hyprland-session.target";
+ };
+ settings.mainBar = {
+ layer = "top";
+ position = "right";
+ width = 15;
+ reload_style_on_change = true;
+
+ modules-left = [ "hyprland/workspaces" ];
+ modules-right = [
+ "battery"
+ "network"
+ "cpu"
+ "memory"
+ "temperature"
+ "backlight"
+ "keyboard-state"
+ "clock"
+ "tray"
+ ];
+
+ battery = {
+ format = lib.concatStringsSep "\n" [
+ "{icon} {capacity}%"
+ "󱐋 {power:4.1f} W"
+ ];
+ interval = 2;
+ format-icons = [ "󰁺" "󰁻" "󰁼" "󰁽" "󰁾" "󰁿" "󰂀" "󰂁" "󰂂" "󰁹" ];
+ };
+
+ keyboard-state = {
+ numlock = true;
+ capslock = true;
+ format = "{name} {icon}";
+ format-icons = {
+ locked = "";
+ unlocked = "";
+ };
+ };
+ }; # end of settings.mainBar
+ style = builtins.readFile ./waybar.css;
+ };
+}