From 0bc5142a25e304e998f0a38000c224c8ae80d01e Mon Sep 17 00:00:00 2001 From: Ricard Illa Date: Sun, 12 Feb 2023 16:16:34 +0100 Subject: [PATCH] add imv for viewing images when using river --- home/desktop-river/init.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/home/desktop-river/init.nix b/home/desktop-river/init.nix index bfc2ac6..b513535 100644 --- a/home/desktop-river/init.nix +++ b/home/desktop-river/init.nix @@ -19,6 +19,20 @@ let dbus-update-activation-environment = "${pkgs.dbus}/bin/dbus-update-activation-environment"; + configure-gtk = let + schema = pkgs.gsettings-desktop-schemas; + datadir = "${schema}/share/gsettings-schemas/${schema.name}"; + gsettings = "${pkgs.glib}/bin/gsettings"; + in pkgs.writeScriptBin "configure-gtk" '' + #!${shell} + + export XDG_DATA_DIRS=${datadir}:$XDG_DATA_DIRS + + ${gsettings} set org.gnome.desktop.interface gtk-theme 'gruvbox-dark' + ${gsettings} set org.gnome.desktop.interface icon-theme 'Papirus-Dark' + ${gsettings} set org.gnome.desktop.wm.preferences button-layout "" + ''; + in { xdg.dataFile.river_init = { executable = true; @@ -167,6 +181,7 @@ in { ${riverctl} spawn "${dbus-update-activation-environment} --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=river" ${riverctl} spawn "systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=river" + ${configure-gtk}/bin/configure-gtk trackball_names="pointer-21298-5120-Clearly_Superior_Technologies._CST_Laser_Trackball 21298:5120:Clearly_Superior_Technologies._CST_Laser_Trackball" for name in $trackball_names; do