Conf i3 status

This commit is contained in:
Snorky 2025-10-16 00:12:19 +02:00
parent 1c136c5997
commit 99f9e18785
No known key found for this signature in database
GPG Key ID: 424B3C8E63F96662
3 changed files with 9 additions and 5 deletions

View File

@ -228,6 +228,7 @@ client.background #ffffff
# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)
bar {
id 1
position top
status_command exec /home/pierre/.config/i3status/mytopbar.sh
workspace_buttons no
@ -235,6 +236,7 @@ bar {
}
bar {
id 2
position bottom
status_command exec /home/pierre/.config/i3status/mybottombar.sh
tray_output none

View File

@ -10,3 +10,5 @@ else
echo "Connect VPN"
sudo wg-quick up wg0
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'

View File

@ -144,8 +144,8 @@ echo '[' # Begin the endless array.
echo '[]' # We send an empty first array of blocks to make the loop simpler:
# Now send blocks with information forever:
(while :;
do
#(while :;
#do
echo -n ",["
myip_public_text
myip_public
@ -155,8 +155,8 @@ do
vpn_text
myvpn_on
echo "]"
sleep 5
done) &
# sleep 5
#done) &
# click events
while read line;
@ -166,6 +166,6 @@ do
# VPN click
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
done