Updated config
This commit is contained in:
21
.config/waybar/config.jsonc
Normal file
21
.config/waybar/config.jsonc
Normal file
@ -0,0 +1,21 @@
|
||||
{
|
||||
"layer": "top",
|
||||
"position": "bottom",
|
||||
"modules-left": [
|
||||
"hyprland/workspaces",
|
||||
"hyprland/window",
|
||||
],
|
||||
"modules-center": [],
|
||||
"modules-right": [
|
||||
"custom/updates",
|
||||
"cpu",
|
||||
"custom/gpu",
|
||||
"memory",
|
||||
"disk",
|
||||
"network#up",
|
||||
"network#down",
|
||||
"wireplumber",
|
||||
"clock",
|
||||
],
|
||||
"include": "~/.config/waybar/modules.jsonc",
|
||||
}
|
@ -1,12 +1,7 @@
|
||||
{
|
||||
"layer": "top",
|
||||
"position": "bottom",
|
||||
"modules-left": ["custom/os","hyprland/workspaces"],
|
||||
"modules-center": ["clock"],
|
||||
"modules-right": ["cpu","custom/gpu","memory","disk","network","custom/power"],
|
||||
"clock": {
|
||||
"interval": 60,
|
||||
"format": "{:%H : %M}",
|
||||
"format": "<span color='#ffffff7f'></span> {:%H : %M}",
|
||||
"tooltip-format": "{:%A, %Y-%m-%d}",
|
||||
"on-click": "gnome-clocks",
|
||||
"on-click-right": "date -u +'%Y-%m-%dT%H:%M:%SZ' | wl-copy",
|
||||
@ -18,12 +13,20 @@
|
||||
"max-length": 10,
|
||||
"on-click": "$TERMINAL -e btop",
|
||||
},
|
||||
"custom/updates": {
|
||||
"interval": 300,
|
||||
"format": "<span color='#ffffff7f'> </span> {}",
|
||||
"exec": "~/.bin/updates",
|
||||
"return-type": "json",
|
||||
"on-click": "$TERMINAL -e yay",
|
||||
},
|
||||
"custom/gpu": {
|
||||
"interval": 2,
|
||||
"exec": "nvidia-smi --query-gpu=utilization.gpu --format=csv,noheader,nounits",
|
||||
"format": "<span color='#ffffff7f'> </span> {}%",
|
||||
"return-type": "",
|
||||
"interval": 2,
|
||||
"on-click": "$TERMINAL -e nvtop",
|
||||
"max-length": 10,
|
||||
},
|
||||
"memory": {
|
||||
"interval": 2,
|
||||
@ -31,28 +34,30 @@
|
||||
"max-length": 10,
|
||||
"on-click": "$TERMINAL -e btop",
|
||||
},
|
||||
"network": {
|
||||
"network#up": {
|
||||
"interval": 2,
|
||||
"format": " {ifname}",
|
||||
"format-wifi": " {essid}",
|
||||
"format-ethernet": "<span color='#ffffff7f'> </span>{bandwidthUpBits} <span color='#ffffff7f'> </span>{bandwidthDownBits}",
|
||||
"format-disconnected": "",
|
||||
"tooltip-format": "{ifname} via {gwaddr}",
|
||||
"tooltip-format-wifi": " {essid} ({signalStrength}%)",
|
||||
"tooltip-format-ethernet": " {ifname}",
|
||||
"tooltip-format-disconnected": "",
|
||||
"max-length": 50,
|
||||
"format": "<span color='#ffffff7f'> </span>{bandwidthUpBits}",
|
||||
"tooltip-format": " {ifname} upload",
|
||||
"max-length": 10,
|
||||
"on-click": "$TERMINAL -e nethogs",
|
||||
},
|
||||
"network#down": {
|
||||
"interval": 2,
|
||||
"format": "<span color='#ffffff7f'> </span>{bandwidthDownBits}",
|
||||
"tooltip-format": " {ifname} download",
|
||||
"max-length": 10,
|
||||
"on-click": "$TERMINAL -e nethogs",
|
||||
},
|
||||
"disk": {
|
||||
"interval": 30,
|
||||
"format": "<span color='#ffffff7f'> </span>{used}",
|
||||
"path": "/",
|
||||
"max-length": 10,
|
||||
"on-click": "$TERMINAL -e dua i",
|
||||
},
|
||||
"mpris": {
|
||||
"format": "{player_icon} {title}",
|
||||
"format-paused": "{status_icon} {title}",
|
||||
"format": "<span color='#ffffff7f'>{player_icon}</span> {title}",
|
||||
"format-paused": "<span color='#ffffff7f'>{status_icon}</span> {title}",
|
||||
"player-icons": {
|
||||
"default": "",
|
||||
"mpv": ""
|
||||
@ -66,12 +71,16 @@
|
||||
"format": "<span color='#ffffff7f'>{icon}</span> {volume}%",
|
||||
"format-muted": "",
|
||||
"scroll-step": 5,
|
||||
"on-click": "helvum",
|
||||
"format-icons": ["", "", ""],
|
||||
"max-length": 10,
|
||||
"on-click": "helvum",
|
||||
},
|
||||
"hyprland/window": {
|
||||
"format": " {initialTitle}",
|
||||
"separate-outputs": true
|
||||
},
|
||||
"hyprland/workspaces": {
|
||||
"format": "{icon}",
|
||||
"on-click": "activate",
|
||||
"persistent-workspaces": {
|
||||
"*": 9
|
||||
},
|
||||
@ -82,6 +91,7 @@
|
||||
"urgent": "",
|
||||
},
|
||||
"sort-by-number": true,
|
||||
"on-click": "activate",
|
||||
},
|
||||
"custom/os":{
|
||||
"format": "",
|
@ -1,58 +1,74 @@
|
||||
* {
|
||||
border: none;
|
||||
font-family: "Ubuntu Nerd Font";
|
||||
font-size: 11px;
|
||||
font-size: 12px;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
window#waybar {
|
||||
color: #F8F8F2;
|
||||
background: #272822;
|
||||
/* border: 2px solid rgba(255, 255, 255, 0.1); */
|
||||
/* border-radius: 3px; */
|
||||
/* border-bottom: 1px solid rgba(255, 255, 255, 0.25); */
|
||||
#waybar {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
window#waybar.hidden {
|
||||
#waybar.hidden {
|
||||
opacity: 0.2;
|
||||
}
|
||||
|
||||
#waybar #window {
|
||||
opacity: 1;
|
||||
transition: opacity 200ms ease;
|
||||
}
|
||||
|
||||
#waybar.empty #window {
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
#clock,
|
||||
#cpu,
|
||||
#disk,
|
||||
#memory,
|
||||
#mpris,
|
||||
#network,
|
||||
#window,
|
||||
#wireplumber,
|
||||
#workspaces,
|
||||
#custom-os,
|
||||
#custom-gpu {
|
||||
margin: 0 8px;
|
||||
#custom-gpu,
|
||||
#custom-updates {
|
||||
background: rgb(38, 41, 44);
|
||||
border-radius: 10px;
|
||||
padding: 4px 8px;
|
||||
margin: 0px 4px;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
|
||||
#workspaces {}
|
||||
#custom-updates.disabled {
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
#workspaces button {
|
||||
padding: 0px 5px;
|
||||
color: rgba(255, 255, 255, 0.4);
|
||||
opacity: 0.8;
|
||||
background: transparent;
|
||||
text-shadow: none;
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
#workspaces button.empty {
|
||||
color: rgba(255, 255, 255, 0.2);
|
||||
opacity: 0.2;
|
||||
}
|
||||
|
||||
#workspaces button.active {
|
||||
opacity: 1.0;
|
||||
}
|
||||
|
||||
#workspaces button.visible {}
|
||||
#workspaces button.urgent {}
|
||||
#workspaces button.persistent {}
|
||||
#workspaces button.hidden {}
|
||||
|
||||
#workspaces button.active {
|
||||
color: rgba(255, 255, 255, 1.0);
|
||||
}
|
||||
|
||||
#custom-os {
|
||||
font-size: 150%;
|
||||
color: rgb(137, 220, 235);
|
||||
background: transparent;
|
||||
}
|
||||
|
Reference in New Issue
Block a user