Stole Waybar config from DerAnsari because I'm fucking lazy

This commit is contained in:
elishaqtrogers 2025-09-13 22:58:43 -04:00
parent b5b3fc8acb
commit 01099ac55d
2 changed files with 457 additions and 20 deletions

View file

@ -1,16 +1,272 @@
[
{
"layer": "top",
"modules-center": [
"clock"
],
[{
"height": 40,
"spacing": 5,
"modules-left": [
"hyprland/workspaces",
"hyprland/window"
"group/Utilities",
"group/workspaces",
"mpris"
],
"modules-center": [
"group/windows"
],
"modules-right": [
"battery"
"group/cpuram",
"group/system"
],
"position": "top"
"custom/openbracket": {
"format": "[",
"tooltip": false
},
"custom/closebracket": {
"format": "]",
"tooltip": false
},
"custom/split": {
"format": "|",
"tooltip": false
},
"group/Utilities":{
"orientation": "horizontal",
"modules":[
"custom/openbracket",
"custom/arch",
"idle_inhibitor",
"custom/split",
"custom/powerprofile",
"custom/themeswitcher",
"custom/closebracket"
]
},
"custom/arch": {
"format": "󰣇",
"tooltip": false,
"on-click": "wofi --show drun"
},
"custom/powerprofile": {
"exec": "~/.config/waybar/scripts/powerprofile.sh display",
"on-click": "~/.config/waybar/scripts/powerprofile.sh toggle",
"interval": 5,
"tooltip": true,
"exec-tooltip": "~/.config/waybar/scripts/powerprofile.sh tooltip",
"tooltip-format": "Power Profile: {} \nClick to cycle: Efficient → Normal → Overclocked"
},
"custom/themeswitcher":{
"format": "",
"tooltip": true,
"tooltip-format": "Click to change theme",
"on-click": "~/.config/waybar/scripts/theme-switcher.sh next",
"on-click-right": "~/.config/scripts/theme-switcher.sh random"
},
"group/workspaces":{
"orientation": "horizontal",
"modules":[
"custom/openbracket",
"hyprland/workspaces",
"custom/closebracket"
]
},
"hyprland/workspaces": {
"all-outputs": true,
"warp-on-scroll": false,
"enable-bar-scroll": true,
"disable-scroll-wraparound": true,
"active-only": false,
"format": "{icon}",
"format-icons": {
"1": "1",
"2": "2",
"3": "3",
"4": "4",
"5": "5",
"6": "6",
"default": "•"
}
]
},
"mpris": {
"format": "[  {status_icon} | {dynamic} ]",
"interval": 1,
"dynamic-len": 40,
"status-icons": {
"playing": "▶",
"paused": "⏸",
"stopped": ""
},
"dynamic-order": ["artist"]
},
"group/windows": {
"orientation":"horizontal",
"modules":[
"custom/openbracket",
"hyprland/window",
"custom/closebracket"
]
},
"hyprland/window": {
"format": "{title}",
"max-length": 40,
"min-length": 20,
"all-outputs": true
},
"group/cpuram": {
"orientation": "horizontal",
"modules": [
"custom/openbracket",
"cpu",
"custom/split",
"memory",
"custom/closebracket"
]
},
"cpu": {
"format": "CPU:{usage}%",
"tooltip": false,
"interval": 2,
"on-click": "kitty -e btop",
},
"memory":{
"format": "RAM:{}%",
"tooltip": false,
"interval": 2,
"on-click": "kitty -e btop",
},
"group/brightvol": {
"orientation": "horizontal",
"modules": [
"custom/openbracket",
"backlight",
"custom/split",
"wireplumber",
"custom/closebracket"
]
},
"wireplumber": {
"scroll-step": 5,
"format": "{icon}{volume}%",
"format-bluetooth": "{icon}{volume}% ",
"format-bluetooth-muted": " {icon}",
"format-muted": "",
"format-icons": {
"headphone": "",
"hands-free": "",
"headset": "",
"phone": "",
"portable": "",
"car": "",
"default": [" :", " :", " :"]
},
"on-click": "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle",
"on-click-right": "pavucontrol"
},
"backlight": {
"format": "{icon}:{percent}%",
"format-icons": ["", "", "🌙"],
"on-click": "~/.config/waybar/scripts/brightness_slider.sh"
},
"group/system": {
"orientation": "horizontal",
"modules": [
"custom/openbracket",
"clock",
"custom/split",
"network",
"custom/bluetooth",
"custom/clipboard",
"battery",
"custom/swaync",
"custom/closebracket"
]
},
"clock": {
"format": "{:%I:%M}",
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
"onclick" : "kalender"
},
"custom/clipboard": {
"format": "",
"tooltip": false,
"on-click": "~/.config/waybar/scripts/clipboard_menu.sh"
},
"battery": {
"states": {
"warning": 30,
"critical": 15
},
"format": "{icon} {capacity}%",
"format-full": "{icon} {capacity}%",
"format-charging": " {capacity}%",
"format-plugged": " {capacity}%",
"format-icons": ["", "", "", "", ""],
"on-click": "wlogout"
},
"idle_inhibitor": {
"format": "{icon}",
"format-icons": {
"activated": "",
"deactivated": ""
}
},
"custom/swaync": {
"format": "",
"exec": "swaync-client -swb",
"on-click": "swaync-client --toggle-panel",
"interval": 0
},
"network": {
"interface": "wlan0",
"format-wifi": "{icon}",
"format-ethernet": "󰈀 LAN",
"format-disconnected": "󰖪",
"tooltip-format": "{ipaddr}\n{ssid} ({signalStrength}%)",
"on-click": "kitty -e nmtui",
"format-icons": [ "󰤯", "󰤟", "󰤢", "󰤥", "󰤨" ]
},
"custom/bluetooth": {
"format": "{}",
"exec": "~/.config/waybar/scripts/bluetooth_status.sh",
"interval": 5,
"on-click": "blueman-manager"
},
"group/clock": {
"orientation": "horizontal",
"modules": [
"custom/openbracket",
"clock",
"custom/closebracket"
]
},
"custom/cava": {
"exec": "~/.config/waybar/scripts/cava_wrapper.sh",
"format": "♪ {}",
"restart-interval": 1,
"max-length": 50,
"on-click": "pkill cava"
},
"tray": {
"icon-size": 14,
"spacing": 10
},
"custom/notifications": {
"format": "",
"tooltip": false,
"on-click": "~/.config/waybar/scripts/notification_center.sh"
}
}]

View file

@ -1,12 +1,193 @@
/* colors defined at top for easy configuring */
@define-color background #2C2A24;
@define-color second-background #3A372F;
@define-color text #DDD5C4;
@define-color borders #A0907A;
@define-color focused #D08B57;
@define-color focused2 #BFAA80;
@define-color color1 #7699A3;
@define-color color2 #8D7AAE;
@define-color color3 #78997A;
@define-color urgent #B05A5A;
/* font declared */
* {
font-family: "JetBrainsMono Nerd Font", monospace;
font-size: 13px;
font-family: "Iosevka Nerd Font";
font-size: 15px;
}
#custom-openbracket,
#custom-closebracket{
margin: 0 5px ;
}
#window {
/* Example: style the window module */
background-color: #333333;
color: #fca944;
border-radius: 8px;
padding: 0 10px;
/* idk what all this does */
window#waybar {
background-color: transparent;
border-bottom: 0;
color: @text;
transition: background-color 0.5s;
}
window#waybar.hidden {
opacity: 0.2;
}
window#waybar.empty #window {
background-color: transparent;
}
/* configuring the modules */
.modules-left {
margin: 10px 0 0 10px;
padding: 0 0 0 7px;
background-color: @background;
border: 2px solid @focused;
border-radius: 5px;
}
.modules-center {
margin: 10px 0 0 0;
padding: 0 10px 0 10px;
background-color: @background;
border: 2px solid @focused;
border-radius: 5px;
}
.modules-right {
margin: 10px 10px 0 0;
padding: 0 10px 0 10px;
background-color: @background;
border: 2px solid @focused;
border-radius: 5px;
}
/* whats this?? */
button {
border: none;
}
/* left island */
/* menu pannel */
#custom-arch,
#custom-powerprofile,
#custom-themeswitcher{
padding-right: 10px;
padding-left: 5px;
font-size: 15px;
border-radius: 8px;
}
#custom-arch:hover {
color: @color1;
}
#custom-powerprofile:hover{
color: @color1
}
#custom-themeswitcher:hover {
color: @color1;
}
/* workspace pannel */
#workspaces button {
padding: 0 2px;
background-color: transparent;
color: @text;
border-radius: 0;
}
#workspaces button:hover {
background-color: @second-background;
}
#workspaces button.active {
color: @focused2;
background-color: @second-background;
}
#workspaces button.urgent {
background-color: @urgent;
}
/* no idea what this does */
.modules-left > widget:first-child > #workspaces {
margin-left: 0;
}
.modules-right > widget:last-child > #workspaces {
margin-right: 0;
}
/* media player */
#mpris {
margin: 0 0 0 5px;
padding: 0 9px ;
background-color: @background;
color: @text;
}
#mpris.playing {
background-color: @color3;
border-radius: 2px;
color: @background;
}
/* center module */
#window{
padding: 0 5px;
}
/* Right Island */
/* module general styles */
#clock,
#battery,
#cpu,
#memory,
#custom-clipboard,
#custom-bluetooth,
#network {
padding: 0 10px ;
}
#clock:hover,
#battery:hover,
#custom-cpu:hover,
#custom-clipboard:hover,
#custom-bluetooth:hover,
#network:hover,
#idle_inhibitor:hover,
#custom-swaync:hover,
#backlight:hover,
#wireplumber:hover{
color: @color1;
}
#idle_inhibitor{
padding: 0 10px 0 0;
}
#custom-powerprofile{
padding: 0 8px 0 4px;
}
/* Remaining Modules */
#backlight,
#wireplumber{
padding: 0 5px;
}
#wireplumber.muted {
background-color: @color2;
}
#custom-swaync {
padding: 0 10px 0 5px;
font-size: 16px; /* same scale as other icons */
color: @text;
}
#battery.charging,
#battery.plugged {
background-color: @focused2 ;
color: @background;
}
#battery.critical:not(.charging) {
background-color: @urgent;
color: @text;
animation: blink 0.5s steps(12) infinite alternate;
}
@keyframes blink {
to {
background-color: @second-background;
color: @text;
}
}