Advertisement
PROPESSOR

Waybar Settings In Home.Nix

Jun 10th, 2025
1,037
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 5.66 KB | None | 0 0
  1. # Waybar Nick's modules/home/gui/desktop/wayland/waybar/config
  2.   programs.waybar = {
  3.   enable = true;
  4.   settings = [
  5.     {
  6.       layer = "top";
  7.       position = "bottom";
  8.       height = 50;
  9.       spacing = 10;
  10.       margin-top = 0;
  11.       margin-bottom = 5;
  12.       margin-left = 10;
  13.       margin-right = 10;
  14.       modules-left = [
  15.        "custom/launcher"
  16.        "tray"
  17.        "custom/exit"
  18.       ];
  19.       modules-center = [ "hyprland/workspaces" ];
  20.       modules-right = [
  21.        "bluetooth"
  22.        "privacy"
  23.        "pulseaudio"
  24.        "battery"
  25.        "network"
  26.        "clock"
  27.        ];
  28.      
  29.       "custom/launcher" = {
  30.          format = "";
  31.          on-click = "rofi -show drun";
  32.          tooltip = false;
  33.       };
  34.  
  35.       "custom/exit" = {
  36.         format = " ";
  37.         on-click = "wlogout";
  38.         tooltip-format = "Power Menu";
  39.        };
  40.  
  41.       "hyprland/workspaces" = {
  42.         active-only = false;
  43.         disable-scroll = true;
  44.         format = "{icon}";
  45.         on-click = "activate";
  46.         format-icons = {
  47.          "1" = "◉";
  48.          "2" = "◉";
  49.          "3" = "◉";
  50.          "4" = "◉";
  51.          "5" = "◉";
  52.         urgent = "";
  53.         default = "◉";
  54.         sort-by-number = true;
  55.         };
  56.         persistent-workspaces = {
  57.          "1" = [ ];
  58.          "2" = [ ];
  59.          "3" = [ ];
  60.          "4" = [ ];
  61.          "5" = [ ];
  62.         };
  63.        };
  64.  
  65.       "bluetooth" = {
  66.          format = " {status}";
  67.          format-disabled = "";
  68.          format-off = "";
  69.          interval = 30;
  70.          on-click = "blueberry";
  71.          format-no-controller = "";
  72.        };
  73.        
  74.       "tray" = {
  75.         icon-size = 20;
  76.         spacing = 10;
  77.        };
  78.        
  79.       "privacy" = {
  80.          icon-spacing = 8;
  81.          icon-size = 12;
  82.          transition-duration = 250;
  83.          modules = {
  84.           screenshare = {
  85.           type = "screenshare";
  86.           tooltip = true;
  87.           tooltip-icon-size = 12;
  88.          };
  89.          audio-out = {
  90.           type = "audio-out";
  91.           tooltip = true;
  92.           tooltip-icon-size = 12;
  93.          };
  94.          audio-in = {
  95.           type = "audio-in";
  96.           tooltip = true;
  97.           tooltip-icon-size = 12;
  98.          };
  99.         };
  100.        };
  101.  
  102.        "pulseaudio" = {
  103.          format = "{icon} {volume}%";
  104.          tooltip = false;
  105.          format-muted = " Muted";
  106.          on-click = "pavucontrol";
  107.          on-scroll-up = "pactl set-sink-volume @DEFAULT_SINK@ +5%";
  108.          on-scroll-down = "pactl set-sink-volume @DEFAULT_SINK@ -5%";
  109.          scroll-step = 5;
  110.          format-icons = {
  111.          headphone = "";
  112.          hands-free = "";
  113.          headset = "";
  114.          phone = "";
  115.          portable = "";
  116.          car = "";
  117.          default = [
  118.           ""
  119.           ""
  120.           " "
  121.           ];
  122.          };
  123.         };
  124.  
  125.       "battery" = {
  126.         format = "{icon}{capacity}%";
  127.         format-alt = "{icon} {time}";
  128.         format-charging = "{capacity}%";
  129.         format-icons = [
  130.          " "
  131.          " "
  132.          " "
  133.          " "
  134.          " "
  135.         ];
  136.         format-plugged = "{capacity}%";
  137.         states = {
  138.          critical = 15;
  139.          warning = 30;
  140.         };
  141.        };
  142.      
  143.       "network" = {
  144.         format-wifi = " {signalStrength}%";
  145.         format-ethernet = "󰀂";
  146.         tooltip-format = "Connected to {essid} {ifname} via {gwaddr}";
  147.         format-linked = "{ifname} (No IP)";
  148.         format-disconnected = "󰖪 ";
  149.        };
  150.  
  151.        "clock" = {
  152.         calendar = {
  153.          format = {
  154.           today = "<span color='#ff6699'><b><u>{}</u></b></span>";
  155.          };
  156.         };
  157.         format = "{:%I:%M%p}";
  158.         tooltip = true;
  159.         tooltip-format = "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>";
  160.         format-alt = "{:%d/%m}";
  161.         on-click = "gnome-calendar";
  162.        };
  163.     }
  164.   ];    
  165.    
  166.   style = ''
  167.     * {
  168.        min-height: 34px;
  169.        border-radius:0;
  170.        font-family: "MonaspiceNe Nerd Font";
  171.        font-weight: bold;
  172.       }
  173.      
  174.       window#waybar {
  175.        background: #262626;  
  176.        color: #d197d9;
  177.        border: 2px solid;
  178.        border-radius: 30px;
  179.        border-color: #ce38fd;
  180.        opacity: 0.8;
  181.       }
  182.      
  183.      #workspaces {
  184.       font-size: 50px;
  185.       padding-left: 5px;
  186.       margin-bottom: 5px;
  187.      }
  188.      
  189.      #workspaces button {
  190.       color: #ce38fd;
  191.       padding: 0px 5px 0px 5px;
  192.       opacity: 1;
  193.      }
  194.    
  195.      #workspaces button.active {
  196.       color: #eecef4;
  197.      }
  198.      
  199.      #privacy {
  200.        font-size: 20px;
  201.        color: #ce38fd;
  202.        padding-right: 20px;
  203.       }
  204.  
  205.      #tray {
  206.        font-size: 20px;
  207.        color: #ce38fd;
  208.        padding-right: 5px;
  209.        padding-left: 5px;
  210.       }
  211.      
  212.      #pulseaudio {
  213.        font-size: 20px;
  214.        color: #ce38fd;
  215.        padding-right: 10px;
  216.       }
  217.  
  218.      #clock {
  219.        font-size: 50px;
  220.        color: #ce38fd;
  221.        padding-right: 10px;
  222.       }
  223.      
  224.      #network {
  225.        font-size: 20px;
  226.        color: #ce38fd;
  227.        padding-right: 10px;
  228.       }
  229.  
  230.      #bluetooth {
  231.        font-size: 20px;
  232.        color: #ce38fd;
  233.        padding-right: 10px;
  234.       }
  235.      
  236.      #battery {
  237.       font-size: 20px;
  238.       color: #ce38fd;
  239.       padding-right: 10px;
  240.      }
  241.  
  242.      #custom-launcher {
  243.        font-size: 50px;
  244.        color: #ce38fd;
  245.        font-weight: bold;
  246.        padding-left: 10px;
  247.        padding-right: 10px;
  248.       }  
  249.  
  250.      #custom-exit {
  251.       color: #ce38fd;
  252.       font-size: 50px;
  253.       font-weight: bold;
  254.       }
  255.    '';
  256.  };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement