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:then bind key / key combo script. hit key start, hit again stop.code:#!/bin/bash if [ $(pidof display) ]; killall display else display /path/to/image fi
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
Post a Comment