fix(rice): set 5ms timeout to dark mode ternary query
This commit is contained in:
parent
945fa187d0
commit
dea05ddc5f
1 changed files with 1 additions and 2 deletions
|
@ -1,7 +1,6 @@
|
||||||
{
|
{
|
||||||
config,
|
config,
|
||||||
pkgs,
|
pkgs,
|
||||||
lib,
|
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
# TODO: de-duplicate across modules
|
# TODO: de-duplicate across modules
|
||||||
|
@ -16,7 +15,7 @@ in {
|
||||||
text = let
|
text = let
|
||||||
queryCommand =
|
queryCommand =
|
||||||
if pkgs.stdenv.isLinux
|
if pkgs.stdenv.isLinux
|
||||||
then "dbus-send --session --print-reply=literal --dest=org.freedesktop.portal.Desktop /org/freedesktop/portal/desktop org.freedesktop.portal.Settings.Read string:'org.freedesktop.appearance' string:'color-scheme' | grep -q 'uint32 1'"
|
then "dbus-send --session --print-reply=literal --reply-timeout=5 --dest=org.freedesktop.portal.Desktop /org/freedesktop/portal/desktop org.freedesktop.portal.Settings.Read string:'org.freedesktop.appearance' string:'color-scheme' | grep -q 'uint32 1'"
|
||||||
else if pkgs.stdenv.isDarwin
|
else if pkgs.stdenv.isDarwin
|
||||||
then "defaults read -g AppleInterfaceStyle &>/dev/null"
|
then "defaults read -g AppleInterfaceStyle &>/dev/null"
|
||||||
else throw "Unsupported platform";
|
else throw "Unsupported platform";
|
||||||
|
|
Loading…
Reference in a new issue