mirror of
https://github.com/fscotto/infra.git
synced 2026-05-30 15:39:58 +00:00
sway: add DND toggle in sway and waybar
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
|
||||
"modules-left": ["sway/workspaces"],
|
||||
"modules-center": [],
|
||||
"modules-right": ["cpu", "memory", "disk", "temperature", "backlight", "network", "pulseaudio", "battery", "tray", "clock", "custom/power"],
|
||||
"modules-right": ["cpu", "memory", "disk", "temperature", "backlight", "network", "pulseaudio", "battery", "tray", "clock", "custom/dnd", "custom/power"],
|
||||
|
||||
"sway/workspaces": {
|
||||
"disable-scroll": true,
|
||||
@@ -99,6 +99,14 @@
|
||||
"spacing": 6
|
||||
},
|
||||
|
||||
"custom/dnd": {
|
||||
"exec": "dunstctl is-paused | grep -q true && echo '{\"text\":\"\",\"class\":\"paused\"}' || echo '{\"text\":\"\",\"class\":\"\"}'",
|
||||
"return-type": "json",
|
||||
"interval": 2,
|
||||
"on-click": "dunstctl set-paused toggle",
|
||||
"tooltip": false
|
||||
},
|
||||
|
||||
"custom/power": {
|
||||
"format": "⏻",
|
||||
"tooltip": false,
|
||||
|
||||
Reference in New Issue
Block a user