Skip to content

Commit

Permalink
Merge pull request #262 from WayfireWM/showtouch
Browse files Browse the repository at this point in the history
Showtouch
  • Loading branch information
soreau authored Dec 18, 2024
2 parents b51f2e9 + 53029f0 commit b837395
Show file tree
Hide file tree
Showing 4 changed files with 465 additions and 0 deletions.
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

0 comments on commit b837395

Please sign in to comment.