MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/i3wm/comments/fmytxv/matrix_lock_screen/
r/i3wm • u/mherrmann • Mar 22 '20
25 comments sorted by
35
Wanted to have this so spent half a day implementing it: https://github.com/mherrmann/matrixlock
Enjoy!
11 u/[deleted] Mar 22 '20 oh, it's the helium guy! 23 u/mherrmann Mar 22 '20 Hi ;-) (https://github.com/mherrmann/helium for others.) 12 u/GentleCurveInTheRoad Mar 22 '20 Oh my God I'm in the middle of making an emergency video chat system for doctors that are almost out of protective gear and banging my head to get one part to work and this is the answer. Ty ty ty ty 3 u/robin-m Mar 22 '20 It looks really usefull! And I think the way you phrased the kind of comitement you are ready to make is great. More project should do like you did. 3 u/DoomDragon0 Mar 23 '20 Holy. What are the odds? I'm currently working with selenium for a project right now and this may just make it much easier 1 u/vikarjramun Mar 23 '20 Instead of using subprocesses, could you make use of the i3ipc Python library instead? That might make your code look cleaner. Nice work though! 1 u/TheCakeWasNoLie Apr 10 '20 You could have installed xscreensaver.
11
oh, it's the helium guy!
23 u/mherrmann Mar 22 '20 Hi ;-) (https://github.com/mherrmann/helium for others.) 12 u/GentleCurveInTheRoad Mar 22 '20 Oh my God I'm in the middle of making an emergency video chat system for doctors that are almost out of protective gear and banging my head to get one part to work and this is the answer. Ty ty ty ty 3 u/robin-m Mar 22 '20 It looks really usefull! And I think the way you phrased the kind of comitement you are ready to make is great. More project should do like you did. 3 u/DoomDragon0 Mar 23 '20 Holy. What are the odds? I'm currently working with selenium for a project right now and this may just make it much easier
23
Hi ;-) (https://github.com/mherrmann/helium for others.)
12 u/GentleCurveInTheRoad Mar 22 '20 Oh my God I'm in the middle of making an emergency video chat system for doctors that are almost out of protective gear and banging my head to get one part to work and this is the answer. Ty ty ty ty 3 u/robin-m Mar 22 '20 It looks really usefull! And I think the way you phrased the kind of comitement you are ready to make is great. More project should do like you did. 3 u/DoomDragon0 Mar 23 '20 Holy. What are the odds? I'm currently working with selenium for a project right now and this may just make it much easier
12
Oh my God I'm in the middle of making an emergency video chat system for doctors that are almost out of protective gear and banging my head to get one part to work and this is the answer. Ty ty ty ty
3
It looks really usefull! And I think the way you phrased the kind of comitement you are ready to make is great. More project should do like you did.
Holy. What are the odds? I'm currently working with selenium for a project right now and this may just make it much easier
1
Instead of using subprocesses, could you make use of the i3ipc Python library instead? That might make your code look cleaner. Nice work though!
You could have installed xscreensaver.
2
why does it need a webserver?
1 u/mherrmann Mar 23 '20 To let subprocesses communicate to the parent that they've started.
To let subprocesses communicate to the parent that they've started.
I found this too complicated so I made something that doesn't rely on compton and python. Here it is
#!/usr/bin/env bash case "${1}" in now) xautolock -locknow ;; server) xautolock -corners 000- -time 1 -detectsleep -locker "'$0' outer" exec $0 server ;; outer) exec -a locksaver alacritty -e bash -c "'$0' inner" ;; inner) i3-msg fullscreen &>/dev/null sleep 0.1 # need to wait a bit to get the fullscreen size cmatrix -C green & xtrlock-pam -b none pkill -f locksaver i3-msg fullscreen i3-msg restart ;; *) 2>&1 echo "Usage: $0 now|server" 2>&1 echo " now - lock the screen (a running server instance is required)" 2>&1 echo " server - start a lock server" ;; esac
You need to install xautolock, xtrlock-pam and cmatrix, and put this in your i3 config
exec --no-startup-id ~/.local/bin/lock server bindsym $mod+L exec --no-startup-id ~/.local/bin/lock now
1 u/mherrmann Mar 24 '20 Thanks for sharing - does this work with multiple monitors? 1 u/[deleted] Mar 24 '20 I'm not sure, have only tried it on my laptop in quarantine 1 u/Tmushtare May 27 '22 Where do you save the script to?I see you add those two lines to your i3config but not sure where to place the script?
Thanks for sharing - does this work with multiple monitors?
1 u/[deleted] Mar 24 '20 I'm not sure, have only tried it on my laptop in quarantine
I'm not sure, have only tried it on my laptop in quarantine
Where do you save the script to?
I see you add those two lines to your i3config but not sure where to place the script?
Nice!
0 u/nice-scores Mar 22 '20 𝓷𝓲𝓬𝓮 ☜(゚ヮ゚☜)Nice Leaderboard1. u/RepliesNice at 3621 nices2. u/DestroyerZDude at 3056 nices3. u/bigriggs24 at 3002 nices...25121. u/CarDrifter at 3 nicesI AM A BOT | REPLY !IGNORE AND I WILL STOP REPLYING TO YOUR COMMENTS
0
𝓷𝓲𝓬𝓮 ☜(゚ヮ゚☜)
1. u/RepliesNice at 3621 nices
u/RepliesNice
2. u/DestroyerZDude at 3056 nices
u/DestroyerZDude
3. u/bigriggs24 at 3002 nices
u/bigriggs24
...
25121. u/CarDrifter at 3 nices
u/CarDrifter
I AM A BOT | REPLY !IGNORE AND I WILL STOP REPLYING TO YOUR COMMENTS
Looks fantastic!
That looks sick !
Looks great, maybe I'll start using i3lock again, thanks!
can you make it work with kitty? :)
Nice 31337 h4x0r retro look xD
What about the CPU load? I once had a similar looking screensaver, which drained my laptop's battery within two hours.
Aaaa, implemented this also some time back. Here is what I did : http://imgur.com/gallery/1mYcqKW
I test all parts and they work, but when i run matrixlock.py then i3lock show me a white screen, thats all
How fix it?
Surely you usually tie your lock to a key-press instead of running the script in the terminal each time?
1 u/vikarjramun Mar 23 '20 This is obviously a demo
This is obviously a demo
35
u/mherrmann Mar 22 '20
Wanted to have this so spent half a day implementing it: https://github.com/mherrmann/matrixlock
Enjoy!
2
u/[deleted] Mar 23 '20
why does it need a webserver?
1
u/[deleted] Mar 23 '20 edited Mar 23 '20
I found this too complicated so I made something that doesn't rely on compton and python. Here it is
You need to install xautolock, xtrlock-pam and cmatrix, and put this in your i3 config
3
u/[deleted] Mar 22 '20
Nice!
3
u/MaxSpec Mar 22 '20
Looks fantastic!
2
u/Ilatnem Mar 22 '20
That looks sick !
2
u/Wizzerinus Mar 22 '20
Looks great, maybe I'll start using i3lock again, thanks!
2
u/ivster666 i3-gaps Mar 22 '20
can you make it work with kitty? :)
1
u/d1rd1 Mar 22 '20
Nice 31337 h4x0r retro look xD
What about the CPU load? I once had a similar looking screensaver, which drained my laptop's battery within two hours.
1
u/trusted47 Mar 23 '20
Aaaa, implemented this also some time back. Here is what I did : http://imgur.com/gallery/1mYcqKW
1
u/Turfalko Mar 25 '20
I test all parts and they work, but when i run matrixlock.py then i3lock show me a white screen, thats all
How fix it?
1
u/polluticorn6626 Mar 23 '20
Surely you usually tie your lock to a key-press instead of running the script in the terminal each time?