aboutsummaryrefslogtreecommitdiff
path: root/common/waybarAU.nix
diff options
context:
space:
mode:
authorrubiigen <alyxwren@proton.me>2024-02-02 18:29:45 +0000
committerFrankie B <frankieraybrown@gmail.com>2024-02-02 18:39:57 +0000
commitd666f30475528ce7f50cc3dd92a1693241083fe8 (patch)
tree5b443f79a7100f2db735853335df81d9a7b95cc3 /common/waybarAU.nix
parentea3485f5c5dac7f89562db741bf981b2b743d01c (diff)
major refactor (treewide amongst general cleaning based on my modified dots (with help from notashelf) - perks 1: it works
Diffstat (limited to 'common/waybarAU.nix')
-rw-r--r--common/waybarAU.nix230
1 files changed, 230 insertions, 0 deletions
diff --git a/common/waybarAU.nix b/common/waybarAU.nix
new file mode 100644
index 0000000..a59842c
--- /dev/null
+++ b/common/waybarAU.nix
@@ -0,0 +1,230 @@
+{
+ mainBar = {
+ margin-top = 7;
+ margin-left = 7;
+ margin-right = 7;
+ layer = "top";
+ position = "top";
+ fixed-center = true;
+
+ modules-left = [
+ "custom/wvkbd"
+ "custom/nwggrid"
+ "hyprland/workspaces"
+ "tray"
+ "custom/power"
+ ];
+
+ modules-center = [
+ "clock"
+ "sep"
+ "custom/notification"
+ ];
+
+ modules-right = [
+ "battery"
+ "battery#bat2"
+ "cpu"
+ "temperature"
+ "backlight"
+ "disk"
+ "memory"
+ "pulseaudio"
+ "network"
+ ];
+
+ "custom/sep_r" = {
+ format = " ";
+ };
+
+ "custom/sep" = {
+ format = " ";
+ };
+
+ "custom/sep_l" = {
+ format = " ";
+ };
+
+ "custom/wvkbd" = {
+ format = " 󰌌 ";
+ on-click = "~/.config/nixos/homes/common/toggle-keyboard.sh";
+ };
+
+ "custom/nwggrid" = {
+ format = " 󰕰 ";
+ on-click = "nwggrid";
+ };
+
+ "backlight" = {
+ device = "acpi_video1";
+ format = "{icon}{percent}%";
+ format-icons = [" " " " " " " " " " " " " " " " " "];
+ };
+
+ "custom/notification" = {
+ tooltip = true;
+ format = "{icon}";
+ format-icons = {
+ "notification" = "  <span foreground='white'><sup> </sup></span>";
+ "none" = "  ";
+ "dnd-notification" = "  <span foreground='white'><sup> </sup></span>";
+ "dnd-none" = "  ";
+ };
+ return-type = "json";
+ exec-if = "which swaync-client";
+ exec = "swaync-client -swb";
+ on-click = "swaync-client -t -sw";
+ on-click-middle = "swaync-client -d -sw";
+ on-click-right = "swaync-client -C";
+ escape = true;
+ };
+
+ "hyprland/workspaces" = {
+ disable-scroll = false;
+ all-outputs = true;
+ format = "{icon}";
+ "on-scroll-up" = "hyprctl dispatch workspace e+1";
+ "on-scroll-down" = "hyprctl dispatch workspace e-1";
+ "on-click" = "activate";
+ active-only = true;
+ format-icons = {
+ "1" = "I";
+ "2" = "II";
+ "3" = "III";
+ "4" = "IV";
+ "5" = "V";
+ "6" = "VI";
+ "7" = "VII";
+ "8" = "VIII";
+ "9" = "IX";
+ "10" = "X";
+ "11" = "XI";
+ "12" = "XII";
+ };
+ };
+
+ "hyprland/language" = {
+ format = "{}";
+ format-tr = "TR";
+ };
+
+ "temperature" = {
+ critical-threshold = 85;
+ format-critical = "{temperatureC}°C {icon}";
+ format = "{icon} {temperatureC}°C";
+ format-icons = [" " "" " "];
+ };
+
+ "hyprland/window" = {
+ format = "{}";
+ seperate-outputs = true;
+ };
+
+ "keyboard-state" = {
+ interval = 1;
+ numlock = false;
+ capslock = false;
+ format = "{icon}";
+ format-icons = {
+ "locked" = " ";
+ "unlocked" = "";
+ };
+ };
+
+ "idle_inhibitor" = {
+ format = "{icon}";
+ format-icons = {
+ "activated" = "";
+ "deactivated" = "";
+ };
+ };
+
+ "tray" = {
+ icon-size = 16;
+ spacing = 6;
+ };
+
+ "clock" = {
+ timezone = "Australia/Perth";
+ format = "{: %H:%M}";
+ format-alt = "{: %H:%M  %d/%m/%Y}";
+ tooltip-format = "{: %H:%M  %d/%m/%Y}";
+ today-format = "<span color='#aaaaaa'><b><u>{}</u></b></span>";
+ calendar-weeks-pos = "right";
+ format-calendar = "<span color='#aaaaaa'><b><u>{}</u></b></span>";
+ format-calendar-weeks = "<span color='#aaaaaa'><b><u>{}</u></b></span>";
+ format-calendar-weekdays = "<span color='#ffffff'><b>{}</b></span>";
+ interval = 10;
+ on-click-middle = "kalendar";
+ };
+
+ "cpu" = {
+ format = " {usage}%";
+ tooltip = false;
+ };
+
+ "memory" = {
+ format = " {}%";
+ };
+
+ "battery" = {
+ states = {
+ "good" = 80;
+ "warning" = 30;
+ "critical" = 5;
+ };
+ format = "{icon}{capacity}% ";
+ format-charging = " {capacity}% ";
+ format-plugged = " {capacity}% ";
+ format-alt = "{icon}{time}";
+ format-icons = [" " " " " " " " " "];
+ interval = 3;
+ };
+
+ "battery#bat2" = {
+ states = {
+ "good" = 80;
+ "warning" = 30;
+ "critical" = 5;
+ };
+ format = "{icon}{capacity}% ";
+ format-charging = " {capacity}% ";
+ format-plugged = " {capacity}% ";
+ format-alt = "{icon}{time}";
+ format-icons = [" " " " " " " " " "];
+ interval = 3;
+ bat = "BAT2";
+ };
+
+ "network" = {
+ format-wifi = " Connected";
+ format-ethernet = " Connected";
+ format-disconnected = " Disconnected";
+ tooltip-format-wifi = "{essid} | Signal Strenght: {signalStrength}% | Down Speed: {bandwidthDownBits}, Up Speed: {bandwidthUpBits}";
+ tooltip-format = "{ifname} via {gwaddr} ";
+ tooltip-format-ethernet = "{ipaddr} ";
+ format-linked = "{ifname} (No IP) ";
+ format-alt = "{ifname}: {ipaddr}/{cidr}";
+ };
+
+ "pulseaudio" = {
+ on-click = "pavucontrol";
+ format = "{icon}{volume}%";
+ format-icons = {
+ "default" = [" " " " " "];
+ };
+ };
+
+ "disk" = {
+ interval = 90;
+ format = " {free} (/)";
+ tooltip-format = "{used} / {total} ({percentage_used}%)";
+ path = "/";
+ };
+
+ "custom/power" = {
+ format = " ";
+ on-click = "hyprctl dispatch exit";
+ };
+ };
+}