aboutsummaryrefslogtreecommitdiff
path: root/homes/floppydisk/waybar.nix
diff options
context:
space:
mode:
authorFrankie B <git@diskfloppy.me>2023-09-02 19:41:13 +0100
committerFrankie B <git@diskfloppy.me>2023-09-02 19:42:35 +0100
commit2836fa9c1e6ce925149527ab6b039805220da0d1 (patch)
tree7fa221d0eb4609ed23057661cb182d8e28bbd8fc /homes/floppydisk/waybar.nix
parentf0607557a04e1009b3f9d2e2024cc01c99e44e6f (diff)
Clean up home config, add waybar
Diffstat (limited to 'homes/floppydisk/waybar.nix')
-rw-r--r--homes/floppydisk/waybar.nix198
1 files changed, 198 insertions, 0 deletions
diff --git a/homes/floppydisk/waybar.nix b/homes/floppydisk/waybar.nix
new file mode 100644
index 0000000..652a1b0
--- /dev/null
+++ b/homes/floppydisk/waybar.nix
@@ -0,0 +1,198 @@
+{
+ mainBar = {
+ layer = "top";
+ position = "top";
+ height = 27;
+ margin = "7";
+ fixed-center = true;
+ modules-left = [
+ "wlr/workspaces"
+ "custom/sep"
+ "tray"
+ "custom/updates"
+ ];
+ modules-center = [
+ "clock"
+ "sep"
+ "custom/notification"
+ ];
+ modules-right = [
+ "battery"
+ "custom/sep_r"
+ "cpu"
+ "custom/sep_r"
+ "disk"
+ "custom/sep_r"
+ "memory"
+ "custom/sep_r"
+ "pulseaudio"
+ "custom/sep_r"
+ "network"
+ "custom/sep_r"
+ "custom/launcher"
+ ];
+
+ "custon/sep_r" = {
+ format = " ";
+ };
+
+ "custom/sep" = {
+ format = " ";
+ };
+
+ "custom/sep_l" = {
+ format = " ";
+ };
+
+ "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;
+ };
+
+ "wlr/workspaces" = {
+ disable-scroll = false;
+ all-outputs = true;
+ format = "{icon}";
+ 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";
+ };
+
+ "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 = "Europe/London";
+ 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-icoms = [" " " " " " " " " "];
+ };
+
+ "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_source}";
+ format-bluetooth = "{icon}{volume}% {format_source}";
+ format-bluetooth-muted = "{icon} {format_source}";
+ format-muted = " {format_source}";
+ format-source = " {volume}%";
+ format-source-muted = " ";
+ format-icons = {
+ "headphone" = "";
+ "hands-free" = "";
+ "headset" = "";
+ "phone" = "";
+ "portable" = "";
+ "car" = "";
+ "default" = [" " " " " "];
+ };
+ };
+
+ "disk" = {
+ interval = 90;
+ format = " {free} (/)";
+ tooltip-format = "{used} / {total} ({percentage_used}%)";
+ path = "/";
+ };
+
+ "custom/power" = {
+ format = " ";
+ on-click = "wlogout";
+ };
+ };
+} \ No newline at end of file