From 7f08c23e65b01d647d1c07c1a791ad2108c4fc19 Mon Sep 17 00:00:00 2001 From: Alessandro Iezzi Date: Tue, 20 May 2025 10:33:42 +0200 Subject: Add function to change the title of the terminal --- vpn | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/vpn b/vpn index 8e75c83..33e2706 100755 --- a/vpn +++ b/vpn @@ -31,6 +31,11 @@ # Configurations CONF_DIR=YOUR_CONFIG_DIR +set_terminal_title() +{ + echo -ne "\033]0;$1 VPN\007" +} + set_routes() { local devtun=tun0 @@ -46,3 +51,6 @@ fi set_routes +# Change title of current terminal +set_terminal_title $TYPE + -- cgit v1.2.3