You are not logged in.

#1 2025-10-23 13:50:58

MarkW
Member
Registered: 2024-11-03
Posts: 362

Key Binding For Scrot [Solved]

This isn't working for me.  Any ideas why not?

key "Super+s"  scrot  /home/mark/Pictures/screenshots/%Y-%m-%d_%H:%M:%S.png

Last edited by MarkW (2025-10-23 21:13:50)

Offline

#2 2025-10-23 16:21:27

PackRat
jgmenu user Numero Uno
Registered: 2015-10-02
Posts: 2,727

Re: Key Binding For Scrot [Solved]

Run the command

scrot  /home/mark/Pictures/screenshots/%Y-%m-%d_%H:%M:%S.png

in a terminal and see if it gives you an error message.

That might be one of the commands set up for the BL desktop by xbindkeys. If you're running IceWm now, you need to make sure the same xbindkeys command is loaded at IceWm startup.


You must unlearn what you have learned.
    -- yoda

Offline

#3 2025-10-23 17:10:10

MarkW
Member
Registered: 2024-11-03
Posts: 362

Re: Key Binding For Scrot [Solved]

It works in a terminal. So the actual command is clearly correct.

Where is the xblindkeys file I'm looking for?

Offline

#4 2025-10-23 18:50:08

PackRat
jgmenu user Numero Uno
Registered: 2015-10-02
Posts: 2,727

Re: Key Binding For Scrot [Solved]

Run

xbindkeys

in a terminal and see if the binding works.

You still have the default openbox installed? You can copy the xbindkeys command from the openbox startup file.

By default, the file is ~/.xbindkeysrc
I can't remember if BL calls a different config file, and I don't have BL installed at the moment.


You must unlearn what you have learned.
    -- yoda

Offline

#5 2025-10-23 18:52:14

PackRat
jgmenu user Numero Uno
Registered: 2015-10-02
Posts: 2,727

Re: Key Binding For Scrot [Solved]

Another option would be to add the bindings you want to the IceWm configuration file.


You must unlearn what you have learned.
    -- yoda

Offline

#6 2025-10-23 19:20:14

MarkW
Member
Registered: 2024-11-03
Posts: 362

Re: Key Binding For Scrot [Solved]

Found it.  In xkeybindingssrc  Scrot is mapped to Alt Print.  But my Print key doesn't work

Offline

#7 2025-10-23 20:18:32

PackRat
jgmenu user Numero Uno
Registered: 2015-10-02
Posts: 2,727

Re: Key Binding For Scrot [Solved]

Just need to edit the keybinding to something that will work and doesn't repeat an existing keybinding for IceWm.

"scrot  /home/mark/Pictures/screenshots/%Y-%m-%d_%H:%M:%S.png"
         Mod4 + s

It's not automatic. You will need to logout/log in for xbindkeys to make the change.


You must unlearn what you have learned.
    -- yoda

Offline

#8 2025-10-23 20:20:08

PackRat
jgmenu user Numero Uno
Registered: 2015-10-02
Posts: 2,727

Re: Key Binding For Scrot [Solved]

xkeybindingssrc ??

typo?

it's .xbindkeysrc on the BL carbon live session I'm using at the moment.


You must unlearn what you have learned.
    -- yoda

Offline

#9 2025-10-23 21:12:28

MarkW
Member
Registered: 2024-11-03
Posts: 362

Re: Key Binding For Scrot [Solved]

Did it!

key "Super+s"	scrot '%Y-%m-%d--%s_$wx$h_scrot.png' -e 'mv $f ~/Pictures/screenshots/ ; bl-image-viewer ~/Pictures/screenshots/$f'

Taking the quotation marks out solved the problem

Last edited by MarkW (2025-10-23 21:13:25)

Offline

Board footer

Powered by FluxBB