can a keypress activate the screensaver? [SOLVED]
can a keypress activate the screensaver? [SOLVED]
Can the screensaver be activated by a keypress to blank the screen immediately?
I asked this in the Wary thread, but it mustn't be sufficiently technical to prompt anyone to answer.
Wary doesn't have a MENU entry for the screensaver. I think older puppies did.
I asked this in the Wary thread, but it mustn't be sufficiently technical to prompt anyone to answer.
Wary doesn't have a MENU entry for the screensaver. I think older puppies did.
Last edited by Shep on Wed 13 Jul 2011, 14:32, edited 1 time in total.
I'm sure screensaver isn't too hard.
But Im not sure what screen saver wary uses, so i cant help you there.
Instead, let me suggest this:
You could keybind this command to a key
If might be better than a screensaver depending on what you want this keybind for...
Do you use openbox or jwm or icewm or...?
But Im not sure what screen saver wary uses, so i cant help you there.
Instead, let me suggest this:
You could keybind this command to a key
But thats not screensaver you need to key in your password instead of just moving your mouse.xlock -mode blank
If might be better than a screensaver depending on what you want this keybind for...
Do you use openbox or jwm or icewm or...?
Re: can a keypress activate the screensaver ?
Screensaver in Wary:Shep wrote:Can the screensaver be activated by a keypress to blank the screen immediately?
I asked this in the Wary thread, but it mustn't be sufficiently technical to prompt anyone to answer.
Wary doesn't have a MENU entry for the screensaver. I think older puppies did.
Desktop--pupx set properties of x.
Inspiron 700m, Pent.M 1.6Ghz, 1Gb ram.
Msi Wind U100, N270 1.6>2.0Ghz, 1.5Gb ram.
Eeepc 8g 701, 900Mhz, 1Gb ram.
Full installs
- Béèm
- Posts: 11763
- Joined: Wed 22 Nov 2006, 00:47
- Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win
Shep, do you mean you want to go to suspend mode?
The title of your post indicates screensaver.
The title of your post indicates screensaver.
Time savers:
Find packages in a snap and install using Puppy Package Manager (Menu).
Consult Wikka
Use peppyy's puppysearch
Find packages in a snap and install using Puppy Package Manager (Menu).
Consult Wikka
Use peppyy's puppysearch
- Béèm
- Posts: 11763
- Joined: Wed 22 Nov 2006, 00:47
- Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win
So calling the screensaver with a blank image, prepared in advance.
I am not sure however if the back-light is cut-off.
Maybe acpitool has an option for this.
I am not sure however if the back-light is cut-off.
Maybe acpitool has an option for this.
Time savers:
Find packages in a snap and install using Puppy Package Manager (Menu).
Consult Wikka
Use peppyy's puppysearch
Find packages in a snap and install using Puppy Package Manager (Menu).
Consult Wikka
Use peppyy's puppysearch
- Dougal
- Posts: 2502
- Joined: Wed 19 Oct 2005, 13:06
- Location: Hell more grotesque than any medieval woodcut
You probably want to create a JWM keybinding to run the xlock command.
For example, Alt+Esc (this goes in ~/.jwm/jwmrc-personal):
For example, Alt+Esc (this goes in ~/.jwm/jwmrc-personal):
Code: Select all
<Key mask="A" key="Esc">xlock `cat /root/.config/Xlock/xlockscreenparams`</Key>
What's the ugliest part of your body?
Some say your nose
Some say your toes
But I think it's your mind
Some say your nose
Some say your toes
But I think it's your mind
That file doesn't exist, at the moment. Your Xlock suggestion might be ideal, because I would use its option to not mess with passwords:Dougal wrote:You probably want to create a JWM keybinding to run the xlock command.
For example, Alt+Esc (this goes in ~/.jwm/jwmrc-personal):Code: Select all
<Key mask="A" key="Esc">xlock `cat /root/.config/Xlock/xlockscreenparams`</Key>
Code: Select all
+/-nolock
The nolock option causes xlock to only draw the patterns and not lock the display. A key press or a mouse click will terminate the screen saver.
- Dougal
- Posts: 2502
- Joined: Wed 19 Oct 2005, 13:06
- Location: Hell more grotesque than any medieval woodcut
That's strange... if JWM is used that file should exist since it's what the configuration utility changes (and has some default settings).Shep wrote:That file doesn't exist, at the moment.Dougal wrote:You probably want to create a JWM keybinding to run the xlock command.
For example, Alt+Esc (this goes in ~/.jwm/jwmrc-personal):Code: Select all
<Key mask="A" key="Esc">xlock `cat /root/.config/Xlock/xlockscreenparams`</Key>
You should look in ~/.jwmrc for Include lines like:
Code: Select all
<Include>/root/.jwm/jwmrc-personal</Include>
What's the ugliest part of your body?
Some say your nose
Some say your toes
But I think it's your mind
Some say your nose
Some say your toes
But I think it's your mind
There is no /root/.jwmrcDougal wrote:That's strange... if JWM is used that file should exist since it's what the configuration utility changes (and has some default settings).
You should look in ~/.jwmrc for Include lines like:Code: Select all
<Include>/root/.jwm/jwmrc-personal</Include>
The only files in /root/.jwm are jwm_colors jwmrc-personal jwmrc-personal2 jwmrc-theme themes
There are no hidden files. The two personal files seem identical.
Code: Select all
# find / -name 'xlockscreenparams'
#
Code: Select all
display all 1493 possibilities? (y or n)
Last edited by Shep on Sun 10 Jul 2011, 15:26, edited 1 time in total.
- Dougal
- Posts: 2502
- Joined: Wed 19 Oct 2005, 13:06
- Location: Hell more grotesque than any medieval woodcut
Well, the "personal" files are what I mentioned in the first place: that's where you add the new keybinding.Shep wrote:There is no /root/.jwmrcDougal wrote:That's strange... if JWM is used that file should exist since it's what the configuration utility changes (and has some default settings).
You should look in ~/.jwmrc for Include lines like:Code: Select all
<Include>/root/.jwm/jwmrc-personal</Include>
The only files in /root/.jwm are jwm_colors jwmrc-personal jwmrc-personal2 jwmrc-theme themes
There are no hidden files. The two personal files seem identical.
If there's no /root/.jwmrc then you must not be using JWM...
The xlockscreenparams file is created when you configure xlock... I just looked at Barry's xlock_gui package and it still seems to use it.When I put your alt esc idea into one of the personal files, it doesn't fire off xlock. When in a console the ALT-ESC combo produces:Code: Select all
# find / -name 'xlockscreenparams' #
Code: Select all
display all 1493 possibilities? (y or n)
What's the ugliest part of your body?
Some say your nose
Some say your toes
But I think it's your mind
Some say your nose
Some say your toes
But I think it's your mind
Now, this is looking promising: in file etc/xdg/templates/_root_.jwmrc we read:
I edited it by adding a new entry, and restarted JWM but the new entry had no effect.
What's weird is that if I change an already defined key combination, then that works, but if I add a new entry, it doesn't work.
For example, here are some already defined entries:
If I alter this so that alt-F4 now performs "next" then that works and it does perform the next function. But if I add a 6 th entry to this block, viz.
then alt-F3 is not recognised as a defined combination.
Any more suggestions?
At the foot of the file, it has the includes:
Code: Select all
<!-- IMPORTANT, ONLY EDIT /etc/xdg/templates/_root_.jwmrc -->
<!-- jwm menu for puppy Linux -->
What's weird is that if I change an already defined key combination, then that works, but if I add a new entry, it doesn't work.
For example, here are some already defined entries:
Code: Select all
<Key mask="A" key="Tab">next</Key>
<Key mask="A" key="F4">close</Key>
<Key mask="A" key="#">desktop#</Key>
<Key mask="A" key="F1">root:3</Key>
<Key mask="A" key="F2">window</Key>
Code: Select all
<Key mask="A" key="F3">close</Key>
Any more suggestions?
At the foot of the file, it has the includes:
Code: Select all
<Include>/root/.jwm/jwmrc-theme</Include>
<Include>/root/.jwm/jwmrc-personal</Include>
I know this might be beside the point (I've not read your whole post - just the title, and had to ask myself the same question) but "if" you are using a stock standard late puppy, why don't you just first set a password for your screensaver [lock-desktop icon] and then right-click and edit - adding the shortcut button F8, or CTRL-ALT-H as I just did?
- Dougal
- Posts: 2502
- Joined: Wed 19 Oct 2005, 13:06
- Location: Hell more grotesque than any medieval woodcut
That's just the template used for generating ~/.jwmrc -- you need to run fixmenus to regenerate it...Shep wrote:Now, this is looking promising: in file etc/xdg/templates/_root_.jwmrc we read:I edited it by adding a new entry, and restarted JWM but the new entry had no effect.Code: Select all
<!-- IMPORTANT, ONLY EDIT /etc/xdg/templates/_root_.jwmrc --> <!-- jwm menu for puppy Linux -->
That doesn't seem to make sense... unless you regenerate the menu it should not have any effect and even if you do, I can't see why it will behave that way unless:What's weird is that if I change an already defined key combination, then that works, but if I add a new entry, it doesn't work.
For example, here are some already defined entries:If I alter this so that alt-F4 now performs "next" then that works and it does perform the next function. But if I add a 6 th entry to this block, viz.Code: Select all
<Key mask="A" key="Tab">next</Key> <Key mask="A" key="F4">close</Key> <Key mask="A" key="#">desktop#</Key> <Key mask="A" key="F1">root:3</Key> <Key mask="A" key="F2">window</Key>
then alt-F3 is not recognised as a defined combination.Code: Select all
<Key mask="A" key="F3">close</Key>
- Your F3 isn't working or not mapped (for some reason) -- or defined differently in /root/.jwm/jwmrc-personal (note that this file is where you are supposed to add all your changes -- it comes after the other definitions and will override them if you bind the same key twice).
- Maybe there's something wrong with the fixmenus script and it ignores the line with F3? I can't imagine why, though.
What's the ugliest part of your body?
Some say your nose
Some say your toes
But I think it's your mind
Some say your nose
Some say your toes
But I think it's your mind
Okay, now that I know about fixmenus I am bound to make some progress.
Furthermore, the crucial missing files have made an appearance.
Furthermore, the crucial missing files have made an appearance.
Code: Select all
# find / -name '.jwmrc'
/root/.jwmrc
Code: Select all
# find / -name 'xlockscreenparams'
/root/.config/Xlock/xlockscreenparams