Conf i3 status
This commit is contained in:
		
							parent
							
								
									1c136c5997
								
							
						
					
					
						commit
						99f9e18785
					
				|  | @ -228,6 +228,7 @@ client.background       #ffffff | ||||||
| # Start i3bar to display a workspace bar (plus the system information i3status | # Start i3bar to display a workspace bar (plus the system information i3status | ||||||
| # finds out, if available) | # finds out, if available) | ||||||
| bar { | bar { | ||||||
|  |         id 1 | ||||||
|         position top |         position top | ||||||
|         status_command exec /home/pierre/.config/i3status/mytopbar.sh |         status_command exec /home/pierre/.config/i3status/mytopbar.sh | ||||||
|         workspace_buttons no |         workspace_buttons no | ||||||
|  | @ -235,6 +236,7 @@ bar { | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| bar { | bar { | ||||||
|  |         id 2 | ||||||
|         position bottom |         position bottom | ||||||
|         status_command exec /home/pierre/.config/i3status/mybottombar.sh |         status_command exec /home/pierre/.config/i3status/mybottombar.sh | ||||||
|         tray_output none |         tray_output none | ||||||
|  |  | ||||||
|  | @ -10,3 +10,5 @@ else | ||||||
|   echo "Connect VPN" |   echo "Connect VPN" | ||||||
|   sudo wg-quick up wg0 |   sudo wg-quick up wg0 | ||||||
| fi | fi | ||||||
|  | kill -9 $(ps faux | grep [b]ar_id=2 | awk '{print $2}')  | ||||||
|  | i3-msg -t command 'exec --no-startup-id i3bar --bar_id=2' | ||||||
|  |  | ||||||
|  | @ -144,8 +144,8 @@ echo '['                    # Begin the endless array. | ||||||
| echo '[]'                   # We send an empty first array of blocks to make the loop simpler: | echo '[]'                   # We send an empty first array of blocks to make the loop simpler: | ||||||
| 
 | 
 | ||||||
| # Now send blocks with information forever: | # Now send blocks with information forever: | ||||||
| (while :; | #(while :; | ||||||
| do | #do | ||||||
| 	echo -n ",[" | 	echo -n ",[" | ||||||
|   myip_public_text |   myip_public_text | ||||||
|   myip_public |   myip_public | ||||||
|  | @ -155,8 +155,8 @@ do | ||||||
|   vpn_text |   vpn_text | ||||||
|   myvpn_on |   myvpn_on | ||||||
|   echo "]" |   echo "]" | ||||||
| 	sleep 5 | #	sleep 5 | ||||||
| done) & | #done) & | ||||||
| 
 | 
 | ||||||
| # click events | # click events | ||||||
| while read line; | while read line; | ||||||
|  | @ -166,6 +166,6 @@ do | ||||||
| 
 | 
 | ||||||
|   # VPN click |   # VPN click | ||||||
|   if [[ $line == *"name"*"id_vpn"* ]]; then |   if [[ $line == *"name"*"id_vpn"* ]]; then | ||||||
|     mate-terminal -e /home/pierre/.config/i3status/click_vpn.sh & |    wezterm  -e --class term_date /home/pierre/.config/i3status/click_vpn.sh & | ||||||
|   fi   |   fi   | ||||||
| done | done | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Snorky
						Snorky