Switches to py3status

- Adds support for cmus in statusbar
This commit is contained in:
Abhay Rana 2015-07-16 20:22:50 +05:30
parent f5999344d8
commit a7e33d09aa
2 changed files with 48 additions and 17 deletions

View File

@ -7,52 +7,83 @@
# If the above line is not correctly displayed, fix your editor first!
general {
colors = true
interval = 5
colors = true
interval = 5
}
#order += "ipv6"
order += "external_script cmus"
order += "disk /home"
order += "bluetooth"
order += "weather_yahoo"
#order += "run_watch DHCP"
#order += "run_watch VPN"
order += "wireless _first_"
#order += "ethernet _first_"
order += "battery 0"
order += "battery_level"
# order += "load"
order += "tztime local"
wireless _first_ {
format_up = "W: (%quality at %essid) %ip"
format_down = "W: down"
format_up = "%essid %quality %ip"
format_down = "W: down"
}
ethernet _first_ {
# if you use %speed, i3status requires root privileges
format_up = "E: %ip (%speed)"
format_down = "E: down"
# if you use %speed, i3status requires root privileges
format_up = "E: %ip (%speed)"
format_down = "E: down"
}
battery 0 {
format = "%status %percentage %remaining"
integer_battery_capacity = true
battery_level{
color_bad = "#ECF0F1"
color_charging = "#FCE94F"
color = "#FCE94F"
color_degraded = "#2ECC71"
color_good = "#2ECC71"
format = "⚡ {}"
mode = "text"
}
external_script "cmus" {
# Refresh every 5 seconds
cache_timeout = 5
format = "► {output}"
color = "#E67E22"
script_path = "~/projects/scripts/get-current-track.sh"
}
run_watch DHCP {
pidfile = "/var/run/dhclient*.pid"
pidfile = "/var/run/dhclient*.pid"
}
run_watch VPN {
pidfile = "/var/run/vpnc/pid"
pidfile = "/var/run/vpnc/pid"
}
tztime local {
format = "%Y-%m-%d %H:%M:%S"
format = "%Y-%m-%d %H:%M:%S"
}
load {
format = "%1min"
format = "%1min"
}
disk "/home" {
format = "%avail"
format = "%avail"
}
weather_yahoo {
city_code = "INKA0686"
}
bluetooth {
format = "{name}"
format_no_conn = ""
format_prefix = "ß "
format_no_conn_prefix = ""
}
pomodoro {
}

View File

@ -200,7 +200,7 @@ bindsym XF86AudioMute exec amixer -D pulse set Master toggle
# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)
bar {
status_command i3status
status_command py3status -c ~/.config/i3status/config
colors {
# Whole color settings
background #000000