Updated waybar
This commit is contained in:
parent
158fa4ce30
commit
ae7cc50cac
@ -3,27 +3,37 @@
|
|||||||
"name": "main",
|
"name": "main",
|
||||||
"layer": "top",
|
"layer": "top",
|
||||||
"position": "top",
|
"position": "top",
|
||||||
"height": 34,
|
"height": 38,
|
||||||
"spacing": 4,
|
"spacing": 4,
|
||||||
"margin-top": 10,
|
"margin-top": 4,
|
||||||
"margin-bottom": 0,
|
"margin-bottom": 0,
|
||||||
"output": "DP-2",
|
"output": "eDP-1",
|
||||||
"modules-left": [
|
"modules-left": [
|
||||||
"wireplumber",
|
|
||||||
"disk",
|
"disk",
|
||||||
"memory",
|
"memory",
|
||||||
"cpu",
|
"cpu",
|
||||||
"temperature"
|
"temperature",
|
||||||
|
"pulseaudio"
|
||||||
],
|
],
|
||||||
"modules-center": ["wlr/taskbar"],
|
"modules-center": ["hyprland/workspaces"],
|
||||||
"modules-right": [
|
"modules-right": [
|
||||||
"hyprland/workspaces",
|
|
||||||
"tray",
|
"tray",
|
||||||
|
"network#wifi",
|
||||||
"custom/weather",
|
"custom/weather",
|
||||||
"network#ethernet",
|
"battery",
|
||||||
"clock",
|
"clock",
|
||||||
"custom/poweroff"
|
"custom/poweroff"
|
||||||
],
|
],
|
||||||
|
"battery": {
|
||||||
|
"interval": 60,
|
||||||
|
"states": {
|
||||||
|
"warning": 30,
|
||||||
|
"critical": 15
|
||||||
|
},
|
||||||
|
"format": "{icon} {capacity}%",
|
||||||
|
"format-icons": ["", "", "", "", "", ""],
|
||||||
|
"max-length": 25
|
||||||
|
},
|
||||||
"clock": {
|
"clock": {
|
||||||
"interval": 1,
|
"interval": 1,
|
||||||
"format": "<b>{:%H:%M:%S}</b>",
|
"format": "<b>{:%H:%M:%S}</b>",
|
||||||
@ -51,26 +61,34 @@
|
|||||||
},
|
},
|
||||||
"temperature": {
|
"temperature": {
|
||||||
"critical-threshold": 80,
|
"critical-threshold": 80,
|
||||||
"format": " {icon} {temperatureC}°C ",
|
"format": "{icon} {temperatureC}°C",
|
||||||
"format-icons": ["", "", "", "", ""],
|
"format-icons": ["", "", "", "", ""],
|
||||||
"hwmon-path": "/sys/class/thermal/thermal_zone2/temp"
|
"hwmon-path": "/sys/class/thermal/thermal_zone2/temp"
|
||||||
},
|
},
|
||||||
"network#ethernet": {
|
"network#wifi": {
|
||||||
"interface": "enp*",
|
"interface": "wlo1",
|
||||||
"format-ethernet": "",
|
"format-wifi": " {essid} ({signalStrength})%",
|
||||||
"format-wifi": "",
|
|
||||||
"format-linked": "",
|
|
||||||
"format-disconnected": "",
|
"format-disconnected": "",
|
||||||
"tooltip-format": "{ifname}: {ipaddr}/{cidr}",
|
"tooltip-format": "{ifname}: {ipaddr}/{cidr}"
|
||||||
"on-click": "nm-connection-editor"
|
|
||||||
},
|
|
||||||
"sway/mode": {
|
|
||||||
"format": "<span style=\"italic\">{}</span>"
|
|
||||||
},
|
},
|
||||||
"hyprland/workspaces": {
|
"hyprland/workspaces": {
|
||||||
"format": "{name}",
|
"format": "{icon}",
|
||||||
"sort-by-number": true,
|
"sort-by-number": true,
|
||||||
"all-outputs": true
|
"all-outputs": true,
|
||||||
|
"disable-scroll": true,
|
||||||
|
"active-only": false,
|
||||||
|
"format-icons": {
|
||||||
|
"default": "",
|
||||||
|
"persistent": "",
|
||||||
|
"active": ""
|
||||||
|
},
|
||||||
|
"persistent-workspaces": {
|
||||||
|
"1": [ ],
|
||||||
|
"2": [ ],
|
||||||
|
"3": [ ],
|
||||||
|
"4": [ ],
|
||||||
|
"5": [ ]
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"wlr/taskbar": {
|
"wlr/taskbar": {
|
||||||
"format": "{name}",
|
"format": "{name}",
|
||||||
@ -84,19 +102,17 @@
|
|||||||
],
|
],
|
||||||
"rewrite": {
|
"rewrite": {
|
||||||
"(.*)Firefox Web Browser": "",
|
"(.*)Firefox Web Browser": "",
|
||||||
"(.*)Discord": "",
|
"(.*)Discord": "",
|
||||||
"(.*)Alacritty": "",
|
"(.*)Alacritty": "",
|
||||||
"Steam(.*)": "",
|
"Steam(.*)": "",
|
||||||
"(.*)Spotify": ""
|
"(.*)Spotify": ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"wireplumber": {
|
"pulseaudio": {
|
||||||
"format": " {volume}%",
|
"format": " {volume}%",
|
||||||
"format-muted": " 0%",
|
"format-muted": " 0%",
|
||||||
"on-click": "pavucontrol",
|
|
||||||
"on-click-right": "helvum",
|
|
||||||
"max-volume": 100,
|
"max-volume": 100,
|
||||||
"scroll-step": 5
|
"scroll-step": 0
|
||||||
},
|
},
|
||||||
"tray": {
|
"tray": {
|
||||||
"icon-size": 21,
|
"icon-size": 21,
|
||||||
@ -112,10 +128,10 @@
|
|||||||
"custom/poweroff": {
|
"custom/poweroff": {
|
||||||
"tooltip": false,
|
"tooltip": false,
|
||||||
"format": " ",
|
"format": " ",
|
||||||
"on-click": "bash $HOME/.config/waybar/scripts/poweroff.sh"
|
"on-click": "bash ~/.config/waybar/scripts/poweroff.sh"
|
||||||
},
|
},
|
||||||
"custom/weather": {
|
"custom/weather": {
|
||||||
"exec": "$HOME/.config/waybar/scripts/get_weather.sh Belleville+Illinois",
|
"exec": "~/.config/waybar/scripts/get_weather.sh Belleville+Illinois",
|
||||||
"return-type": "json",
|
"return-type": "json",
|
||||||
"format": "{}",
|
"format": "{}",
|
||||||
"tooltip": true,
|
"tooltip": true,
|
||||||
|
@ -1,47 +1,34 @@
|
|||||||
@import "mocha.css";
|
@import "frappe.css";
|
||||||
|
|
||||||
* {
|
* {
|
||||||
border: none;
|
border: none;
|
||||||
border-radius: 0px;
|
border-radius: 0px;
|
||||||
min-height: 0;
|
min-height: 0;
|
||||||
font-size: 15px;
|
font-size: 14px;
|
||||||
font-family: "Hack Nerd Font";
|
font-family: "Hack Nerd Font";
|
||||||
/*background: @base;*/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
window#waybar {
|
window#waybar {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
color: #ffffff;
|
color: @text;
|
||||||
transition-property: background-color;
|
|
||||||
transition-duration: .5s;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
window#waybar.hidden {
|
#workspaces {
|
||||||
opacity: 0.2;
|
margin: 4px 0;
|
||||||
|
border-radius: 5px;
|
||||||
|
background: transparent;
|
||||||
}
|
}
|
||||||
|
|
||||||
#workspaces button {
|
#workspaces button {
|
||||||
border-radius: 20px;
|
color: @overlay0;
|
||||||
|
background: transparent;
|
||||||
|
transition: all 0.1s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
#workspaces button:hover {
|
#workspaces button.active {
|
||||||
color: black;
|
color: @lavender;
|
||||||
border-bottom: 3px solid #ffffff;
|
border-top: 2px solid @lavender;
|
||||||
}
|
transition: all 0.1s ease;
|
||||||
|
|
||||||
#mode {
|
|
||||||
background-color: #64727D;
|
|
||||||
border-bottom: 3px solid #ffffff;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Sections */
|
|
||||||
|
|
||||||
.modules-left,
|
|
||||||
.modules-center,
|
|
||||||
.modules-right {
|
|
||||||
border-radius: 20px;
|
|
||||||
border: 3px solid @crust;
|
|
||||||
padding: 0 10px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#clock,
|
#clock,
|
||||||
@ -50,29 +37,14 @@ window#waybar.hidden {
|
|||||||
#memory,
|
#memory,
|
||||||
#network,
|
#network,
|
||||||
#temperature,
|
#temperature,
|
||||||
#taskbar,
|
|
||||||
#tray,
|
#tray,
|
||||||
#workspaces,
|
#pulseaudio,
|
||||||
#wireplumber,
|
|
||||||
#custom-poweroff,
|
#custom-poweroff,
|
||||||
#custom-weather,
|
#custom-weather {
|
||||||
#custom-spotify {
|
|
||||||
padding: 0 10px;
|
padding: 0 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.modules-left {
|
#pulseaudio {
|
||||||
background-image: linear-gradient(90deg, @base, @surface0, @surface2);
|
|
||||||
}
|
|
||||||
|
|
||||||
.modules-center {
|
|
||||||
background-image: linear-gradient(270deg, @base, @overlay2, @base);
|
|
||||||
}
|
|
||||||
|
|
||||||
.modules-right {
|
|
||||||
background-image: linear-gradient(270deg, @base, @surface0, @surface2);
|
|
||||||
}
|
|
||||||
|
|
||||||
#wireplumber{
|
|
||||||
color: @sapphire;
|
color: @sapphire;
|
||||||
}
|
}
|
||||||
#disk {
|
#disk {
|
||||||
@ -87,6 +59,3 @@ window#waybar.hidden {
|
|||||||
#temperature {
|
#temperature {
|
||||||
color: @sky;
|
color: @sky;
|
||||||
}
|
}
|
||||||
#taskbar button {
|
|
||||||
color: @rosewater;
|
|
||||||
}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user