dmenu clone.
launch with lists desktop files.
t4 [options]
With pipes works like dmenu and print selection to stdout.
j4-dmenu-desktop --dmenu=t4
dmenu_path | t4 | sh
ls /usr/bin | t4
depend: gtk+3
compile:
git clone https://github.com/athrungithub/t4-menu
meson build
ninja -C build
sudo ninja -C build install
-b prompt at bottom window.
-x x position.
-y y position.
-w wide window.
-l lines (vertical mode).
-f font.
-p prompt string.
-t terminal
-w windowid X11.
-n no exit on lost focus.
-v version.
--nc normal foreground color.
--nb normal background color.
--fc focused color.
--fb focused background color.
--pc prompt color.
--pb prompt background color.
--ec entry color.
--eb entry background color.
Diff with dmenu next item
Next: C-n, M-l, C-Rigth, Tab, Down
Previus: C-p, M-h, C-Left, Shift-Tab, Up
Page Next: M-n, M-j, Page-Down
Page Previus: M-p, M-k, Page-Up
Home: M-g, Home
End: M-G, End
Return, C-j, C-m: Confirm Selection.
C-Return: Confirm Selection and continues.
Shift-Return: Copy selection to the input field.
Escape, C-g, C-c: Exit without selecting an item, returning failure.
C-b Left
C-f Right
M-b Move cursor to the start of the current word
M-f Move cursor to the end of the current word
C-a Home
C-e End
C-y Paste primary
C-d Delete
M-d Delete word
C-k Delete line right
C-u Delete line left
C-h Backspace
Precedence W > x
a) horizontal mode: (default)
x > screen -> to right
W > screen -> full wide
b) listing mode:
l > screen lines -> full height
For sway view sample config for testing, copy to $HOME/sway/config.d/
Important!. Set floating_minimun_size 75 x 12 (height font) border none | border pixel 1
[ 〈font-style〉 || 〈font-variant〉 || 〈font-weight〉 || 〈font-stretch〉 ]? 〈font-size〉 〈font-family〉
Color: from gtk-doc CSS allows to specify colors in various ways, using numeric values or names from a predefined list of colors.
〈color〉 = currentColor | transparent | 〈color name〉 | 〈rgb color〉 | 〈rgba color〉 | 〈hex color〉 | 〈gtk color〉
〈rgb color〉 = rgb( 〈number〉, 〈number〉, 〈number〉 ) | rgb( 〈percentage〉, 〈percentage〉, 〈percentage〉 )
〈rgba color〉 = rgba( 〈number〉, 〈number〉, 〈number〉, 〈alpha value〉 ) | rgba( 〈percentage〉, 〈percentage〉, 〈percentage〉, 〈alpha value〉 )
〈hex color〉 = #〈hex digits〉
〈alpha value〉 = 〈number〉, clamped to values between 0 and 1
t4 no grab keyboard, for default is quit on lost focus
Use -n for persistent. For example if use embed en X11 app.
w windowid