Module: OmaGem::DSL::Misc
- Included in:
- Config
- Defined in:
- lib/omagem/dsl/misc.rb
Overview
Misc: reminders, screen capture, launch app, focus app, default agent.
Instance Method Summary collapse
- #focus_app(name) ⇒ Object
-
#reminder(minutes, message) ⇒ Object
Set a desktop notification reminder; minutes accepts decimals.
- #screenrecord(fullscreen: false, desktop_audio: false, microphone: false, webcam: false) ⇒ Object
-
#screenshot ⇒ Object
Full-screen screenshot saved to disk.
- #stop_screenrecord ⇒ Object
Instance Method Details
#focus_app(name) ⇒ Object
30 31 32 |
# File 'lib/omagem/dsl/misc.rb', line 30 def focus_app(name) run('hyprland', 'focus', 'app', name) end |
#reminder(minutes, message) ⇒ Object
Set a desktop notification reminder; minutes accepts decimals.
26 27 28 |
# File 'lib/omagem/dsl/misc.rb', line 26 def reminder(minutes, ) run('reminder', minutes.to_s, ) end |
#screenrecord(fullscreen: false, desktop_audio: false, microphone: false, webcam: false) ⇒ Object
12 13 14 15 16 17 18 19 |
# File 'lib/omagem/dsl/misc.rb', line 12 def screenrecord(fullscreen: false, desktop_audio: false, microphone: false, webcam: false) args = %w[capture screenrecording] args << '--fullscreen' if fullscreen args << '--with-desktop-audio' if desktop_audio args << '--with-microphone-audio' if microphone args << '--with-webcam' if webcam run(*args) end |
#screenshot ⇒ Object
Full-screen screenshot saved to disk.
8 9 10 |
# File 'lib/omagem/dsl/misc.rb', line 8 def screenshot run('capture', 'screenshot', 'fullscreen', 'save') end |
#stop_screenrecord ⇒ Object
21 22 23 |
# File 'lib/omagem/dsl/misc.rb', line 21 def stop_screenrecord run('capture', 'screenrecording', '--stop-recording') end |