Skip to main content

Thread: Bash script for viewing an image while holding a key


i write bash script runs when press key or combination of keys , stops when release key.
while key pressed image should shown on screen , on release should closed script.

after searching suspect commands "eog" , "read" come in handy i'm not sure if bash right choice create this.

advice on part of problem (doing while key pressed, viewing , closing image) appreciated.

write toggle script. use view image? if it's imagemagick using display command, this:
code:
#!/bin/bash if [ $(pidof display) ];   killall display else   display /path/to/image fi
then bind key / key combo script. hit key start, hit again stop.


Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Programming Talk [SOLVED] Bash script for viewing an image while holding a key


Ubuntu

Comments

Popular posts from this blog

How to set the order of FAQs instead of alphabetical

Thread: Get UK Keyboard working

how do I change the e-mail address for my merchant account