Added "--get-dnd" to client @xav-ie
This commit is contained in:
@@ -27,6 +27,7 @@ private void print_help (string[] args) {
|
|||||||
print (@"\t -R, --reload-config \t Reload the config file\n");
|
print (@"\t -R, --reload-config \t Reload the config file\n");
|
||||||
print (@"\t -t, --toggle-panel \t Toggle the notificaion panel\n");
|
print (@"\t -t, --toggle-panel \t Toggle the notificaion panel\n");
|
||||||
print (@"\t -d, --toggle-dnd \t Toggle and print the current dnd state\n");
|
print (@"\t -d, --toggle-dnd \t Toggle and print the current dnd state\n");
|
||||||
|
print (@"\t -D, --get-dnd \t\t Print the current dnd state\n");
|
||||||
print (@"\t -c, --count \t\t Print the current notificaion count\n");
|
print (@"\t -c, --count \t\t Print the current notificaion count\n");
|
||||||
print (@"\t -C, --close-all \t Closes all notifications\n");
|
print (@"\t -C, --close-all \t Closes all notifications\n");
|
||||||
print (@"\t -sw, --skip-wait \t Doesn't wait when swaync hasn't been started\n");
|
print (@"\t -sw, --skip-wait \t Doesn't wait when swaync hasn't been started\n");
|
||||||
@@ -71,6 +72,10 @@ public int command_line (string[] args) {
|
|||||||
case "-d":
|
case "-d":
|
||||||
print (cc_daemon.toggle_dnd ().to_string ());
|
print (cc_daemon.toggle_dnd ().to_string ());
|
||||||
break;
|
break;
|
||||||
|
case "--get-dnd":
|
||||||
|
case "-D":
|
||||||
|
print (cc_daemon.get_dnd ().to_string ());
|
||||||
|
break;
|
||||||
case "--subscribe":
|
case "--subscribe":
|
||||||
case "-s":
|
case "-s":
|
||||||
cc_daemon.subscribe.connect ((c, d) => on_subscribe (c, d));
|
cc_daemon.subscribe.connect ((c, d) => on_subscribe (c, d));
|
||||||
|
Reference in New Issue
Block a user