From afe7820264c3e77f14f6a21ff46596e8d07554e0 Mon Sep 17 00:00:00 2001 From: Mitchell Riedstra Date: Tue, 6 Jan 2026 18:07:40 -0500 Subject: Add support for el9. What a mess --- river/init | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'river/init') diff --git a/river/init b/river/init index 91add4f..d61ed23 100755 --- a/river/init +++ b/river/init @@ -1,6 +1,10 @@ #!/bin/sh +export XDG_CURRENT_DESKTOP=river +RIVERWM_BASE="${RIVERWM_BASE:-$HOME/.local/opt/river}" XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-$HOME/.config}" +export SSH_ASKPASS="${XDG_CONFIG_HOME}/river/bemenu_askpass_helper" +export SSH_ASKPASS_REQUIRE=force bmenu_helper="$XDG_CONFIG_HOME/river/bemenu_helper" # This is the example configuration file for river. # @@ -186,7 +190,7 @@ riverctl map normal Super+Shift Minus spawn "${XDG_CONFIG_HOME}/river/padding_he riverctl map normal Super+Control L spawn swaylock riverctl map normal Super D spawn "$bmenu_helper "bemenu-run -riverctl map normal Super B spawn 'pkill -SIGUSR1 waybar' +riverctl map normal Super B spawn "sh -c 'if pgrep waybar; then pkill waybar ; else waybar & fi'" riverctl focus-follows-cursor normal riverctl map normal Super+Shift P spawn 'grim /tmp/screenshot_$(date +%s).png' @@ -214,11 +218,20 @@ if ! pgrep swaybg >/dev/null 2>&1 ; then echo "" # swaybg -i .wallpaper.jpg & fi - +# # If Chromium dialogs aren't working these are suspect dbus-update-activation-environment --systemd WAYLAND_DISPLAY "XDG_CURRENT_DESKTOP=$XDG_CURRENT_DESKTOP" systemctl --user restart xdg-desktop-portal +# So.... if we've compiled the portal by hand we're going to now run it +if [ -d "$RIVERWM_BASE" ] ; then + _portal="$RIVERWM_BASE/libexec/xdg-desktop-portal" + [ -x "$_portal" ] && sh -c "$_portal"' --replace' & + + _portal="$RIVERWM_BASE/libexec/xdg-desktop-portal-wlr" + [ -x "$_portal" ] && sh -c "$_portal"' --replace' & +fi + # I hate calling this directly but the systemd unit is bugged on arch at # least, running it by hand appears to work just fine _gtk_portal=/usr/lib/xdg-desktop-portal-gtk -- cgit v1.2.3