Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Showtouch #262

Merged
merged 6 commits into from
Dec 18, 2024
Merged
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
1 change: 1 addition & 0 deletions metadata/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ install_data('mag.xml', install_dir: wayfire.get_variable(pkgconfig: 'metadatadi
install_data('obs.xml', install_dir: wayfire.get_variable(pkgconfig: 'metadatadir'))
install_data('pin-view.xml', install_dir: wayfire.get_variable(pkgconfig: 'metadatadir'))
install_data('showrepaint.xml', install_dir: wayfire.get_variable(pkgconfig: 'metadatadir'))
install_data('showtouch.xml', install_dir: wayfire.get_variable(pkgconfig: 'metadatadir'))
install_data('view-shot.xml', install_dir: wayfire.get_variable(pkgconfig: 'metadatadir'))
install_data('water.xml', install_dir: wayfire.get_variable(pkgconfig: 'metadatadir'))
install_data('window-zoom.xml', install_dir: wayfire.get_variable(pkgconfig: 'metadatadir'))
Expand Down
33 changes: 33 additions & 0 deletions metadata/showtouch.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?xml version="1.0"?>
<wayfire>
<plugin name="showtouch">
<_short>Showtouch</_short>
<_long>Render touchscreen fingers</_long>
<category>Utility</category>
<option name="finger_color" type="color">
<_short>Finger Color</_short>
<_long>Color used for rendering finger touches</_long>
<default>0.0 0.5 0.0 0.5</default>
</option>
<option name="center_color" type="color">
<_short>Center Color</_short>
<_long>Color used for rendering computed center of fingers</_long>
<default>0.5 0.0 0.5 0.5</default>
</option>
<option name="touch_radius" type="int">
<_short>Touch Radius</_short>
<_long>Radius used to size the finger touch point renderings</_long>
<default>25</default>
</option>
<option name="touch_duration" type="animation">
<_short>Touch Duration</_short>
<_long>Milliseconds the visual finger indicator will stay on screen</_long>
<default>250ms sigmoid</default>
</option>
<option name="toggle" type="activator">
<_short>Toggle</_short>
<_long>Toggles the finger indicators off and on</_long>
<default>&lt;super&gt; &lt;ctrl&gt; KEY_S</default>
</option>
</plugin>
</wayfire>
4 changes: 4 additions & 0 deletions src/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ showrepaint = shared_module('showrepaint', 'showrepaint.cpp',
dependencies: [wayfire],
install: true, install_dir: join_paths(get_option('libdir'), 'wayfire'))

showtouch = shared_module('showtouch', 'showtouch.cpp',
dependencies: [wayfire],
install: true, install_dir: join_paths(get_option('libdir'), 'wayfire'))

view_shot = shared_module('view-shot', 'view-shot.cpp',
dependencies: [wayfire],
install: true, install_dir: join_paths(get_option('libdir'), 'wayfire'))
Expand Down
Loading
Loading