From 13a2d46d082ba09eb4934cec092f6085134e58e0 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Tue, 22 Jul 2025 19:12:28 +1000 Subject: shell: remove default log rules The spammy logs have been silenced --- src/caelestia/parser.py | 7 +------ src/caelestia/subcommands/shell.py | 4 +++- 2 files changed, 4 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/caelestia/parser.py b/src/caelestia/parser.py index f84f991..550842d 100644 --- a/src/caelestia/parser.py +++ b/src/caelestia/parser.py @@ -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") diff --git a/src/caelestia/subcommands/shell.py b/src/caelestia/subcommands/shell.py index effff3a..68a6821 100644 --- a/src/caelestia/subcommands/shell.py +++ b/src/caelestia/subcommands/shell.py @@ -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) -- cgit v1.2.3-freya