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


0) sudo mkdir /scripts

1) sudo nano /scripts/

2) sudo chmod +x /scripts/

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/ %k
------- icon: notification-audio-play

6) sudo visudo

7) save and enjoy

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

@темы: Hints & Tricks, Linux