Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
489 changes: 489 additions & 0 deletions data/layouts/ansi.xml

Large diffs are not rendered by default.

2,158 changes: 2,158 additions & 0 deletions data/layouts/emoji.xml

Large diffs are not rendered by default.

30 changes: 30 additions & 0 deletions data/layouts/ether.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<requires lib="gtk" version="4.0" />
<object class="GtkBox" id="keyboard_main">
<child>
<object class="GtkScrolledWindow">
<property name="vexpand">true</property>
<property name="hexpand">true</property>
<child>
<object class="GtkFlowBox">
<property name="valign">start</property>
<property name="max-children-per-line">10</property>
<property name="min-children-per-line">5</property>
<property name="selection-mode">none</property>
<property name="row-spacing">4</property>
<property name="column-spacing">4</property>
<child>
<object class="GtkLabel">
<property name="label">ether</property>
<property name="width-request">50</property>
<property name="height-request">50</property>
<style><class name="emoji"/></style>
</object>
</child>
</object>
</child>
</object>
</child>
</object>
</interface>
480 changes: 480 additions & 0 deletions data/layouts/iso.xml

Large diffs are not rendered by default.

230 changes: 230 additions & 0 deletions data/layouts/numpad.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,230 @@
<?xml version='1.0' encoding='utf-8'?>
<interface>
<requires lib="gtk" version="4.0" />

<object class="GtkBox" id="keyboard_main">
<property name="orientation">vertical</property>
<property name="hexpand">true</property>
<property name="vexpand">true</property>
<child>
<object class="GtkGrid" id="numpad_grid">
<property name="halign">center</property>
<property name="valign">center</property>
<property name="row-spacing">6</property>
<property name="column-spacing">6</property>
<property name="vexpand">true</property>
<property name="column-homogeneous">True</property>
<property name="row-homogeneous">True</property>
<child>
<object class="GtkToggleButton">
<property name="width-request">50</property>
<property name="height-request">50</property>
<layout>
<property name="column">0</property>
<property name="row">0</property>
</layout>
<property name="name">KPNM</property>
</object>
</child>
<child>
<object class="GtkButton">
<property name="width-request">50</property>
<property name="height-request">50</property>
<layout>
<property name="column">1</property>
<property name="row">0</property>
</layout>
<property name="name">KPDV</property>
</object>
</child>
<child>
<object class="GtkButton">
<property name="width-request">50</property>
<property name="height-request">50</property>
<layout>
<property name="column">2</property>
<property name="row">0</property>
</layout>
<property name="name">KPMU</property>
</object>
</child>
<child>
<object class="GtkButton">
<property name="width-request">50</property>
<property name="height-request">50</property>
<layout>
<property name="column">3</property>
<property name="row">0</property>
</layout>
<property name="name">KPSU</property>
</object>
</child>
<child>
<object class="GtkButton">
<property name="width-request">50</property>
<property name="height-request">50</property>
<layout>
<property name="column">0</property>
<property name="row">1</property>
</layout>
<property name="name">KP7</property>
</object>
</child>
<child>
<object class="GtkButton">
<property name="width-request">50</property>
<property name="height-request">50</property>
<layout>
<property name="column">1</property>
<property name="row">1</property>
</layout>
<property name="name">KP8</property>
</object>
</child>
<child>
<object class="GtkButton">
<property name="width-request">50</property>
<property name="height-request">50</property>
<layout>
<property name="column">2</property>
<property name="row">1</property>
</layout>
<property name="name">KP9</property>
</object>
</child>
<child>
<object class="GtkButton">
<property name="width-request">50</property>
<property name="height-request">106</property>
<layout>
<property name="column">3</property>
<property name="row">1</property>
<property name="row-span">2</property>
</layout>
<property name="name">KPAD</property>
</object>
</child>
<child>
<object class="GtkButton">
<property name="width-request">50</property>
<property name="height-request">50</property>
<layout>
<property name="column">0</property>
<property name="row">2</property>
</layout>
<property name="name">KP4</property>
</object>
</child>
<child>
<object class="GtkButton">
<property name="width-request">50</property>
<property name="height-request">50</property>
<layout>
<property name="column">1</property>
<property name="row">2</property>
</layout>
<property name="name">KP5</property>
</object>
</child>
<child>
<object class="GtkButton">
<property name="width-request">50</property>
<property name="height-request">50</property>
<layout>
<property name="column">2</property>
<property name="row">2</property>
</layout>
<property name="name">KP6</property>
</object>
</child>
<child>
<object class="GtkButton">
<property name="width-request">50</property>
<property name="height-request">50</property>
<layout>
<property name="column">0</property>
<property name="row">3</property>
</layout>
<property name="name">KP1</property>
</object>
</child>
<child>
<object class="GtkButton">
<property name="width-request">50</property>
<property name="height-request">50</property>
<layout>
<property name="column">1</property>
<property name="row">3</property>
</layout>
<property name="name">KP2</property>
</object>
</child>
<child>
<object class="GtkButton">
<property name="width-request">50</property>
<property name="height-request">50</property>
<layout>
<property name="column">2</property>
<property name="row">3</property>
</layout>
<property name="name">KP3</property>
</object>
</child>
<child>
<object class="GtkButton">
<property name="width-request">50</property>
<property name="height-request">106</property>
<layout>
<property name="column">3</property>
<property name="row">3</property>
<property name="row-span">2</property>
</layout>
<property name="name">KPEN</property>
</object>
</child>
<child>
<object class="GtkButton">
<property name="width-request">106</property>
<property name="height-request">50</property>
<layout>
<property name="column">0</property>
<property name="row">4</property>
<property name="column-span">2</property>
</layout>
<property name="name">KP0</property>
</object>
</child>
<child>
<object class="GtkButton">
<property name="width-request">50</property>
<property name="height-request">50</property>
<layout>
<property name="column">2</property>
<property name="row">4</property>
</layout>
<property name="name">KPDL</property>
</object>
</child>
<child>
<object class="GtkButton">
<layout>
<property name="column">5</property>
<property name="row">3</property>
<property name="row-span">2</property>
</layout>
<property name="name">ESC</property>
</object>
</child>
<child>
<object class="GtkButton">
<layout>
<property name="column">5</property>
<property name="row">0</property>
</layout>
<property name="name">BKSP</property>
</object>
</child>
</object>
</child>
</object>
</interface>
6 changes: 6 additions & 0 deletions data/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,10 @@ install_data('wf-locker', install_dir: get_option('sysconfdir') / 'pam.d')

