diff --git a/src/client.vala b/src/client.vala index 0938c13..ba00a85 100644 --- a/src/client.vala +++ b/src/client.vala @@ -27,6 +27,7 @@ private void print_help (string[] args) { print (@"\t -R, --reload-config \t Reload the config file\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, --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, --close-all \t Closes all notifications\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": print (cc_daemon.toggle_dnd ().to_string ()); break; + case "--get-dnd": + case "-D": + print (cc_daemon.get_dnd ().to_string ()); + break; case "--subscribe": case "-s": cc_daemon.subscribe.connect ((c, d) => on_subscribe (c, d));