From 9d841fb4c738f5906792b74fe9d70b23cefd03b3 Mon Sep 17 00:00:00 2001 From: Frieder Schlesier Date: Sat, 6 Jan 2018 15:34:00 +0100 Subject: [PATCH] update status bars --- .i3/config | 12 ++++++---- .i3/status.conf | 5 ++++ .i3/status_small.conf | 56 ++++++++++++++++++++++++------------------- 3 files changed, 44 insertions(+), 29 deletions(-) diff --git a/.i3/config b/.i3/config index dc3e170..b98004f 100755 --- a/.i3/config +++ b/.i3/config @@ -116,11 +116,15 @@ assign [class=".*\ -\ Oracle\ VM\ Virtualbox$"] $WS5 assign [class="^Thunderbird$"] $WS4 assign [class=".*KeePass.*"] $WS8 -workspace $WS1 output VGA-1 -workspace $WS2 output VGA-1 +# https://faq.i3wm.org/question/3726/workspace-output-multiple-values/index.html%3Fanswer=3731.html#post-id-3731 +set $OUTPUT1 LVDS-1 +set $OUTPUT2 VGA-1 + +workspace $WS1 output $OUTPUT2 +workspace $WS2 output $OUTPUT2 workspace $WS3 output LVDS-1 workspace $WS4 output LVDS-1 -workspace $WS5 output VGA-1 +workspace $WS5 output $OUTPUT2 workspace $WS8 output LVDS-1 workspace $WS9 output LVDS-1 @@ -209,7 +213,7 @@ bar { } bar { - output VGA-1 + output $OUTPUT2 output DP-1 output HDMI-1 status_command i3status --config ~/.i3/status_small.conf diff --git a/.i3/status.conf b/.i3/status.conf index e71f54a..1d0eed5 100755 --- a/.i3/status.conf +++ b/.i3/status.conf @@ -14,6 +14,7 @@ general { order += "disk /" order += "disk /var" order += "disk /home" +order += "disk /media/driveBay" #order += "run_watch Docker" #order += "run_watch DHCP" order += "path_exists VPN" @@ -95,6 +96,10 @@ disk "/var" { disk "/home" { format = "/ %avail" } + +disk "/media/driveBay" { + format = "/ %avail" +} volume master { format = " %volume" diff --git a/.i3/status_small.conf b/.i3/status_small.conf index 4dc4666..eef626d 100755 --- a/.i3/status_small.conf +++ b/.i3/status_small.conf @@ -7,8 +7,14 @@ # If the above line is not correctly displayed, fix your editor first! general { - colors = true - interval = 15 + colors = true + interval = 15 + + color_good = "#56F5B2" + color_degraded = "#CEB746" + color_bad = "#EE6B6F" + color_separator = "#334E8F" + } order += "run_watch Docker" @@ -22,51 +28,51 @@ order += "load" order += "tztime local" battery 0 { - format = "%status %percentage %remaining" - format_down = "∞ PLUG" - status_chr = "⚇ CHR" - status_bat = "⚡ BAT" - status_full = "☻ FULL" - path = "/sys/class/power_supply/BAT%d/uevent" - low_threshold = 10 + format = "%status %percentage %remaining" + format_down = "∞ PLUG" + status_chr = "⚇ CHR" + status_bat = "⚡ BAT" + status_full = "☻ FULL" + path = "/sys/class/power_supply/BAT%d/uevent" + low_threshold = 10 } wireless wlp3s0 { - format_up = " %essid (%quality)" - format_down = " -" + format_up = " %essid (%quality)" + format_down = " -" } ethernet eth0 { - # if you use %speed, i3status requires root privileges - format_up = "E: up" - format_down = "E: down" + # if you use %speed, i3status requires root privileges + format_up = "E: up" + format_down = "E: down" } - + run_watch Docker { - pidfile = "/run/docker.pid" + pidfile = "/run/docker.pid" } run_watch DHCP { - pidfile = "/var/run/dhclient*.pid" + pidfile = "/var/run/dhclient*.pid" } path_exists VPN { - path = "/proc/sys/net/ipv4/conf/tun0" + path = "/proc/sys/net/ipv4/conf/tun0" } tztime local { - format = "%m-%d %H:%M:%S" + format = "%m-%d %H:%M:%S" } load { - format = "%1min" + format = "%1min" } volume master { - format = " %volume" - format_muted = " %volume" - device = "default" - mixer = "Master" - mixer_idx = 0 + format = " %volume" + format_muted = " %volume" + device = "default" + mixer = "Master" + mixer_idx = 0 }