summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-07-22 19:12:28 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-07-22 19:12:28 +1000
commit13a2d46d082ba09eb4934cec092f6085134e58e0 (patch)
treebbb22da53a6ed2ce5fd1944739d16e052ba5b65a
parentcompletions: silence when no shell running (diff)
downloadcaelestia-cli-13a2d46d082ba09eb4934cec092f6085134e58e0.tar.gz
caelestia-cli-13a2d46d082ba09eb4934cec092f6085134e58e0.tar.bz2
caelestia-cli-13a2d46d082ba09eb4934cec092f6085134e58e0.zip
shell: remove default log rules
The spammy logs have been silenced
-rw-r--r--src/caelestia/parser.py7
-rw-r--r--src/caelestia/subcommands/shell.py4
2 files changed, 4 insertions, 7 deletions
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)