mirror of
https://github.com/caelestia-dots/cli.git
synced 2026-06-08 08:19:28 -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("-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("-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("-l", "--log", action="store_true", help="print the shell log")
|
||||||
shell_parser.add_argument(
|
shell_parser.add_argument("--log-rules", metavar="RULES", help="log rules to apply")
|
||||||
"--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",
|
|
||||||
)
|
|
||||||
|
|
||||||
# Create parser for toggle opts
|
# Create parser for toggle opts
|
||||||
toggle_parser = command_parser.add_parser("toggle", help="toggle a special workspace")
|
toggle_parser = command_parser.add_parser("toggle", help="toggle a special workspace")
|
||||||
|
|||||||
@@ -22,7 +22,9 @@ class Command:
|
|||||||
self.message(*self.args.message)
|
self.message(*self.args.message)
|
||||||
else:
|
else:
|
||||||
# Start the shell
|
# 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:
|
if self.args.daemon:
|
||||||
args.append("-d")
|
args.append("-d")
|
||||||
subprocess.run(args)
|
subprocess.run(args)
|
||||||
|
|||||||
Reference in New Issue
Block a user