feat: waybar gandalf theme

This commit is contained in:
hesam-init 2024-02-26 19:43:19 +03:30
parent d22cb14f2d
commit b34148ab46
2 changed files with 393 additions and 0 deletions

View file

@ -0,0 +1,228 @@
{
"layer": "top",
"position": "top",
"spacing": 5,
"height": 36,
"modules-center": [
"clock",
"hyprland/language",
"cpu",
"custom/gpu-usage",
"pulseaudio#input",
"pulseaudio#output"
],
"modules-left": [
"hyprland/workspaces",
"tray"
],
"modules-right": [
// "custom/launcher",
"battery",
"network",
"network#network-2"
],
"wireplumber": {
"scroll-step": 5,
"format": "{volume}% {icon}",
"format-bluetooth": "{volume}% {icon}",
"format-bluetooth-muted": "{icon} {format_source}",
"format-muted": "",
"format-source": "",
"format-source-muted": "",
"format-icons": {
"default": [
"",
"",
""
]
},
"on-click": "helvum",
"max-volume": 150,
"tooltip": false
},
"pulseaudio#output": {
"format": "{icon} {volume}%",
"format-muted": " 0%",
"format-source": "",
"format-icons": {
"default": [
"",
"",
""
]
},
"max-volume": 150,
"scroll-step": 5,
"on-click": "pavucontrol"
},
"pulseaudio#input": {
"format-source": " {volume}%",
"format-source-muted": " 0%",
"format": "{format_source}",
"on-click": "pactl set-source-mute @DEFAULT_SOURCE@ toggle",
"on-scroll-up": "pactl set-source-volume @DEFAULT_SOURCE@ +5%",
"on-scroll-down": "pactl set-source-volume @DEFAULT_SOURCE@ -5%"
},
"hyprland/language": {
"format": "{}",
"format-en": "English"
},
"wlr/taskbar": {
"all-outputs": false,
"active-first": false,
"format": "{icon}",
"icon-size": 20,
"spacing": 1,
"on-click": "activate",
"on-click-middle": "close",
"tooltip": false
},
"clock": {
"interval": 1,
"format": "{:%H:%M} ",
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
},
"pulseaudio": {
"scroll-step": 5,
"format": "{volume}% {icon}",
"format-bluetooth": "{volume}% {icon}",
"format-bluetooth-muted": "{icon} {format_source}",
"format-muted": "{format_source}",
"format-source": "",
"format-source-muted": "",
"format-icons": {
"headphone": "",
"hands-free": "",
"headset": "",
"phone": "",
"portable": "",
"car": "",
"default": [
"",
"",
""
]
},
"on-click": "pavucontrol"
},
"pulseaudio/slider": {
"min": 0,
"max": 100,
"orientation": "horizontal"
},
"tray": {
"icon-size": 14,
"spacing": 8
},
"hyprland/workspaces": {
"disable-scroll": true,
"all-outputs": true,
"on-click": "activate",
"format": "{icon}",
"format-icons": {
// dot style :
// "active": "",
// "default": ""
// symbolic style :
"1": "",
"2": "",
"3": "",
"4": "",
"5": "",
"6": "",
"7": "",
"8": "",
"9": ""
},
"persistent-workspaces": {
"*": 7
}
},
"keyboard-state": {
"numlock": true,
"capslock": true,
"format": " {name} {icon}",
"format-icons": {
"locked": "",
"unlocked": ""
}
},
"idle_inhibitor": {
"format": "{icon}",
"format-icons": {
"activated": "",
"deactivated": ""
}
},
"cpu": {
"interval": 1,
"format": "{usage}% "
},
"custom/gpu-usage": {
"exec": "~/.config/waybar/scripts/gpu-usage.sh",
"format": "{}% ",
"tooltip": false,
"interval": 1
},
"memory": {
"format": "{used:0.1f} / {total:0.1f} ",
"interval": 5
},
"backlight": {
// "device": "acpi_video1",
"format": "{percent}% {icon}",
"format-icons": [
"",
""
]
},
"battery": {
"states": {
"good": 95,
"warning": 30,
"critical": 15
},
"format": "{capacity}% {icon}",
"format-charging": "{capacity}% ",
"format-plugged": "{capacity}% ",
"format-alt": "{time} {icon}",
// "format-good": "",
// "format-full": "",
"format-icons": [
"",
"",
"",
"",
""
]
},
"network": {
"format-wifi": " : {ipaddr}/{cidr}",
"format-ethernet": " : {ipaddr}/{cidr}",
"tooltip-format": "{ifname} via {gwaddr} ",
"format-alt": "network : {ifname}",
"format-linked": "{ifname} (No IP) ",
"format-disconnected": " : 0.0.0.0",
"on-click-right": "~/.config/hypr/scripts/nmtui-launch.sh",
"tooltip": false
},
"network#network-2": {
"format-wifi": " : {bandwidthDownBytes}  : {bandwidthUpBytes}",
"format-ethernet": " : {bandwidthDownBytes}  : {bandwidthUpBytes}",
"format-linked": "(No IP) ",
"format-disconnected": " : N/A  : N/A",
"on-click-right": "~/.config/hypr/scripts/nmtui-launch.sh",
"tooltip": false,
"interval": 1
},
"custom/launcher": {
"format": "",
"on-click": "~/.config/hypr/scripts/rofi-launch.sh d",
"on-click-right": "pkill rofi"
},
"custom/power": {
"format": "⏻",
"on-click": "~/.config/hypr/scripts/rofi-launch.sh p",
"on-click-right": "pkill rofi"
}
}

