Comments (3)
It should be possible to script this. Start swaylock in the background, send SIGUSR1 to swaylock after the timeout.
Note, I am not familiar with RSI/OOS.
from swaylock.
It should be possible to script this. Start swaylock in the background, send SIGUSR1 to swaylock after the timeout.
Indeed. Covered well at swaywm/sway#7665. I should be able to script this.
Note, I am not familiar with RSI/OOS.
You're lucky. It's not pleasant. https://rsi.org.au/index.php/what-is-rsi-and-oos/
from swaylock.
For anyone interested in doing the same (this comes well recommended), I currently have the following crontab
entry:
# OOS break: pause every 12m for 10s
*/12 * * * * [ $(pgrep -c swaylock) = 0 ] && ( XDG_RUNTIME_DIR=/run/user/$(id -u) WAYLAND_DISPLAY=wayland-1 /usr/local/bin/swaylock --font break && sleep 10 && pkill -f -USR1 "swaylock --font break" )
I'm sure improvements can be made, but this suits my needs reasonably well.
from swaylock.
Related Issues (20)
- Mouse cursor visible in swaylock HOT 7
- [feature-request] Would it be possible to add the current time in the middle of circle or the current username HOT 4
- Swaylock prevents gnome calls from playing ringtone HOT 4
- Screencopy failed on hyprland dpms on HOT 1
- Caps Lock indicator colors not used HOT 3
- Swaylock blocked and cannot interact with HOT 6
- All `finished` events are resulting in an `exit(2)`, when the protocol states otherwise HOT 6
- Missing ext-session-lock-v1 HOT 3
- the config file does not work after the update HOT 3
- [Feature Request] icon overlay on lock screen similar to `13lockr` HOT 1
- Add include directive HOT 1
- Swaylock does not process any given arguments HOT 7
- Image upside down (fixed on swaybg) HOT 1
- Moonlight still visible while locked HOT 1
- Error in Hyprland. swaylock: ../swaylock-1.7.2/main.c:414: join_args: Assertion `argc > 0' failed. HOT 2
- Unlock signal isn't sent to swayidle HOT 3
- Support Vector Graphics [Feature Request] HOT 5
- Add a warning to the readme that tty switching will still work HOT 1
- Request: add an example config
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swaylock.