diff options
| author | Mitchell Riedstra <mitch@riedstra.dev> | 2026-01-06 18:07:40 -0500 |
|---|---|---|
| committer | Mitchell Riedstra <mitch@riedstra.dev> | 2026-01-06 18:07:40 -0500 |
| commit | afe7820264c3e77f14f6a21ff46596e8d07554e0 (patch) | |
| tree | 6d019c4bc13ea1992fff5f7f23087213dc78d002 /river/init | |
| parent | 6d83c83a0b4228cdd2d785f23cf7faabc7a36f30 (diff) | |
| download | rivercfg-afe7820264c3e77f14f6a21ff46596e8d07554e0.tar.gz rivercfg-afe7820264c3e77f14f6a21ff46596e8d07554e0.tar.xz | |
Add support for el9. What a mess
Diffstat (limited to 'river/init')
| -rwxr-xr-x | river/init | 17 |
1 files changed, 15 insertions, 2 deletions
@@ -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 |
