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",
|
"pulseaudio",
|
||||||
"cpu",
|
"cpu",
|
||||||
"power-profiles-daemon",
|
"power-profiles-daemon",
|
||||||
"battery"
|
"battery",
|
||||||
|
"custom/dnd"
|
||||||
|
|
||||||
],
|
],
|
||||||
"hyprland/workspaces": {
|
"hyprland/workspaces": {
|
||||||
"on-click": "activate",
|
"on-click": "activate",
|
||||||
@ -121,5 +123,18 @@
|
|||||||
"interval": 5,
|
"interval": 5,
|
||||||
"tooltip": true,
|
"tooltip": true,
|
||||||
"tooltip-format": "{}"
|
"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;
|
margin-right: 3px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#custom-dnd,
|
||||||
#custom-dropbox,
|
#custom-dropbox,
|
||||||
#cpu,
|
#cpu,
|
||||||
#power-profiles-daemon,
|
#power-profiles-daemon,
|
||||||
|
@ -12,3 +12,6 @@ max-icon-size=32
|
|||||||
|
|
||||||
[app-name=Spotify]
|
[app-name=Spotify]
|
||||||
invisible=1
|
invisible=1
|
||||||
|
|
||||||
|
[mode=do-not-disturb]
|
||||||
|
invisible=1
|
||||||
|
@ -12,3 +12,6 @@ max-icon-size=32
|
|||||||
|
|
||||||
[app-name=Spotify]
|
[app-name=Spotify]
|
||||||
invisible=1
|
invisible=1
|
||||||
|
|
||||||
|
[mode=do-not-disturb]
|
||||||
|
invisible=1
|
||||||
|
@ -12,3 +12,6 @@ max-icon-size=32
|
|||||||
|
|
||||||
[app-name=Spotify]
|
[app-name=Spotify]
|
||||||
invisible=1
|
invisible=1
|
||||||
|
|
||||||
|
[mode=do-not-disturb]
|
||||||
|
invisible=1
|
||||||
|
@ -12,3 +12,6 @@ max-icon-size=32
|
|||||||
|
|
||||||
[app-name=Spotify]
|
[app-name=Spotify]
|
||||||
invisible=1
|
invisible=1
|
||||||
|
|
||||||
|
[mode=do-not-disturb]
|
||||||
|
invisible=1
|
||||||
|
@ -12,3 +12,6 @@ max-icon-size=32
|
|||||||
|
|
||||||
[app-name=Spotify]
|
[app-name=Spotify]
|
||||||
invisible=1
|
invisible=1
|
||||||
|
|
||||||
|
[mode=do-not-disturb]
|
||||||
|
invisible=1
|
||||||
|
@ -12,3 +12,6 @@ max-icon-size=32
|
|||||||
|
|
||||||
[app-name=Spotify]
|
[app-name=Spotify]
|
||||||
invisible=1
|
invisible=1
|
||||||
|
|
||||||
|
[mode=do-not-disturb]
|
||||||
|
invisible=1
|
||||||
|
Reference in New Issue
Block a user