about summary refs log tree commit diff
path: root/scripts/dwm-status
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xscripts/dwm-status4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/dwm-status b/scripts/dwm-status
index 6ac3219..e1268f5 100755
--- a/scripts/dwm-status
+++ b/scripts/dwm-status
@@ -2,6 +2,8 @@
 # Screenshot: http://s.natalian.org/2013-08-17/dwm_status.png
 # Network speed stuff stolen from http://linuxclues.blogspot.sg/2009/11/shell-script-show-network-speed.html
 
+separator="|"
+
 # This function parses /proc/net/dev file searching for a line containing $interface data.
 # Within that line, the first and ninth numbers after ':' are respectively the received and transmited bytes.
 function get_bytes {
@@ -110,7 +112,7 @@ do
 	vel_recv=$(get_velocity $received_bytes $old_received_bytes $now)
 	vel_trans=$(get_velocity $transmitted_bytes $old_transmitted_bytes $now)
 
-	xsetroot -name "$(print_mem) $vel_recv $vel_trans $(print_temp) $(print_wifi) $(print_bat)$(show_record) $(print_date)"
+	xsetroot -name "$(print_mem) $separator $(vel_recv) $separator $(vel_trans) $separator $(print_temp) $separator $(print_wifi) $separator $(print_bat) $separator $(show_record) $separator $(print_date)"
 
 	# Update old values to perform new calculations
 	old_received_bytes=$received_bytes