|
|
@@ -1,16 +1,13 @@
|
|
|
{
|
|
|
"layer": "top",
|
|
|
"position": "top",
|
|
|
- "margin": "5 0 0",
|
|
|
"mod": "dock",
|
|
|
"exclusive": true,
|
|
|
"passthrough": false,
|
|
|
"gtk-layer-shell": true,
|
|
|
"height": 5,
|
|
|
- "margin-bottom": 0,
|
|
|
- "margin-top": 5,
|
|
|
- "margin-left": 10,
|
|
|
- "margin-right": 10,
|
|
|
+ "margin": "5 10 0 10",
|
|
|
+ // Workspace and Window Management
|
|
|
"sway/workspaces": {
|
|
|
"disable-scroll": true,
|
|
|
"format": "{name} {icon}",
|
|
|
@@ -32,10 +29,28 @@
|
|
|
"(.*) - zsh": "> [$1]"
|
|
|
}
|
|
|
},
|
|
|
+ // System Tray
|
|
|
"tray": {
|
|
|
"icon-size": 18,
|
|
|
"spacing": 5
|
|
|
},
|
|
|
+ "group/tray-expander": {
|
|
|
+ "orientation": "inherit",
|
|
|
+ "drawer": {
|
|
|
+ "transition-duration": 600,
|
|
|
+ "children-class": "tray-group-item"
|
|
|
+ },
|
|
|
+ "modules": [
|
|
|
+ "custom/expand-icon",
|
|
|
+ "tray",
|
|
|
+ "custom/notification"
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ "custom/expand-icon": {
|
|
|
+ "format": " ",
|
|
|
+ "tooltip": false
|
|
|
+ },
|
|
|
+ // Date and Time
|
|
|
"clock": {
|
|
|
// DD-MM-YYYY
|
|
|
"format": " {0:%H:%M:%S %Z} {0:%d/%m/%Y}",
|
|
|
@@ -63,8 +78,9 @@
|
|
|
"weekdays": "<span color='#ffcc66'><b>{}</b></span>",
|
|
|
"today": "<span color='#ff6699'><b><u>{}</u></b></span>"
|
|
|
}
|
|
|
- },
|
|
|
+ }
|
|
|
},
|
|
|
+ // Hardware Controls
|
|
|
"backlight": {
|
|
|
"device": "intel_backlight",
|
|
|
"format": "{icon} {percent}%",
|
|
|
@@ -78,43 +94,83 @@
|
|
|
"scroll-step": 0.2,
|
|
|
"min-length": 6
|
|
|
},
|
|
|
- // "pulseaudio": {
|
|
|
- // "format": "{icon} {volume}%",
|
|
|
- // "tooltip": false,
|
|
|
- // "format-muted": " Muted",
|
|
|
- // "on-click": "wpctl set-mute @DEFAULT_SINK@ toggle",
|
|
|
- // "on-click-right": "pavucontrol",
|
|
|
- // "scroll-step": 0.5,
|
|
|
- // "format-icons": {
|
|
|
- // "headphone": "",
|
|
|
- // "hands-free": "",
|
|
|
- // "headset": "",
|
|
|
- // "phone": "",
|
|
|
- // "portable": "",
|
|
|
- // "car": "",
|
|
|
- // "default": [
|
|
|
- // "",
|
|
|
- // "",
|
|
|
- // " "
|
|
|
- // ]
|
|
|
- // }
|
|
|
- // },
|
|
|
- // "pulseaudio#microphone": {
|
|
|
- // "format": "{format_source}",
|
|
|
- // "format-source": " {volume}%",
|
|
|
- // "format-source-muted": " Muted",
|
|
|
- // "on-click": "wpctl set-mute @DEFAULT_SOURCE@ toggle",
|
|
|
- // "on-click-right": "pavucontrol",
|
|
|
- // "on-scroll-up": "wpctl set-volume -l 1 @DEFAULT_SOURCE@ 5%+",
|
|
|
- // "on-scroll-down": "wpctl set-volume -l 1 @DEFAULT_SOURCE@ 5%-",
|
|
|
- // "scroll-step": 5
|
|
|
- // },
|
|
|
"temperature": {
|
|
|
"thermal-zone": 1,
|
|
|
"format": " {temperatureC}°C",
|
|
|
"critical-threshold": 80,
|
|
|
"format-critical": "{temperatureC}°C "
|
|
|
},
|
|
|
+ "cpu": {
|
|
|
+ "interval": 10,
|
|
|
+ "format": " {}%",
|
|
|
+ "max-length": 10
|
|
|
+ },
|
|
|
+ "memory": {
|
|
|
+ "interval": 30,
|
|
|
+ "format": " {used:0.1f}/{total:0.1f} GiB"
|
|
|
+ },
|
|
|
+ "disk": {
|
|
|
+ "interval": 30,
|
|
|
+ "format": " {used}/{total}",
|
|
|
+ "unit": "GiB",
|
|
|
+ "path": "/home"
|
|
|
+ },
|
|
|
+ "battery": {
|
|
|
+ "format": "{capacity}% {icon}",
|
|
|
+ "format-discharging": "{icon}",
|
|
|
+ "format-charging": "{icon}",
|
|
|
+ "format-plugged": "",
|
|
|
+ "format-icons": {
|
|
|
+ "charging": [
|
|
|
+ "",
|
|
|
+ "",
|
|
|
+ "",
|
|
|
+ "",
|
|
|
+ "",
|
|
|
+ "",
|
|
|
+ "",
|
|
|
+ "",
|
|
|
+ "",
|
|
|
+ ""
|
|
|
+ ],
|
|
|
+ "default": [
|
|
|
+ "",
|
|
|
+ "",
|
|
|
+ "",
|
|
|
+ "",
|
|
|
+ "",
|
|
|
+ "",
|
|
|
+ "",
|
|
|
+ "",
|
|
|
+ "",
|
|
|
+ ""
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ "format-full": "",
|
|
|
+ "tooltip-format-discharging": "{power:>1.0f}W↓ {capacity}%",
|
|
|
+ "tooltip-format-charging": "{power:>1.0f}W↑ {capacity}%",
|
|
|
+ "interval": 5,
|
|
|
+ "states": {
|
|
|
+ "warning": 20,
|
|
|
+ "critical": 10
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "pulseaudio": {
|
|
|
+ "format": "{icon}",
|
|
|
+ "on-click": "$TERMINAL --class=Wiremix -e wiremix",
|
|
|
+ "on-click-right": "pamixer -t",
|
|
|
+ "tooltip-format": "Playing at {volume}%",
|
|
|
+ "scroll-step": 5,
|
|
|
+ "format-muted": "",
|
|
|
+ "format-icons": {
|
|
|
+ "default": [
|
|
|
+ "",
|
|
|
+ "",
|
|
|
+ ""
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ },
|
|
|
+ // Network and Connectivity
|
|
|
"network": {
|
|
|
"format-wifi": " {signalStrength}%",
|
|
|
"format-ethernet": "{ipaddr}/{cidr}",
|
|
|
@@ -132,6 +188,7 @@
|
|
|
"tooltip-format-enumerate-connected": "{device_alias}",
|
|
|
"on-click": "bluetoothctl toggle"
|
|
|
},
|
|
|
+ // Media Controls
|
|
|
"custom/playerctl": {
|
|
|
"format": "{icon}",
|
|
|
"return-type": "json",
|
|
|
@@ -157,6 +214,13 @@
|
|
|
"Paused": "<span foreground='#928374'> </span>"
|
|
|
}
|
|
|
},
|
|
|
+ // Notifications and Utilities
|
|
|
+ "custom/wf-recorder": {
|
|
|
+ "format": "",
|
|
|
+ "tooltip": false,
|
|
|
+ "on-click": "wf-recorder -f ~/Videos/$(date +%Y%m%d_%H%M%S).mp4",
|
|
|
+ "on-click-right": "pkill -f wf-recorder"
|
|
|
+ },
|
|
|
"custom/notification": {
|
|
|
"tooltip": false,
|
|
|
"format": "{icon}",
|