Add Sway session with Waybar and split configs for Hyprland

This commit is contained in:
Fabio Scotto di Santolo
2026-03-31 17:04:05 +02:00
parent e57f2e8253
commit da3c97a35a
19 changed files with 533 additions and 32 deletions

View File

@@ -12,13 +12,12 @@
"pulseaudio",
"backlight",
"network",
"bluetooth",
"battery",
"temperature",
"memory",
"clock",
"custom/powermenu",
"tray"
"tray",
"custom/powermenu"
],
"hyprland/workspaces": {
@@ -31,8 +30,9 @@
"pulseaudio": {
"scroll-step": 1,
"format": "VOL {volume}%",
"format-muted": "MUTE",
"format": "󰕾 {volume}%",
"format-bluetooth": "󰂯 {volume}%",
"format-muted": "󰖁",
"on-click": "pavucontrol",
"tooltip": false
},
@@ -41,16 +41,16 @@
"device": "intel_backlight",
"on-scroll-up": "brightnessctl set +5%",
"on-scroll-down": "brightnessctl set 5%-",
"format": "BL {percent}%"
"format": "󰃠 {percent}%"
},
"network": {
"interval": 1,
"tooltip": true,
"format-wifi": "WIFI",
"format-ethernet": "ETH",
"format-linked": "LINK",
"format-disconnected": "OFF",
"format-wifi": "󰖩",
"format-ethernet": "󰈀",
"format-linked": "󰈀",
"format-disconnected": "󰖪",
"tooltip-format": "{ifname}",
"tooltip-format-wifi": "{essid} ({signalStrength}%)",
"tooltip-format-ethernet": "{ifname}",
@@ -58,34 +58,28 @@
"on-click": "nm-connection-editor"
},
"bluetooth": {
"format": "BT",
"format-connected": "BT {device_alias}",
"format-off": "BT OFF",
"on-click": "blueman-manager"
},
"battery": {
"interval": 10,
"states": {
"warning": 20,
"critical": 10
},
"format": "BAT {capacity}%",
"format-charging": "BAT {capacity}% AC",
"format-plugged": "BAT {capacity}% AC",
"format": "{icon} {capacity}%",
"format-charging": "󰂄 {capacity}%",
"format-plugged": "󰂄 {capacity}%",
"format-alt": "{time}"
,"format-icons": ["󰁺", "󰁻", "󰁼", "󰁽", "󰁾", "󰁿", "󰂀", "󰂁", "󰂂", "󰁹"]
},
"temperature": {
"critical-threshold": 80,
"format": "TMP {temperatureC}C",
"format": "󰔏 {temperatureC}C",
"tooltip": false
},
"memory": {
"interval": 5,
"format": "MEM {percentage}%",
"format": "󰍛 {percentage}%",
"states": {
"warning": 85
}
@@ -94,18 +88,19 @@
"clock": {
"interval": 60,
"timezone": "Europe/Rome",
"format": "{:%Y-%m-%d %H:%M}",
"format-alt": "{:%A %d/%m/%Y}"
"format": "󰥔 {:%Y-%m-%d %H:%M}",
"format-alt": "{:%A %d/%m/%Y}",
"tooltip-format": "{:%A %d %B %Y\n%H:%M:%S %Z}"
},
"custom/powermenu": {
"format": "POWER",
"format": "",
"on-click": "~/.local/bin/powermenu",
"tooltip": false
},
"tray": {
"icon-size": 15,
"spacing": 6
"spacing": 4
}
}

View File

@@ -0,0 +1,105 @@
{
"layer": "top",
"position": "bottom",
"height": 28,
"spacing": 4,
"modules-left": [
"sway/workspaces"
],
"modules-right": [
"pulseaudio",
"backlight",
"network",
"battery",
"temperature",
"memory",
"clock",
"tray",
"custom/powermenu"
],
"sway/workspaces": {
"disable-scroll": true,
"all-outputs": true,
"format": "{name}",
"sort-by-number": true
},
"pulseaudio": {
"scroll-step": 1,
"format": "󰕾 {volume}%",
"format-bluetooth": "󰂯 {volume}%",
"format-muted": "󰖁",
"on-click": "pavucontrol",
"tooltip": false
},
"backlight": {
"device": "intel_backlight",
"on-scroll-up": "brightnessctl set +5%",
"on-scroll-down": "brightnessctl set 5%-",
"format": "󰃠 {percent}%"
},
"network": {
"interval": 1,
"tooltip": true,
"format-wifi": "󰖩",
"format-ethernet": "󰈀",
"format-linked": "󰈀",
"format-disconnected": "󰖪",
"tooltip-format": "{ifname}",
"tooltip-format-wifi": "{essid} ({signalStrength}%)",
"tooltip-format-ethernet": "{ifname}",
"tooltip-format-disconnected": "Disconnected",
"on-click": "nm-connection-editor"
},
"battery": {
"interval": 10,
"states": {
"warning": 20,
"critical": 10
},
"format": "{icon} {capacity}%",
"format-charging": "󰂄 {capacity}%",
"format-plugged": "󰂄 {capacity}%",
"format-alt": "{time}"
,"format-icons": ["󰁺", "󰁻", "󰁼", "󰁽", "󰁾", "󰁿", "󰂀", "󰂁", "󰂂", "󰁹"]
},
"temperature": {
"critical-threshold": 80,
"format": "󰔏 {temperatureC}C",
"tooltip": false
},
"memory": {
"interval": 5,
"format": "󰍛 {percentage}%",
"states": {
"warning": 85
}
},
"clock": {
"interval": 60,
"timezone": "Europe/Rome",
"format": "󰥔 {:%Y-%m-%d %H:%M}",
"format-alt": "{:%A %d/%m/%Y}",
"tooltip-format": "{:%A %d %B %Y\n%H:%M:%S %Z}"
},
"custom/powermenu": {
"format": "⏻",
"on-click": "~/.local/bin/powermenu",
"tooltip": false
},
"tray": {
"icon-size": 15,
"spacing": 4
}
}

View File

@@ -4,14 +4,19 @@
min-height: 0;
padding: 0;
margin: 0;
font-family: "Liberation Mono", monospace;
font-size: 12px;
}
window#waybar {
background: #1f1f28;
color: #d0d0d0;
border-top: 2px solid #3a3a46;
font-family: "Liberation Mono", "Symbols Nerd Font", monospace;
font-size: 12px;
}
window#waybar * {
font-family: inherit;
font-size: inherit;
}
#workspaces,
@@ -46,9 +51,11 @@ window#waybar {
background: transparent;
}
#workspaces button.active {
#workspaces button.active,
#workspaces button.focused {
background: #4a90d9;
color: #ffffff;
border-top: 2px solid #4a90d9;
border-top: 2px solid #6daeea;
}
#workspaces button.urgent {
@@ -80,7 +87,13 @@ window#waybar {
}
#tray {
padding-right: 12px;
padding: 0 8px;
}
menu,
menuitem {
font-family: "Liberation Sans", sans-serif;
font-size: 11px;
}
tooltip {