add imv for viewing images when using river
parent
3af81f9f85
commit
0bc5142a25
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue