Deadd Notification Center Buttons
- Add buttons to pause, unpause, and close notification center
This commit is contained in:
@@ -67,12 +67,14 @@ defaultActionButton = mouse3
|
|||||||
|
|
||||||
[buttons]
|
[buttons]
|
||||||
|
|
||||||
buttonsPerRow = 5
|
buttonsPerRow = 3
|
||||||
|
|
||||||
buttonHeight = 60
|
buttonHeight = 60
|
||||||
|
|
||||||
buttonMargin = 2
|
buttonMargin = 2
|
||||||
|
|
||||||
# labels = "VPN":"Bluetooth":"Wifi":"Screensaver"
|
# labels = "VPN":"Bluetooth":"Wifi":"Screensaver"
|
||||||
|
labels = "Pause Notifications":"Unpause Notifications":"Close Notification Center"
|
||||||
|
|
||||||
# commands = "sudo vpnToggle":"bluetoothToggle":"wifiToggle":"screensaverToggle"
|
# 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"
|
||||||
|
@@ -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.
|
Numbers of buttons that can be drawn on a row of the notification center.
|
||||||
#+BEGIN_SRC conf :tangle .config/deadd/deadd.conf
|
#+BEGIN_SRC conf :tangle .config/deadd/deadd.conf
|
||||||
buttonsPerRow = 5
|
buttonsPerRow = 3
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
Height of buttons in the notification center (in pixels).
|
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:
|
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
|
#+BEGIN_SRC conf :tangle .config/deadd/deadd.conf
|
||||||
# labels = "VPN":"Bluetooth":"Wifi":"Screensaver"
|
# labels = "VPN":"Bluetooth":"Wifi":"Screensaver"
|
||||||
|
labels = "Pause Notifications":"Unpause Notifications":"Close Notification Center"
|
||||||
#+END_SRC
|
#+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`
|
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
|
#+BEGIN_SRC conf :tangle .config/deadd/deadd.conf
|
||||||
# commands = "sudo vpnToggle":"bluetoothToggle":"wifiToggle":"screensaverToggle"
|
# 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
|
#+END_SRC
|
||||||
|
|
||||||
*** Styling
|
*** Styling
|
||||||
|
Reference in New Issue
Block a user