diff options
author | Manuel Palenzuela <manuelpalenzuelamerino@gmail.com> | 2019-06-10 14:58:24 +0200 |
---|---|---|
committer | Manuel Palenzuela <manuelpalenzuelamerino@gmail.com> | 2019-06-10 14:58:24 +0200 |
commit | 34fb6e276556c4b86988ee9052691d3b301ef2cc (patch) | |
tree | ada7b6a41ec62a27b4a129f09ddf1910482b86ee | |
parent | Added status bar script (diff) | |
download | dwm-34fb6e276556c4b86988ee9052691d3b301ef2cc.tar.gz dwm-34fb6e276556c4b86988ee9052691d3b301ef2cc.tar.bz2 dwm-34fb6e276556c4b86988ee9052691d3b301ef2cc.zip |
Added separators in the status script
Diffstat (limited to '')
-rwxr-xr-x | scripts/dwm-status | 4 |
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 |