View file

@ -0,0 +1,165 @@
@import "../../../.config/hypr-theme/waybar/global.css";
* {
border: none;
border-radius: 4px;
font-family: Roboto;
font-size: 10px;
font-weight: bold;
color: #fff;
min-height: 0;
}
window {
border-radius: 0;
background-color: @backgrounddark;
}
window>box {
padding: 4px 4px;
}
#clock,
#battery,
#cpu,
#custom-gpu-usage,
#memory,
#disk,
#temperature,
#backlight,
#network,
#pulseaudio,
#custom-media,
#custom-launcher,
#custom-power,
#taskbar,
#wireplumber,
#language,
#workspaces,
#tray {
background-color: @backgrounddark;
border: #272727 1px solid;
padding: 0px 6px;
}
#workspaces,
#tray {
padding: 0px 10px;
}
#tray menu * {
all: unset;
}
#tray menu {
background-color: @backgrounddark;
}
#tray menu menuitem {
border-radius: 4px;
padding: 6px;
}
#tray menu separator {
min-height: 1px;
margin: 6px 0px;
background: @workspacesbackground2;
}
#tray menu menuitem:hover {
background-color: #f53c3c;
}
#workspaces * {
font-size: 12px;
}
#workspaces button {
all: unset;
opacity: 0.2;
padding: 0px 6px;
transition: all 0.4s cubic-bezier(0.55, -0.68, 0.48, 1.682);
}
#workspaces button:first-child {
padding-left: 0px;
}
#workspaces button:last-child {
padding-right: 0px;
}
#workspaces button.active {
opacity: 1;
}
#workspaces button:hover {
opacity: 1;
background-color: @backgrounddark;
}
#taskbar button {
opacity: 0.2;
}
#taskbar button.active {
opacity: 1;
}
#battery.charging,
#battery.plugged {
background-color: #26a65b;
}
#battery.critical:not(.charging) {
background-color: #f53c3c;
animation-name: blink;
animation-duration: 0.5s;
animation-timing-function: linear;
animation-iteration-count: infinite;
animation-direction: alternate;
}
#backlight {
background-color: #90b1b1;
}
#custom-power {
font-size: 18px;
min-width: 20px;
}
#custom-launcher {
font-size: 18px;
}
#network {
min-width: 160px;
}
#network.network-2 {
min-width: 170px;
}
#network.disconnected {
color: red;
}
#language,
#clock,
#wireplumber,
#pulseaudio,
#cpu,
#custom-gpu-usage {
min-width: 65px;
}
#memory {
min-width: 85px;
}
#wireplumber.muted {
color: red;
}