add imv for viewing images when using river

feat/kile-v2
Ricard Illa 2023-02-12 16:16:34 +01:00
parent 3af81f9f85
commit 0bc5142a25
No known key found for this signature in database
GPG Key ID: F69A672B72E54902
1 changed files with 15 additions and 0 deletions

View File

@ -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