install_data('xdpw/wayfire', install_dir: get_option('sysconfdir') / 'xdg/xdg-desktop-portal-wlr')

install_data(join_paths('layouts', 'ansi.xml'), install_dir: layout_dir)
install_data(join_paths('layouts', 'iso.xml'), install_dir: layout_dir)
install_data(join_paths('layouts', 'emoji.xml'), install_dir: layout_dir)
install_data(join_paths('layouts', 'ether.xml'), install_dir: layout_dir)
install_data(join_paths('layouts', 'numpad.xml'), install_dir: layout_dir)

subdir('css')
13 changes: 13 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,14 @@ pipewire = dependency('libpipewire-0.3', required: get_option('wp-mixer-widget')
wireplumber = dependency('wireplumber-0.5', required: get_option('wp-mixer-widget'))
ddcutil = dependency('ddcutil', required: get_option('ddcutil'))
dbusmenu_gtk = dependency('dbusmenu-glib-0.4')
xkb = dependency('xkbcommon')
xkbregistry = dependency('xkbregistry')
json = subproject('wf-json').get_variable('wfjson')
openssl = dependency('openssl')
gbm = dependency('gbm', required: false)
drm = dependency('libdrm', required: false)
enchant = dependency('enchant-2', required: false)
llama = dependency('llama', required: false)

if get_option('wayland-logout') == true
wayland_logout = subproject('wayland-logout')
Expand Down Expand Up @@ -62,6 +65,14 @@ if ddcutil.found()
add_project_arguments('-DHAVE_DDCUTIL=1', language: 'cpp')
endif

if enchant.found()
add_project_arguments('-DHAVE_ENCHANT=1', language: 'cpp')
endif

if llama.found()
add_project_arguments('-DHAVE_LLAMA=1', language: 'cpp')
endif

needs_libinotify = ['freebsd', 'dragonfly'].contains(host_machine.system())
libinotify = dependency('libinotify', required: needs_libinotify)

Expand All @@ -73,12 +84,14 @@ add_project_arguments(
resource_dir = join_paths(get_option('prefix'), 'share', 'wf-shell')
metadata_dir = join_paths(resource_dir, 'metadata')
sysconf_dir = join_paths(get_option('prefix'), get_option('sysconfdir'))
layout_dir = join_paths(get_option('prefix'), 'share', 'wf-osk', 'layouts')

icon_dir = join_paths(get_option('prefix'), 'share', 'wf-shell', 'icons')
add_project_arguments('-DICONDIR="' + icon_dir + '"', language: 'cpp')
add_project_arguments('-DRESOURCEDIR="' + resource_dir + '"', language: 'cpp')
add_project_arguments('-DMETADATA_DIR="' + metadata_dir + '"', language: 'cpp')
add_project_arguments('-DSYSCONF_DIR="' + sysconf_dir + '"', language: 'cpp')
add_project_arguments('-DLAYOUT_DIR="' + layout_dir + '"', language: 'cpp')

subdir('metadata')
subdir('proto')
Expand Down
9 changes: 5 additions & 4 deletions metadata/meson.build
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
configure_file(input: 'background.xml.in', output: 'background.xml',
configuration: {
'wallpaper': join_paths(resource_dir, 'backgrounds')
configuration: {
'wallpaper': join_paths(resource_dir, 'backgrounds')
},
install: true,
install_dir: metadata_dir)
install: true,
install_dir: metadata_dir)

install_data('osk.xml', install_dir: metadata_dir)
install_data('dock.xml', install_dir: metadata_dir)
install_data('panel.xml', install_dir: metadata_dir)
install_data('locker.xml', install_dir: metadata_dir)
Loading
Loading