mirror of
https://github.com/lxsang/meta-rpi-diya.git
synced 2025-01-29 15:22:48 +01:00
add and use wtype
This commit is contained in:
parent
9565699a58
commit
f84ca2b690
@ -33,7 +33,7 @@ IMAGE_INSTALL:append = "libcurl \
|
||||
glew \
|
||||
freetype \
|
||||
fontconfig \
|
||||
librsvg librsvg-gtk rsvg \
|
||||
librsvg librsvg-gtk \
|
||||
gdk-pixbuf \
|
||||
gtk-layer-shell \
|
||||
mesa \
|
||||
@ -51,7 +51,7 @@ IMAGE_INSTALL:append = "libcurl \
|
||||
rsync \
|
||||
coreutils \
|
||||
wayland wayland-protocols \
|
||||
labwc foot swaybg swayidle swaylock wlr-randr wlopm sfwbar tofi \
|
||||
labwc foot swaybg swayidle swaylock wlr-randr wlopm sfwbar tofi wtype \
|
||||
gdbserver \
|
||||
"
|
||||
|
||||
|
@ -10,7 +10,7 @@ switcher {
|
||||
|
||||
function("SfwbarInit") {
|
||||
SetBarId "bar-0"
|
||||
SetLayer "top"
|
||||
SetLayer "bottom"
|
||||
}
|
||||
|
||||
function("ToggleMinimize") {
|
||||
@ -72,10 +72,10 @@ function("ShowDesktop") {
|
||||
}
|
||||
|
||||
menu("winops") {
|
||||
item("focus", Focus );
|
||||
item("close", Close );
|
||||
item("(un)minimize", Function "ToggleMinimize" );
|
||||
item("(un)maximize", Function "ToggleMaximize" );
|
||||
item("Focus", Focus );
|
||||
item("Close", Close );
|
||||
item("Toggle minimize", Function "ToggleMinimize" );
|
||||
item("Toggle maximize", Function "ToggleMaximize" );
|
||||
}
|
||||
|
||||
# Panel layout
|
||||
@ -84,7 +84,12 @@ layout {
|
||||
button {
|
||||
style = "launcher"
|
||||
value = "/usr/share/icons/Adwaita/scalable/actions/view-app-grid-symbolic.svg"
|
||||
tooltip = "Quick menu"
|
||||
action = Exec "wtype -M alt ' ' -m alt"
|
||||
}
|
||||
button {
|
||||
style = "launcher"
|
||||
value = "/usr/share/icons/Adwaita/scalable/actions/system-run-symbolic.svg"
|
||||
tooltip = "Quick run"
|
||||
action = Exec "bash -c \"`tofi-drun`\""
|
||||
}
|
||||
button {
|
||||
|
17
recipes-support/wtype/wtype_git.bb
Normal file
17
recipes-support/wtype/wtype_git.bb
Normal file
@ -0,0 +1,17 @@
|
||||
DESCRIPTION = "virtual key event for wayland"
|
||||
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
|
||||
|
||||
|
||||
DEPENDS = "wayland wayland-native wayland-protocols-native wayland-protocols libxkbcommon"
|
||||
|
||||
SRCREV = "${AUTOREV}"
|
||||
|
||||
SRC_URI = "git://github.com/atx/wtype.git;protocol=https;branch=master"
|
||||
|
||||
S="${WORKDIR}/git"
|
||||
|
||||
inherit meson pkgconfig
|
||||
|
||||
EXTRA_OEMESON += "--buildtype release"
|
@ -3,44 +3,47 @@
|
||||
<openbox_menu>
|
||||
|
||||
<menu id="client-menu">
|
||||
<item label="Minimize">
|
||||
<action name="Iconify" />
|
||||
</item>
|
||||
<item label="Maximize">
|
||||
<action name="ToggleMaximize" />
|
||||
</item>
|
||||
<item label="Fullscreen">
|
||||
<action name="ToggleFullscreen" />
|
||||
</item>
|
||||
<item label="AlwaysOnTop">
|
||||
<action name="ToggleAlwaysOnTop" />
|
||||
</item>
|
||||
<item label="Close">
|
||||
<action name="Close"/>
|
||||
</item>
|
||||
<item label="Minimize">
|
||||
<action name="Iconify" />
|
||||
</item>
|
||||
<item label="Maximize">
|
||||
<action name="ToggleMaximize" />
|
||||
</item>
|
||||
<item label="Fullscreen">
|
||||
<action name="ToggleFullscreen" />
|
||||
</item>
|
||||
<item label="Always on top">
|
||||
<action name="ToggleAlwaysOnTop" />
|
||||
</item>
|
||||
<item label="Close">
|
||||
<action name="Close"/>
|
||||
</item>
|
||||
</menu>
|
||||
<menu id="root-menu">
|
||||
<item label="Terminal">
|
||||
<action name="Execute" command="foot -t xterm-256color" />
|
||||
</item>
|
||||
<item label="Reconfigure">
|
||||
<action name="Reconfigure" />
|
||||
</item>
|
||||
<item label="Exit">
|
||||
<action name="Exit" />
|
||||
</item>
|
||||
<item label="Poweroff">
|
||||
<action name="Execute" command="sudo /sbin/halt" />
|
||||
</item>
|
||||
<item label="Reconfigure">
|
||||
<action name="Reconfigure" />
|
||||
</item>
|
||||
<item label="Exit">
|
||||
<action name="Exit" />
|
||||
</item>
|
||||
<item label="Reboot">
|
||||
<action name="Execute" command="sudo /sbin/reboot" />
|
||||
</item>
|
||||
<item label="Power off">
|
||||
<action name="Execute" command="sudo /sbin/halt" />
|
||||
</item>
|
||||
</menu>
|
||||
|
||||
<menu id="some-custom-menu">
|
||||
<item label="Reconfigure">
|
||||
<action name="Reconfigure" />
|
||||
</item>
|
||||
<item label="Exit">
|
||||
<action name="Exit" />
|
||||
</item>
|
||||
<item label="Reconfigure">
|
||||
<action name="Reconfigure" />
|
||||
</item>
|
||||
<item label="Exit">
|
||||
<action name="Exit" />
|
||||
</item>
|
||||
</menu>
|
||||
|
||||
</openbox_menu>
|
||||
|
@ -19,6 +19,14 @@
|
||||
|
||||
<keyboard>
|
||||
<default />
|
||||
<keybind key="A-Tab">
|
||||
<action name="NextWindow" />
|
||||
</keybind>
|
||||
<keybind key="A-Space">
|
||||
<action name="ShowMenu">
|
||||
<menu>root-menu</menu>
|
||||
</action>
|
||||
</keybind>
|
||||
<!-- Use a different terminal emulator -->
|
||||
<keybind key="W-Return">
|
||||
<action name="Execute" command="foot" />
|
||||
@ -42,4 +50,9 @@
|
||||
</context>
|
||||
</mouse>
|
||||
|
||||
<windowRules>
|
||||
<windowRule identifier="*">
|
||||
<action name="Maximize"/>
|
||||
</windowRule>
|
||||
</windowRules>
|
||||
</labwc_config>
|
||||
|
Loading…
x
Reference in New Issue
Block a user