Merge pull request #63 from ryanrhughes/waybar-add-dnd

Add DND option to Waybar
This commit is contained in:
David Heinemeier Hansson
2025-07-06 14:35:30 -07:00
committed by GitHub
8 changed files with 33 additions and 0 deletions

View File

@ -7,6 +7,7 @@
"hyprland/workspaces"
],
"modules-center": [
"custom/dnd",
"clock"
],
"modules-right": [
@ -121,5 +122,18 @@
"interval": 5,
"tooltip": true,
"tooltip-format": "{}"
},
"custom/dnd": {
"exec": "makoctl mode | grep -q 'do-not-disturb' && echo '{\"alt\":\"dnd\",\"tooltip\":\"Enable notifications\"}' || echo '{\"alt\":\"on\",\"tooltip\":\"Disable notifications\"}'",
"format": "{icon}",
"format-icons": {
"on": " 󰂚",
"dnd": "󰂛"
},
"return-type": "json",
"interval": 5,
"tooltip": "{tooltip}",
"on-click": "makoctl mode -t do-not-disturb"
}
}

View File

@ -16,6 +16,7 @@
margin-right: 3px;
}
#custom-dnd,
#custom-dropbox,
#cpu,
#power-profiles-daemon,

View File

@ -12,3 +12,6 @@ max-icon-size=32
[app-name=Spotify]
invisible=1
[mode=do-not-disturb]
invisible=1

View File

@ -12,3 +12,6 @@ max-icon-size=32
[app-name=Spotify]
invisible=1
[mode=do-not-disturb]
invisible=1

View File

@ -12,3 +12,6 @@ max-icon-size=32
[app-name=Spotify]
invisible=1
[mode=do-not-disturb]
invisible=1

View File

@ -12,3 +12,6 @@ max-icon-size=32
[app-name=Spotify]
invisible=1
[mode=do-not-disturb]
invisible=1

View File

@ -12,3 +12,6 @@ max-icon-size=32
[app-name=Spotify]
invisible=1
[mode=do-not-disturb]
invisible=1

View File

@ -12,3 +12,6 @@ max-icon-size=32
[app-name=Spotify]
invisible=1
[mode=do-not-disturb]
invisible=1