-
Notifications
You must be signed in to change notification settings - Fork 3
-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for global configuration file #14
Comments
I am afraid I don't understand you in this case.
This is a little more tricky.
This is an interesting idea. I am thinking about implementing in with the goto command. If For example in your map="o" command="open" script="firefox %s" |
My bad, I simply missed that.
Fair point. This is something that should be added to ueberzug.
Good point! nice. Maybe, it would be nice to have different behavior based on the file extension. |
I could add support for that, but again the customization ability of Something like #media_open.sh
if [[ "$1" is video ]]
then
mpv "$1"
elif [[ "$1" is jpg ]]
then
firefox "$1"
elif [[ "$1" is png ]]
then
gimp "$1"
fi and then do map="o" command="open" script="path/to/media_open.sh %s" I have written |
I tried your example, however, it always results in "No Executions" for me? Am I missing something? |
Well the script in not exactly correct. Its pseudo-code. You should implement the conditionals Try that: #media_open.sh
local mime type ext
mime=$(file --mime-type -b "$1")
type="${mime%/*}
ext="${mime#*/}
if [[ "$type" == "video" ]]
then
mpv "$1"
elif [[ "$ext" == "jpg" ]]
then
firefox "$1"
elif [[ "$ext" == "png" ]]
then
gimp "$1"
fi In any case, you should first check that the script works on your command line before attempting to use it in |
Sorry for the late reply. Thanks, that works well.
Essentially, I wanna achieve a similar behavior for videos, that exists for pictures out of the box. When I press enter on a video thumbnail, the video should start playing immediately (like specified in the script). |
Check the
You can unmap any key binding. And then remap it. Check this. Implementing a hybrid solution is a little more tricky I guess, because the image selection is a builtin function and it would have to be combined with an external script somehow. I am little busy these days, so I cannot sit down and explore the options, but I hope that by following the links you will be able to find a solution of your own. |
Hello,
I'd like to suggest adding support for a global configuration file (e.g.
~/.config/ucollage/ucollagerc
).With a configuration file, users would be able to transfer their defaults to other devices.
Here are a couple of things, I'd love to be able to customize in that file:
The text was updated successfully, but these errors were encountered: