Add Rofi launcher keybinding
This commit is contained in:
parent
5aea915ec5
commit
5b447f0303
1 changed files with 11 additions and 0 deletions
|
@ -2,14 +2,22 @@
|
||||||
|
|
||||||
# Use the "logo" key as the primary modifier
|
# Use the "logo" key as the primary modifier
|
||||||
mod="Mod4"
|
mod="Mod4"
|
||||||
|
|
||||||
# Default terminal emulator
|
# Default terminal emulator
|
||||||
term="alacritty"
|
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 changing notify
|
||||||
volume_bar="/usr/share/river/scripts/volume-notify.sh"
|
volume_bar="/usr/share/river/scripts/volume-notify.sh"
|
||||||
|
|
||||||
# Brightness changing notify
|
# Brightness changing notify
|
||||||
brightness_bar="/usr/share/river/scripts/brightness-notify.sh"
|
brightness_bar="/usr/share/river/scripts/brightness-notify.sh"
|
||||||
|
|
||||||
# Screenshot notify
|
# Screenshot notify
|
||||||
screenshot_notify="[[ $(wl-paste -l) == "image/png" ]] && notify-send "Screenshot copied to clipboard""
|
screenshot_notify="[[ $(wl-paste -l) == "image/png" ]] && notify-send "Screenshot copied to clipboard""
|
||||||
|
|
||||||
# Calculate step to change brightness
|
# Calculate step to change brightness
|
||||||
brightness_step="echo $(( $(light -Mr) / 100 * 5 < 1 ? 1 : $(( $(light -Mr) / 100 * 5 )) ))"
|
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
|
# $mod+Shift+Return to start an instance of terminal
|
||||||
riverctl map normal $mod+Shift Return spawn $term
|
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
|
# $mod+Q to close the focused view
|
||||||
riverctl map normal $mod Q close
|
riverctl map normal $mod Q close
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue