You are not logged in.

#1 2010-11-01 03:08:12

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

AwesomeWM and scrot keybind [SOLVED]

My keybind is:

awful.key({"Mod1"},            "Print",     function() awful.util.spawn("scrot-select") end)

where scrot-select is this script:

#!/bin/sh
scrot -s 'screenshot-%s.png' -e 'mv $f ~/images/ && gimp ~/images/$f'

This does not work. But if I launch scrot-select from a terminal then it does work. I have a different keybind that just screenshots the entire screen and that works fine. Something about the -s flag is problematic.

--

Solution, put a sleep 1s before the scrot command:

https://bbs.archlinux.org/viewtopic.php … 4#p1219944

Last edited by anonymous_user (2013-01-20 03:18:28)

Offline

#2 2010-11-01 09:04:36

JokerBoy
Member
From: România
Registered: 2009-09-24
Posts: 641

Re: AwesomeWM and scrot keybind [SOLVED]

using the -s flag doesn't work for me, either.

and it should be a comma after "Mod1",  i don't know why but without it the keybinding doesn't work hmm

Offline

#3 2010-11-01 14:54:06

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

Re: AwesomeWM and scrot keybind [SOLVED]

The keybind works for me regardless of that comma. Whats not working is scrot.

Offline

#4 2010-11-01 15:46:54

Boris Bolgradov
Member
From: Bulgaria
Registered: 2008-07-27
Posts: 185

Re: AwesomeWM and scrot keybind [SOLVED]

edit: I can confirm that too. Works from the command line, but it doesn't work as keybind. Other options seem to work.

Last edited by Boris Bolgradov (2010-11-01 16:20:59)

Offline

Board footer

Powered by FluxBB