so many new stuff (nix and hyprland)

This commit is contained in:
Cy Pokhrel 2024-11-22 00:58:04 -05:00
parent fc59006538
commit 2a4567daa3
No known key found for this signature in database
GPG key ID: 1200FBE36C2ADE2E
14 changed files with 816 additions and 130 deletions

View file

@ -1,55 +1,85 @@
{
"modules-left": ["sway/workspaces", "sway/window", "sway/mode"],
"modules-right": ["tray", "pulseaudio", "backlight", "network", "battery", "clock"],
"clock": {
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
"format": "{:%b %d(%H:%M) 󰃰}"
"layer": "top", // Waybar on highest layer so tooltips go over windows
"output": "eDP-1", // Set output to primary monitor
"height": 40, // Set height to avoid jumping due to active workspace indicator
"margin-left": 4,
"margin-right": 4,
"margin-top": 4,
"modules-left": ["hyprland/workspaces", "clock#time", "clock#date", "battery"], // Sets modules for the left of the bar
"modules-center": ["hyprland/window"], // Set modules for the center of the bar
"modules-right": ["tray", "temperature", "cpu", "memory", "wireplumber"], // Set modules for the right of the bar
"clock#time": {
"format": "<span color=\"#7aa2f7\"> </span>{:%H:%M:%S}",
"interval": 1,
},
"backlight": {
"format": "{percent}% {icon}",
"format-icons": ["", "", "", "", "", "", "", "", ""]
"clock#date": {
"format": "<span color=\"#7aa2f7\"> </span>{:%d/%m/%Y}",
"tooltip-format": "<tt>{calendar}</tt>",
"interval": 360,
"calendar": {
"mode": "month",
"mode-mon-col": 4,
"weeks-pos": "right",
"on-scroll": 1,
"on-click-right": "mode",
"format": {
"months": "<span color='#c0caf5'><b>{}</b></span>",
"days": "<span color='#c0caf5'><b>{}</b></span>",
"weeks": "<span color='#7dcfff'><b>W{}</b></span>",
"weekdays": "<span color='#ff9e64'><b>{}</b></span>",
"today": "<span color='#f7768e'><b><u>{}</u></b></span>",
},
},
},
"battery": {
"interval": 60,
"states": {
"warning": 30,
"critical": 15
"warning": 40,
"critical": 20,
},
"format": "{capacity}% {icon}",
"format-charging": "{capacity}% 󰢝",
"format-plugged": "{capacity}% ",
"format-alt": "{time} {icon}",
"format-icons": ["", "", "", "", ""]
"format": "{icon} {capacity}%",
"format-icons": [
"<span color=\"#f7768e\"> </span>",
"<span color=\"#f7768e\"> </span>",
"<span color=\"#7aa2f7\"> </span>",
"<span color=\"#7aa2f7\"> </span>",
"<span color=\"#7aa2f7\"> </span>",
],
"format-charging": "<span color=\"#e0af68\">󱐌</span> {capacity}%",
},
"pulseaudio": {
"format": "{volume}% {icon} {format_source}",
"format-bluetooth": "{volume}% {icon} {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": ["", "", ""]
},
"on-click": "pavucontrol"
"cpu": {
"format": "<span color=\"#7aa2f7\"> </span>{usage}%",
"interval": 4,
},
"network": {
"format": "{ifname}",
"format-wifi": "Connected ",
"format-ethernet": "{ipaddr}/{cidr} 󰈀",
"format-disconnected": "Disconnected 󱛅", //An empty format will hide the module.
"tooltip-format": "{ifname} via {gwaddr} 󰛳",
"tooltip-format-wifi": "{essid} ({signalStrength}%) ",
"tooltip-format-ethernet": "{ifname} ",
"tooltip-format-disconnected": "Disconnected",
"max-length": 50
"memory": {
"format": "<span color=\"#7aa2f7\"> </span>{used}GiB",
"interval": 4,
},
"temperature": {
"hwmon-path": "/sys/class/hwmon/hwmon6/temp1_input",
"critical-threshold": 80,
"format": "<span color=\"#7aa2f7\"> </span>{temperatureC}°C",
"format-critical": "<span color=\"#f7768e\"> </span>{temperatureC}°C",
"interval": 4,
},
"wireplumber": {
"scroll-step": 1, // %, can be a float
"format": "<span color=\"#7aa2f7\">{icon} </span>{volume}%",
"format-muted": "<span color=\"#f7768e\">󰝟 </span>Muted",
"format-icons": ["", "", ""],
"on-click": "pavucontrol",
"interval": 4,
},
"hyprland/window": {
"max-length": 64,
},
"tray": {
"spacing": 10
"icon-size": 22,
"spacing": 6,
},
"hyprland/workspaces": {
"disable-scroll": true,
"on-click": "activate",
}
}

View file

@ -1,102 +1,70 @@
* {
border: none;
border-radius: 0;
font-family: RobotoMono Nerd Font;
font-size: 14px;
font-weight: 500;
.module,
#clock.date,
#clock.time,
#workspaces button {
background: transparent;
padding: 0 10px;
font-family: SpaceMono Nerd Font;
font-weight: 900;
font-size: 13pt;
color: #c0caf5;
}
/* main waybar */
window#waybar {
background-color: #282828;
color: #ebdbb2;
transition-property: background-color;
transition-duration: 0.5s;
border-bottom: solid 0px #3c3836;
background: rgba(26, 27, 38, 0.75);
border: 2px solid #414868;
}
window#waybar.hidden {
opacity: 0.2;
/* when hovering over modules */
tooltip {
background: #1e1e2e;
border-radius: 0;
}
#workspaces {
padding-right: 0;
}
#workspaces button {
padding: 0 5px;
color: #ebdbb2;
border-radius: 5px;
padding: 2px;
}
#clock {
padding-right: 100px;
}
/* Sets active workspace to have a solid line on the bottom */
#workspaces button.active {
border-bottom: 2px solid #7aa2f7;
border-radius: 0;
margin-top: 2px;
transition: none;
}
/* More workspace stuff for highlighting on hover */
#workspaces button.focused {
background-color: #ebdbb2;
color: #282828;
border-bottom: none;
color: #a6adc8;
}
#workspaces button.urgent {
background-color: #cc241d;
color: #f7768e;
}
widget > * {
margin-top: 6px;
margin-bottom: 6px;
#workspaces button:hover {
background: #11111b;
color: #cdd6f4;
}
.modules-left > widget > * {
margin-left: 12px;
margin-right: 12px;
/* Hide window module when not focused on window or empty workspace */
window#waybar.empty #window {
padding: 0;
margin: 0;
opacity: 0;
}
.modules-left > widget:first-child > * {
margin-left: 6px;
}
.modules-left > widget:last-child > * {
margin-right: 18px;
}
.modules-right > widget > * {
padding: 0 12px;
margin-left: 0;
margin-right: 0;
color: #282828;
background-color: #ebdbb2;
}
.modules-right > widget:first-child > * {
border-radius: 5px 0 0 5px;
}
.modules-right > widget:last-child > * {
border-radius: 0 5px 5px 0;
margin-right: 6px;
}
#mode {
background: transparent;
color: #fb4934;
}
@keyframes blink {
to {
color: #ebdbb2;
}
}
#battery.critical:not(.charging) {
animation-name: blink;
animation-duration: 1s;
animation-timing-function: linear;
animation-iteration-count: infinite;
animation-direction: alternate;
}
label:focus {
background-color: #282828;
}
tooltip {
border-radius: 5px;
background: #504945;
}
tooltip label {
color: #ebdbb2;
/* Set up rounding to make these modules look like separate pills */
#tray {
margin-right: 4px;
}