shell: remove default log rules

The spammy logs have been silenced
This commit is contained in:
2 * r + 2 * t
2025-07-22 19:12:28 +10:00
parent beabe2683c
commit 13a2d46d08
2 changed files with 4 additions and 7 deletions
+1 -6
View File
@@ -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")
+3 -1
View File
@@ -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)