sxmo_hook_contextment.sh: Add menu options for Alacritty
Signed-off-by: hazardchem <pthom44@live.com.au> Signed-off-by: Peter John Hartman <peterjohnhartman@gmail.com>
This commit is contained in:

committed by
Peter John Hartman

parent
237fc4e370
commit
ed62f3183b
@@ -203,7 +203,7 @@ case "$WMCLASS" in
|
||||
"
|
||||
WINNAME=St
|
||||
;;
|
||||
*foot*|*st*|*terminal*|org.gnome.vte.application)
|
||||
*foot*|*st*|*terminal*|org.gnome.vte.application|*alacritty*)
|
||||
# First we try to handle the app running inside the terminal:
|
||||
WMNAME="${1:-$(printf %s "$XPROPOUT" | grep title: | cut -d" " -f2- | tr '[:upper:]' '[:lower:]')}"
|
||||
if printf %s "$WMNAME" | grep -qi -E -w "(vi|vim|vis|nvim|neovim|kakoune)"; then
|
||||
@@ -455,6 +455,19 @@ case "$WMCLASS" in
|
||||
CHOICES="$icon_kbd Hotkeys ^ 0 ^ sxmo_appmenu.sh sthotkeys"
|
||||
WINNAME=Terminal
|
||||
;;
|
||||
*alacritty*)
|
||||
CHOICES="
|
||||
$icon_cpy Copy ^ 0 ^ sxmo_type -M Shift -M Ctrl c
|
||||
$icon_pst Paste ^ 0 ^ sxmo_type -M Shift -M Ctrl v
|
||||
$icon_vim VI Mode ^ 0 ^ sxmo_type -M Ctrl -M Shift -k Space
|
||||
$icon_fnd Search Forward ^ 0 ^ sxmo_type -M Ctrl -M Shift -k f
|
||||
$icon_fnd Search Backward ^ 0 ^ sxmo_type -M Ctrl -M Shift -k b
|
||||
$icon_aru Search Previous ^ 0 ^ sxmo_type -k Enter
|
||||
$icon_ard Search Next ^ 0 ^ sxmo_type -M Shift -k Enter
|
||||
$icon_kbd Hotkeys ^ 0 ^ sxmo_appmenu.sh sthotkeys
|
||||
"
|
||||
WINNAME=Alacritty
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
;;
|
||||
|
Reference in New Issue
Block a user