Add darklight toggle to waybar
This commit is contained in:
parent
4d2aeb82fb
commit
d1cb1f76f6
2 changed files with 32 additions and 10 deletions
|
|
@ -20,6 +20,7 @@
|
|||
],
|
||||
"modules-right": [
|
||||
"clock",
|
||||
"custom/darklight",
|
||||
"custom/cliphist",
|
||||
"privacy",
|
||||
"idle_inhibitor",
|
||||
|
|
@ -205,5 +206,18 @@
|
|||
"on-click": "cliphist list | wofi -S dmenu | cliphist decode | wl-copy",
|
||||
"on-click-middle": "cliphist list | wofi -S dmenu | cliphist delete",
|
||||
"on-click-right": "cliphist wipe"
|
||||
},
|
||||
"custom/darklight": {
|
||||
"format": "{icon}",
|
||||
"interval": 1,
|
||||
"exec": "$HOME/.config/waybar/darkmanstate.sh",
|
||||
"return-type": "json",
|
||||
"format-icons": {
|
||||
"dark": "",
|
||||
"light": ""
|
||||
},
|
||||
"on-click": "darkman set light",
|
||||
"on-click-right": "darkman set dark"
|
||||
}
|
||||
}
|
||||
// vim: ts=4 sts=4 sw=4 et
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue