Home Gen231 @ 2024-05-07-17:59

This commit is contained in:
Jonas Röger 2024-05-07 17:59:48 +02:00
parent 8bf2fc6ed2
commit dc6aee4481

View File

@ -17,116 +17,212 @@ in {
}; };
}; };
programs.waybar.settings.mainBar = lib.mkIf for_hyprland { programs.waybar = lib.mkIf for_hyprland {
position = "top"; settings.mainBar = {
layer = "top"; position = "top";
height = 5; layer = "top";
margin-top = 0; height = 5;
margin-bottom = 0; margin-top = 0;
margin-left = 0; margin-bottom = 0;
margin-right = 0; margin-left = 0;
modules-left = [ margin-right = 0;
"custom/launcher" modules-left = [
"hyprland/workspaces" "custom/launcher"
]; "hyprland/workspaces"
modules-center = [ ];
"hyprland/window" modules-center = [
]; "hyprland/window"
modules-right = [ ];
"clock" modules-right = [
"cpu" "clock"
"memory" "cpu"
"disk" "memory"
"battery" "disk"
"network" "battery"
"tray" "network"
]; "tray"
clock = { ];
calendar = { clock = {
format = {today = "<span color='#b4befe'><b>{}</b></span>";}; calendar = {
format = {today = "<span color='#b4befe'><b>{}</b></span>";};
};
format = " {:%H:%M}";
tooltip = "true";
tooltip-format = "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>";
format-alt = " {:%d/%m}";
}; };
format = " {:%H:%M}"; "hyprland/workspaces" = {
tooltip = "true"; active-only = false;
tooltip-format = "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>"; disable-scroll = true;
format-alt = " {:%d/%m}"; format = "{icon}";
}; on-click = "activate";
"hyprland/workspaces" = { format-icons = {
active-only = false; "1" = "󰈹";
disable-scroll = true; "2" = "";
format = "{icon}"; "3" = "󰘙";
on-click = "activate"; "4" = "󰙯";
format-icons = { "5" = "";
"1" = "󰈹"; "6" = "";
"2" = ""; urgent = "";
"3" = "󰘙"; default = "";
"4" = "󰙯"; sort-by-number = true;
"5" = ""; };
"6" = ""; persistent-workspaces = {
urgent = ""; "1" = [];
default = ""; "2" = [];
sort-by-number = true; "3" = [];
"4" = [];
"5" = [];
};
}; };
persistent-workspaces = { memory = {
"1" = []; format = "󰟜 {}%";
"2" = []; format-alt = "󰟜 {used} GiB"; # 
"3" = []; interval = 2;
"4" = []; };
"5" = []; cpu = {
format = " {usage}%";
format-alt = " {avg_frequency} GHz";
interval = 2;
};
disk = {
# path = "/";
format = "󰋊 {percentage_used}%";
interval = 60;
};
network = {
format-wifi = " {signalStrength}%";
format-ethernet = "󰀂 ";
tooltip-format = "Connected to {essid} {ifname} via {gwaddr}";
format-linked = "{ifname} (No IP)";
format-disconnected = "󰖪 ";
};
tray = {
icon-size = 20;
spacing = 8;
};
pulseaudio = {
format = "{icon} {volume}%";
format-muted = "󰖁 {volume}%";
format-icons = {
default = [" "];
};
scroll-step = 5;
on-click = "pamixer -t";
};
battery = {
format = "{icon} {capacity}%";
format-icons = [" " " " " " " " " "];
format-charging = " {capacity}%";
format-full = " {capacity}%";
format-warning = " {capacity}%";
interval = 5;
states = {
warning = 20;
};
format-time = "{H}h{M}m";
tooltip = true;
tooltip-format = "{time}";
};
"custom/launcher" = {
format = "";
on-click = "${pkgs.wofi}/bin/wofi --show drun";
tooltip = "false";
}; };
}; };
memory = { style = ''
format = "󰟜 {}%"; * {
format-alt = "󰟜 {used} GiB"; #  border: none;
interval = 2; font-family: Font Awesome, Roboto, Arial, sans-serif;
}; font-size: 13px;
cpu = { color: #ffffff;
format = " {usage}%"; border-radius: 20px;
format-alt = " {avg_frequency} GHz"; }
interval = 2;
}; window {
disk = { /*font-weight: bold;*/
# path = "/"; }
format = "󰋊 {percentage_used}%"; window#waybar {
interval = 60; background: rgba(0, 0, 0, 0);
}; }
network = { /*-----module groups----*/
format-wifi = " {signalStrength}%"; .modules-right {
format-ethernet = "󰀂 "; background-color: rgba(0,43,51,0.85);
tooltip-format = "Connected to {essid} {ifname} via {gwaddr}"; margin: 2px 10px 0 0;
format-linked = "{ifname} (No IP)"; }
format-disconnected = "󰖪 "; .modules-center {
}; background-color: rgba(0,43,51,0.85);
tray = { margin: 2px 0 0 0;
icon-size = 20; }
spacing = 8; .modules-left {
}; margin: 2px 0 0 5px;
pulseaudio = { background-color: rgba(0,119,179,0.6);
format = "{icon} {volume}%"; }
format-muted = "󰖁 {volume}%"; /*-----modules indv----*/
format-icons = { #workspaces button {
default = [" "]; padding: 1px 5px;
}; background-color: transparent;
scroll-step = 5; }
on-click = "pamixer -t"; #workspaces button:hover {
}; box-shadow: inherit;
battery = { background-color: rgba(0,153,153,1);
format = "{icon} {capacity}%"; }
format-icons = [" " " " " " " " " "];
format-charging = " {capacity}%"; #workspaces button.focused {
format-full = " {capacity}%"; background-color: rgba(0,43,51,0.85);
format-warning = " {capacity}%"; }
interval = 5;
states = { #clock,
warning = 20; #battery,
}; #cpu,
format-time = "{H}h{M}m"; #memory,
tooltip = true; #temperature,
tooltip-format = "{time}"; #network,
}; #pulseaudio,
"custom/launcher" = { #custom-media,
format = ""; #tray,
on-click = "${pkgs.rofi}/bin/rofi -show drun"; #mode,
tooltip = "false"; #custom-power,
}; #custom-menu,
#idle_inhibitor {
padding: 0 10px;
}
#mode {
color: #cc3436;
font-weight: bold;
}
#custom-power {
background-color: rgba(0,119,179,0.6);
border-radius: 100px;
margin: 5px 5px;
padding: 1px 1px 1px 6px;
}
/*-----Indicators----*/
#idle_inhibitor.activated {
color: #2dcc36;
}
#pulseaudio.muted {
color: #cc3436;
}
#battery.charging {
color: #2dcc36;
}
#battery.warning:not(.charging) {
color: #e6e600;
}
#battery.critical:not(.charging) {
color: #cc3436;
}
#temperature.critical {
color: #cc3436;
}
/*-----Colors----*/
/*
*rgba(0,85,102,1),#005566 --> Indigo(dye)
*rgba(0,43,51,1),#002B33 --> Dark Green
*RGBA(0,153,153,1),#009999 --> PERSIAN GREEN
*
*/
'';
}; };
} }