mirror of
https://github.com/caelestia-dots/cli.git
synced 2026-06-05 14:59:29 -05:00
shell: remove default log rules
The spammy logs have been silenced
This commit is contained in:
@@ -22,12 +22,7 @@ def parse_args() -> (argparse.ArgumentParser, argparse.Namespace):
|
||||
shell_parser.add_argument("-d", "--daemon", action="store_true", help="start the shell detached")
|
||||
shell_parser.add_argument("-s", "--show", action="store_true", help="print all shell IPC commands")
|
||||
shell_parser.add_argument("-l", "--log", action="store_true", help="print the shell log")
|
||||
shell_parser.add_argument(
|
||||
"--log-rules",
|
||||
default="quickshell.dbus.properties.warning=false;quickshell.dbus.dbusmenu.warning=false;quickshell.service.notifications.warning=false;quickshell.service.sni.host.warning=false;qt.qpa.wayland.textinput.warning=false",
|
||||
metavar="RULES",
|
||||
help="log rules to apply",
|
||||
)
|
||||
shell_parser.add_argument("--log-rules", metavar="RULES", help="log rules to apply")
|
||||
|
||||
# Create parser for toggle opts
|
||||
toggle_parser = command_parser.add_parser("toggle", help="toggle a special workspace")
|
||||
|
||||
@@ -22,7 +22,9 @@ class Command:
|
||||
self.message(*self.args.message)
|
||||
else:
|
||||
# Start the shell
|
||||
args = ["qs", "-c", "caelestia", "-n", "--log-rules", self.args.log_rules]
|
||||
args = ["qs", "-c", "caelestia", "-n"]
|
||||
if self.args.log_rules:
|
||||
args.append("--log-rules", self.args.log_rules)
|
||||
if self.args.daemon:
|
||||
args.append("-d")
|
||||
subprocess.run(args)
|
||||
|
||||
Reference in New Issue
Block a user