ckardaris / ucollage

An extensible command line image viewer inspired by vim
GNU General Public License v3.0
210 stars 3 forks source link

config files #10

Closed ghost closed 3 years ago

ghost commented 3 years ago

There is any config file to create shortcuts to auto-run scripts or commands? Also, if I like to start the tool in a specific view mode with say 1 column only is that possible? Last it allays ask to expand pictures! can this be remove?

ckardaris commented 3 years ago

There is any config file to create shortcuts to auto-run scripts or commands?

Currently this is not possible if I understand you correctly. But I'm always thinking about ways to improve the program. I will do more work on it soon.

Also, if I like to start the tool in a specific view mode with say 1 column only is that possible?

Check variables UCOLLAGE_LINES and UCOLLAGE_COLUMNS.

Last it allays ask to expand pictures! can this be remove?

Check variable UCOLLAGE_EXPAND_DIRS

ghost commented 3 years ago

Currently this is not possible if I understand you correctly. But I'm always thinking about ways to improve the program. I will do more work on it soon.

A config file will take this to the next level in my opinion, now I am using a script to run this command: feh --bg-scale $1 && cp $1 ~/.config/wall.png that get executed by running script %s on an image.

Check variables UCOLLAGE_LINES and UCOLLAGE_COLUMNS.

Nice Workaround Thanks.

Check variable UCOLLAGE_EXPAND_DIRS

This one did work changing it to -1.

Thanks a lot @ckardaris. Great Tool.

ckardaris commented 3 years ago

A config file will take this to the next level in my opinion, now I am using a script to run this command: feh --bg-scale $1 && cp $1 ~/.config/wall.png that get executed by running script %s on an image.

This is interesting. A config with the most used scripts. I will think of an elegant way to include it in the next version.

ghost commented 3 years ago

How about an function to create custom shortcuts inside a config file style for command execution or scripts also like: set (shortcut) executed command or script So one selects an image plus the shortcut to execute configured command or script on it.

In this particular case I am using now I could do: set w feh --bg-scale %s && cp %s ~/.config/wall.png Where pressing an x number image Plus w automatically set the image as background.

I could think of many uses for something like that.. as right now i am using ucollage as default I3wm wallpaper chooser.

ucollage

ckardaris commented 3 years ago

Yes, this is possible. As of now, I am writing ideas about what to implement with my next release. And your suggestion opens up many possibilities. You can watch the repo and get informed when these new changes are included in my code. Thanks for your interest and, again, I apologize for not being able to implement your suggestions right away.