mirror of
https://github.com/basecamp/omarchy.git
synced 2025-07-27 12:19:24 +00:00
Add DND option to Waybar
This commit is contained in:
@ -16,7 +16,9 @@
|
||||
"pulseaudio",
|
||||
"cpu",
|
||||
"power-profiles-daemon",
|
||||
"battery"
|
||||
"battery",
|
||||
"custom/dnd"
|
||||
|
||||
],
|
||||
"hyprland/workspaces": {
|
||||
"on-click": "activate",
|
||||
@ -121,5 +123,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"
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -16,6 +16,7 @@
|
||||
margin-right: 3px;
|
||||
}
|
||||
|
||||
#custom-dnd,
|
||||
#custom-dropbox,
|
||||
#cpu,
|
||||
#power-profiles-daemon,
|
||||
|
@ -12,3 +12,6 @@ max-icon-size=32
|
||||
|
||||
[app-name=Spotify]
|
||||
invisible=1
|
||||
|
||||
[mode=do-not-disturb]
|
||||
invisible=1
|
||||
|
@ -12,3 +12,6 @@ max-icon-size=32
|
||||
|
||||
[app-name=Spotify]
|
||||
invisible=1
|
||||
|
||||
[mode=do-not-disturb]
|
||||
invisible=1
|
||||
|
@ -12,3 +12,6 @@ max-icon-size=32
|
||||
|
||||
[app-name=Spotify]
|
||||
invisible=1
|
||||
|
||||
[mode=do-not-disturb]
|
||||
invisible=1
|
||||
|
@ -12,3 +12,6 @@ max-icon-size=32
|
||||
|
||||
[app-name=Spotify]
|
||||
invisible=1
|
||||
|
||||
[mode=do-not-disturb]
|
||||
invisible=1
|
||||
|
@ -12,3 +12,6 @@ max-icon-size=32
|
||||
|
||||
[app-name=Spotify]
|
||||
invisible=1
|
||||
|
||||
[mode=do-not-disturb]
|
||||
invisible=1
|
||||
|
@ -12,3 +12,6 @@ max-icon-size=32
|
||||
|
||||
[app-name=Spotify]
|
||||
invisible=1
|
||||
|
||||
[mode=do-not-disturb]
|
||||
invisible=1
|
||||
|
Reference in New Issue
Block a user