river: Switch call to terminal to be more general

Switched the calls for the term variable mappings (opening
term, floating term, calculator, and so on) to make use of
the pretty much standard 'terminal -e' invocation to start
the terminal and execute something within it.

This newly works for wezterm since any release after
2022-12-26, which are now also on the Arch repositories
and will make the river init a tiny bit more portable
whenever wanting to switch to a different terminal.
This commit is contained in:
Marty Oehme 2023-06-07 10:32:26 +02:00
parent 60b89b6d30
commit a43e2cc4bd
Signed by: Marty
GPG key ID: EDBF2ED917B2EF6A

View file

@ -39,7 +39,7 @@ riverctl map normal $mod+Shift C close
# Open terminal # Open terminal
riverctl map normal $mod Return spawn "$term" riverctl map normal $mod Return spawn "$term"
# Open floating terminal # Open floating terminal
riverctl map normal $mod+Control Return spawn "$term start --class float" riverctl map normal $mod+Control Return spawn "$term -e --class float"
# Open run menu # Open run menu
riverctl map normal $mod Space spawn "bemenu-run" riverctl map normal $mod Space spawn "bemenu-run"
@ -61,7 +61,7 @@ riverctl map normal $mod+Shift O spawn "qutedmenu"
riverctl map normal $mod+Shift Space spawn "clipman pick --tool=bemenu" riverctl map normal $mod+Shift Space spawn "clipman pick --tool=bemenu"
# Open floating calculator # Open floating calculator
riverctl map normal $mod+Shift R spawn "$term start --class float -e qalc" riverctl map normal $mod+Shift R spawn "$term -e --class float qalc"
# Open emoji picker # Open emoji picker
riverctl map normal $mod+Shift E spawn "bemoji -nt" riverctl map normal $mod+Shift E spawn "bemoji -nt"
@ -77,7 +77,7 @@ riverctl map normal $mod+Shift S spawn 'flavourchoose'
riverctl map normal $mod+Shift P spawn "pass-pick" riverctl map normal $mod+Shift P spawn "pass-pick"
# File upload # File upload
riverctl map normal $mod+Shift U spawn "$term start --class float -e sharefile | xargs notify-send" riverctl map normal $mod+Shift U spawn "$term -e --class float sharefile | xargs notify-send"
# # Screenshot # # Screenshot
riverctl map normal None Print spawn "screenshot" riverctl map normal None Print spawn "screenshot"