Hello:
I would like to be able to lock my screen with a single click (or at least 2, like alt + something) rather than using full fluxbox menu and go through several submenus (including a great variety of screen savers).
However, I have no clue how to set this up. Any suggestions would be appreciated.
thanks.
Pedro
topic title: Locking screen with single click
9 posts
• Page 1 of 1
-
Posts: 903
- Joined: 11 Oct 2008
-
anticapitalista
Posts: 5,955
- Site Admin
- Joined: 11 Sep 2007
#2
In fluxbox menu
exit-Lock screen
exit-Lock screen
-
Posts: 903
- Joined: 11 Oct 2008
#3
Thanks Anti! I guess I should have paid more attention to the exit options. At any rate, it's much better than the way I was doing it before.
Pedro
Pedro
-
anticapitalista
Posts: 5,955
- Site Admin
- Joined: 11 Sep 2007
#4
If you want to use keys, edit your fluxbox keys file with something like this:
Mod4 s :ExecCommand xlock -remote -nice 19 -mode star -rock
Mod4=windows key
The xlock part can be whatever one you prefer.
(See /etc/X11/fluxbox/fluxbox-menu)
Mod4 s :ExecCommand xlock -remote -nice 19 -mode star -rock
Mod4=windows key
The xlock part can be whatever one you prefer.
(See /etc/X11/fluxbox/fluxbox-menu)
-
Posts: 903
- Joined: 11 Oct 2008
#5
Thanks Anti. For some reason I can't get the keys menu to do what I'm telling it to do. I've tried several different conformations (Control, Mod1, + key) and none seem to work.
So, I edited the fluxbox menu to show a lockscreen option and I just typed xlock for the command.
Seems to work, but I did not include the rest of your command line with xlock. Any problems by not doing that?
thanks.
Pedro
So, I edited the fluxbox menu to show a lockscreen option and I just typed xlock for the command.
Seems to work, but I did not include the rest of your command line with xlock. Any problems by not doing that?
thanks.
Pedro
-
anticapitalista
Posts: 5,955
- Site Admin
- Joined: 11 Sep 2007
#6
Make sure you get the syntax right in keys. Tou will also need to logout and back in.
Post your ~/.fluxbox/keys file.
No problem with your menu entry at all. When it locks, it will alternate the screen saver, whereas the one I posted uses only one screensaver.
Post your ~/.fluxbox/keys file.
No problem with your menu entry at all. When it locks, it will alternate the screen saver, whereas the one I posted uses only one screensaver.
-
Posts: 903
- Joined: 11 Oct 2008
#7
Hi Anti:
My syntax was fine, it was the log out log back in that fixed it. It works great now.
Thanks.
Pedro
My syntax was fine, it was the log out log back in that fixed it. It works great now.
Thanks.
Pedro
-
Posts: 1,139
- Joined: 26 Apr 2008
#8
Have fun with it! You can get window managers to do all kinds of creative things once you get the hang of config files. I am quite sure that neither the IceWM nor Fluxbox developers had any idea what people were going to do with the systems. Much has changed over the years, yet the basics remain the same.
Glad you got it working Pedro! I find that once I experiment with config files a few times, even when moving to a different window manager, the trick is to get the different syntax nuances down. Each one seems to have subtle differences. But once you've gotten used to editing config files, one becomes like the next, and you start to look for those little differences. When you get there, you have arrived, and it becomes easy to pick up a different one and master it. I've been working with X related config files since the eighties. After a while, they look more alike than different, at least to me.plvera wrote:Hi Anti:
My syntax was fine, it was the log out log back in that fixed it. It works great now.
Thanks.
Pedro
Have fun with it! You can get window managers to do all kinds of creative things once you get the hang of config files. I am quite sure that neither the IceWM nor Fluxbox developers had any idea what people were going to do with the systems. Much has changed over the years, yet the basics remain the same.
-
Posts: 1,520
- Joined: 07 Oct 2007
#9
Always pay close attention to syntax and spelling because at the then there is a test.