Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
feh, dialog box
feh, dialog box
how can i get feh to open a dialog box when i open it from open box menu ?
Last edited by tomair on 2017-05-28 10:13, edited 1 time in total.
on air with my debian
Re: feh
what i scratch from there isdilberts_left_nut wrote:'man feh' tells all.
Code: Select all
feh -rt Pictures/
on air with my debian
- dilberts_left_nut
- Administrator
- Posts: 5346
- Joined: 2009-10-05 07:54
- Location: enzed
- Has thanked: 12 times
- Been thanked: 66 times
Re: feh
If you want to recursively show thumbnails of your Pictures directory, yes.tomair wrote:what i scratch from there isCode: Select all
feh -rt Pictures/
AdrianTM wrote:There's no hacker in my grandma...
- dilberts_left_nut
- Administrator
- Posts: 5346
- Joined: 2009-10-05 07:54
- Location: enzed
- Has thanked: 12 times
- Been thanked: 66 times
Re: feh
Since you ask about openbox, I assume you know how to configure commands in the openbox menu. Use the command:
This invokes zenity (package zenity must be installed) for a file selection dialog and supplies the selection to feh. You may want to set additional options for the dialog like --title, --width, --height.
If you are using stretch (or the MX or Bunsen jessie repositories), you can use yad in place of zenity with the command:
Code: Select all
feh `zenity --file-selection`
If you are using stretch (or the MX or Bunsen jessie repositories), you can use yad in place of zenity with the command:
Code: Select all
feh `yad --file`
Re: feh
that it's graetcpoakes wrote:Since you ask about openbox, I assume you know how to configure commands in the openbox menu. Use the command:This invokes zenity (package zenity must be installed) for a file selection dialog and supplies the selection to feh. You may want to set additional options for the dialog like --title, --width, --height.Code: Select all
feh `zenity --file-selection`
on air with my debian
Re: feh, dialog box
i try to put the command in the menu but it didn't work i also have an alias for feh geometry , in shell command it works, but in the menu it's just do nothing
on air with my debian
-
- Posts: 1100
- Joined: 2016-01-07 12:25
- Has thanked: 5 times
- Been thanked: 16 times
Re: feh, dialog box
You might have to escape the backticks in the command for it to work as expected, I tried it with an alias like this
and it worked correctly, and should work in an openbox command too.
Code: Select all
alias myfeh="feh \`zenity --file-selection\`"
Re: feh, dialog box
no do im trying
and more
<execute>feh -g 1024x840 `zenity --file-selection`</execute>
and more
and cant get nothing<execute>"feh -g 1024x840 `zenity --file-selection`"</execute>
on air with my debian
-
- Posts: 1100
- Joined: 2016-01-07 12:25
- Has thanked: 5 times
- Been thanked: 16 times
-
- Posts: 1100
- Joined: 2016-01-07 12:25
- Has thanked: 5 times
- Been thanked: 16 times
Re: feh, dialog box
I just tested on a openbox Vm and you're right it won't work. I made a very simple script named myfeh with the following as contents
and moved it to /usr/local/bin
and added this section to menu.xml
it definitely works this time
Obviously you can name it what you want I just used something memorable for testing.
Code: Select all
#!/bin/bash
feh -g 1024x840 $(zenity --file-selection)
Code: Select all
sudo mv myfeh /usr/local/bin/myfeh
Code: Select all
<item label="myfeh">
<action name="Execute">
<command>
myfeh
</command>
</action>
</item>
Obviously you can name it what you want I just used something memorable for testing.
-
- Posts: 1100
- Joined: 2016-01-07 12:25
- Has thanked: 5 times
- Been thanked: 16 times
Re: feh, dialog box
Oops I forgot to mention that onetomair wrote:OK i added x's permissions and its working