From a43e2cc4bd168ba8b49cbb86fd880c2e5aa943f6 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Wed, 7 Jun 2023 10:32:26 +0200 Subject: [PATCH] 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. --- desktop/.config/river/init | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/desktop/.config/river/init b/desktop/.config/river/init index 33cc3e7..b8afca1 100755 --- a/desktop/.config/river/init +++ b/desktop/.config/river/init @@ -39,7 +39,7 @@ riverctl map normal $mod+Shift C close # Open terminal riverctl map normal $mod Return spawn "$term" # 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 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" # 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 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" # 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 riverctl map normal None Print spawn "screenshot"