Deadd Notification Center Buttons

- Add buttons to pause, unpause, and close notification center
This commit is contained in:
Sravan Balaji
2021-10-28 08:43:52 -04:00
parent 9017a65bcf
commit 03f9e982c2
2 changed files with 6 additions and 2 deletions

View File

@@ -67,12 +67,14 @@ defaultActionButton = mouse3
[buttons]
buttonsPerRow = 5
buttonsPerRow = 3
buttonHeight = 60
buttonMargin = 2
# labels = "VPN":"Bluetooth":"Wifi":"Screensaver"
labels = "Pause Notifications":"Unpause Notifications":"Close Notification Center"
# commands = "sudo vpnToggle":"bluetoothToggle":"wifiToggle":"screensaverToggle"
commands = "/home/sravan/.scripts/deadd.sh --pause":"/home/sravan/.scripts/deadd.sh --unpause":"/home/sravan/.scripts/deadd.sh --toggle-center"

View File

@@ -1032,7 +1032,7 @@ Note: If you want your buttons in the notification center to be
Numbers of buttons that can be drawn on a row of the notification center.
#+BEGIN_SRC conf :tangle .config/deadd/deadd.conf
buttonsPerRow = 5
buttonsPerRow = 3
#+END_SRC
Height of buttons in the notification center (in pixels).
@@ -1048,11 +1048,13 @@ buttonMargin = 2
Labels written on the buttons in the notification center. Labels should be written between quotes and separated by a colon. For example:
#+BEGIN_SRC conf :tangle .config/deadd/deadd.conf
# labels = "VPN":"Bluetooth":"Wifi":"Screensaver"
labels = "Pause Notifications":"Unpause Notifications":"Close Notification Center"
#+END_SRC
Each label is represented as a clickable button in the notification center. The commands variable below define the commands that should be launched when the user clicks on the associated button. There should be the same number of entries in `commands` and in `labels`
#+BEGIN_SRC conf :tangle .config/deadd/deadd.conf
# commands = "sudo vpnToggle":"bluetoothToggle":"wifiToggle":"screensaverToggle"
commands = "/home/sravan/.scripts/deadd.sh --pause":"/home/sravan/.scripts/deadd.sh --unpause":"/home/sravan/.scripts/deadd.sh --toggle-center"
#+END_SRC
*** Styling