diff --git a/dots/i3status/config b/dots/i3status/config new file mode 100644 index 0000000..124510c --- /dev/null +++ b/dots/i3status/config @@ -0,0 +1,115 @@ +# i3status configuration file. +# see "man i3status" for documentation. +# or https://i3wm.org/i3status/manpage.html + +# It is important that this file is edited as UTF-8. +# The following line should contain a sharp s: +# ß +# If the above line is not correctly displayed, fix your editor first! + + +general { + colors = true + interval = 5 + color_good = "#FC08BB" + color_bad = "#2AFF00" + color_degraded = "#FE1805" +} + +order += "cpu_usage" +order += "load" +order += "memory" +order += "disk /" +order += "disk /media/drive2" +order += "disk /media/drive3" +order += "wireless _first_" +order += "ethernet _first_" +order += "path_exists vpn" +order += "battery all" +order += "tztime local" +order += "volume master" + +cpu_usage { + format = " cpu usg %usage " + max_threshold = 75 +} + +load { + format = " load %1min " + max_threshold = "5,0" +} + +memory { + format = " ☰ %available (%percentage_available) " + threshold_degraded = "5G" + format_degraded = "MEMORY %available" +} + +disk "/" { + format = " / ⛁ %avail " + low_threshold = 10 + threshold_type = "percentage_avail" +} + +disk "/media/drive2" { + format = " drive2 ⛁ %avail (%percentage_avail) " + low_threshold = 5 + threshold_type = "percentage_avail" +# format_below_threshold = "WARNING: ⛁ drive2 %avail (%percentage_avail) " +} + +disk "/media/drive3" { + format = " drive3 ⛁ %avail (%percentage_avail) " + low_threshold = 5 + threshold_type = "percentage_avail" +} + +path_exists "vpn" { + #format = " %title: %status " + format = " %title " + path = "/proc/sys/net/ipv4/conf/tun0" + #path = "/proc/sys/net/ipv4/conf/proton0" + format_down = " no vpn " +} + +wireless _first_ { + format_up = " W: (%quality at %essid, %bitrate) %ip " + format_down = "" +} + +ethernet _first_ { + format_up = " %ip %speed " + format_down = " 🖧 " +} + +battery all { + # format = "%status %percentage %remaining %emptytime" + format = " %status %percentage" + format_down = "No battery" + last_full_capacity = true + integer_battery_capacity = true + # status_chr = "" + status_chr = "⚡" + # status_bat = "bat" + # status_bat = "☉" + status_bat = "" + # status_unk = "?" + status_unk = "" + # status_full = "" + status_full = "☀" + low_threshold = 15 + threshold_type = time +} + +tztime local { + format = " %time " + format_time = "%Y.%m.%d @ %H:%M" +} + +volume master { + format = " ♪: %volume " + format_muted = "♪: muted (%volume)" + device = "default" + mixer = "Master" + mixer_idx = 0 +} diff --git a/scripts/99_deploy.sh b/scripts/99_deploy.sh index 9b0fa08..15711b4 100644 --- a/scripts/99_deploy.sh +++ b/scripts/99_deploy.sh @@ -238,6 +238,12 @@ if [ ${operation} == "dots" ] ; then mkdir -p ${file_path} deploy_file "${dots_trg}/i3wm/${file_name}" "${file_path}/" + # i3status + file_name=config + file_path=/home/${user}/.config/i3status + mkdir -p ${file_path} + deploy_file "${dots_trg}/i3status/${file_name}" "${file_path}/" + fi if [ ${I3WM} == "true" ] || [ ${QTILE} == "true" ] ; then