Use hostname configs instead of global i3status.conf

This commit is contained in:
Austen Adler 2016-03-19 23:00:40 -04:00
parent ce60a18c47
commit 624160b5c3
2 changed files with 9 additions and 16 deletions

View File

@ -11,16 +11,15 @@ general {
interval = 1 interval = 1
} }
order += "disk /" order += "disk /"
order += "wireless wlp2s0" order += "ethernet tun0"
order += "ethernet enp1s0" order += "ethernet enp2s0f0"
order += "volume master" order += "volume master"
order += "battery 1"
order += "tztime local" order += "tztime local"
wireless wlp2s0 { ethernet tun0 {
format_up = "%essid : %ip @ %quality" format_up = "%ip"
format_down = "!W" format_down = "!T"
} }
ethernet enp1s0 { ethernet enp2s0f0 {
# if you use %speed, i3status requires root privileges # if you use %speed, i3status requires root privileges
format_up = "%ip (%speed)" format_up = "%ip (%speed)"
format_down = "!E" format_down = "!E"
@ -39,12 +38,6 @@ volume master {
mixer = "Master" mixer = "Master"
mixer_idx = 0 mixer_idx = 0
} }
battery 1 {
#format = "%status %remaining %emptytime"
format = "%status %percentage"
path = "/sys/class/power_supply/BAT1/uevent"
low_threshold = 20
}
disk "/" { disk "/" {
format = "%free" format = "%free"
} }

View File

@ -89,14 +89,14 @@ while getopts ":hbsdpcw" VALUE "$@"; do
ln -s $ABSPATH/shells/liquidpromptrc ~/.config/liquidpromptrc ln -s $ABSPATH/shells/liquidpromptrc ~/.config/liquidpromptrc
if [ "$(uname)" != "Darwin" ]; then if [ "$(uname)" != "Darwin" ]; then
if command -v trash 2>&1 >/dev/null; then if command -v trash 2>&1 >/dev/null; then
trash ~/.i3/config ~/.i3/run.sh ~/.Xmodmap ~/.xsession ~/.config/synapse/gtkrc ~/.Xresources trash ~/.i3/{config,i3status.conf,run.sh} ~/.Xmodmap ~/.xsession ~/.config/synapse/gtkrc ~/.Xresources
else else
rm ~/.i3/config ~/.i3/run.sh ~/.Xmodmap ~/.xsession ~/.config/synapse/gtkrc ~/.Xresources rm ~/.i3/{config,i3status.conf,run.sh} ~/.Xmodmap ~/.xsession ~/.config/synapse/gtkrc ~/.Xresources
fi fi
# Don't install these on Mac # Don't install these on Mac
mkdir -p ~/.i3 mkdir -p ~/.i3
ln -s $ABSPATH/i3/config ~/.i3/config ln -s $ABSPATH/i3/config ~/.i3/config
ln -s $ABSPATH/i3/i3status.conf ~/.i3/i3status.conf 2>/dev/null ln -s $ABSPATH/i3/$(hostname)-status.conf ~/.i3/i3status.conf 2>/dev/null
ln -s $ABSPATH/i3/run.sh ~/.i3/run.sh ln -s $ABSPATH/i3/run.sh ~/.i3/run.sh
ln -s $ABSPATH/i3/Xmodmap ~/.Xmodmap ln -s $ABSPATH/i3/Xmodmap ~/.Xmodmap
ln -s $ABSPATH/i3/xsession ~/.xsession ln -s $ABSPATH/i3/xsession ~/.xsession