21:40 

xfce4-quicklauncher-plugin + script.sh + icon

Noxilie
futurum est iam
Idea:
1st click on Icon --- start daemon via sсript + change icon
2nd click on Icon --- stop daemon via sсript + change icon


Implementation:

0) sudo mkdir /scripts

1) sudo nano /scripts/serv_http.sh



2) sudo chmod +x /scripts/serv_http.sh

3) add to xfce-panel xfce4-quicklauncher-plugin

4) add any new item to xfce4-quicklauncher-plugin's items-list

5) edit previously added item
------- name: any desired name
------- command: sudo /scripts/serv_http.sh %k
------- icon: notification-audio-play

6) sudo visudo


7) save and enjoy

P.S.
You can use desktop-file-edit --set-icon="iconName" "$filename" from desktop-file-utils instead of sed -i

@темы: Hints & Tricks, Linux

URL
   

Кавергарнум эр варгеш

главная