From 5b447f03030e6c3a05f372c08cc66d6cb065a9f1 Mon Sep 17 00:00:00 2001 From: Sunderland93 Date: Tue, 29 Aug 2023 19:40:03 +0400 Subject: [PATCH] Add Rofi launcher keybinding --- etc/skel/.config/river/keybindings.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/etc/skel/.config/river/keybindings.sh b/etc/skel/.config/river/keybindings.sh index 65bac80..57b6a17 100755 --- a/etc/skel/.config/river/keybindings.sh +++ b/etc/skel/.config/river/keybindings.sh @@ -2,14 +2,22 @@ # Use the "logo" key as the primary modifier mod="Mod4" + # Default terminal emulator term="alacritty" + +# Application launcher +launcher="rofi -show combi -combi-modi 'drun,run' -terminal $term -ssh-command '{terminal} {ssh-client} {host} [-p {port}]' -run-shell-command '{terminal} {cmd}' -show-icons" + # Volume changing notify volume_bar="/usr/share/river/scripts/volume-notify.sh" + # Brightness changing notify brightness_bar="/usr/share/river/scripts/brightness-notify.sh" + # Screenshot notify screenshot_notify="[[ $(wl-paste -l) == "image/png" ]] && notify-send "Screenshot copied to clipboard"" + # Calculate step to change brightness brightness_step="echo $(( $(light -Mr) / 100 * 5 < 1 ? 1 : $(( $(light -Mr) / 100 * 5 )) ))" @@ -20,6 +28,9 @@ riverctl map normal "$mod" Print spawn "/usr/bin/river-grimshot save area - | sw # $mod+Shift+Return to start an instance of terminal riverctl map normal $mod+Shift Return spawn $term +# $mod+D to start an instance of application launcher +riverctl map normal $mod D spawn "$launcher" + # $mod+Q to close the focused view riverctl map normal $mod Q close