Notify pid
This commit is contained in:
		
							
								
								
									
										2
									
								
								wg_stop
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								wg_stop
									
									
									
									
									
								
							| @@ -37,7 +37,7 @@ export TEXTDOMAINDIR="/usr/share/locale" | |||||||
|               yad --image-on-top --image=${WG_PIC}wg-info.png \ |               yad --image-on-top --image=${WG_PIC}wg-info.png \ | ||||||
|                   --undecorated --borders=8 --skip-taskbar \ |                   --undecorated --borders=8 --skip-taskbar \ | ||||||
|                   --text-align=center --no-buttons \ |                   --text-align=center --no-buttons \ | ||||||
|                   --timeout 4 --timeout-indicator=bottom \ |                   --timeout 2 --timeout-indicator=bottom \ | ||||||
|                   --text=$"<span color='#0fad0a'><b>"$VALUE" Connection disconnected</b></span>" |                   --text=$"<span color='#0fad0a'><b>"$VALUE" Connection disconnected</b></span>" | ||||||
|       fi |       fi | ||||||
|     done  |     done  | ||||||
|   | |||||||
							
								
								
									
										3
									
								
								wire_g
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								wire_g
									
									
									
									
									
								
							| @@ -61,7 +61,8 @@ wg_notify(){ | |||||||
|     --menu="Wire-G $OPEN!/sbin/wire_g |     --menu="Wire-G $OPEN!/sbin/wire_g | ||||||
|     |$ACTIVE stop!/sbin/wg_stop" \ |     |$ACTIVE stop!/sbin/wg_stop" \ | ||||||
|     --command="menu" |     --command="menu" | ||||||
|  | # Schreib die pid von Notify in  | ||||||
|  |     ps aux | grep yad | grep -v grep | awk '{print $2}' > ${WG_WDIR}Notify_PID.txt | ||||||
| } | } | ||||||
| export -f wg_notify | export -f wg_notify | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user