Use hostname configs instead of global i3status.conf
This commit is contained in:
parent
ce60a18c47
commit
624160b5c3
@ -11,16 +11,15 @@ general {
|
||||
interval = 1
|
||||
}
|
||||
order += "disk /"
|
||||
order += "wireless wlp2s0"
|
||||
order += "ethernet enp1s0"
|
||||
order += "ethernet tun0"
|
||||
order += "ethernet enp2s0f0"
|
||||
order += "volume master"
|
||||
order += "battery 1"
|
||||
order += "tztime local"
|
||||
wireless wlp2s0 {
|
||||
format_up = "%essid : %ip @ %quality"
|
||||
format_down = "!W"
|
||||
ethernet tun0 {
|
||||
format_up = "%ip"
|
||||
format_down = "!T"
|
||||
}
|
||||
ethernet enp1s0 {
|
||||
ethernet enp2s0f0 {
|
||||
# if you use %speed, i3status requires root privileges
|
||||
format_up = "%ip (%speed)"
|
||||
format_down = "!E"
|
||||
@ -39,12 +38,6 @@ volume master {
|
||||
mixer = "Master"
|
||||
mixer_idx = 0
|
||||
}
|
||||
battery 1 {
|
||||
#format = "%status %remaining %emptytime"
|
||||
format = "%status %percentage"
|
||||
path = "/sys/class/power_supply/BAT1/uevent"
|
||||
low_threshold = 20
|
||||
}
|
||||
disk "/" {
|
||||
format = "%free"
|
||||
}
|
@ -89,14 +89,14 @@ while getopts ":hbsdpcw" VALUE "$@"; do
|
||||
ln -s $ABSPATH/shells/liquidpromptrc ~/.config/liquidpromptrc
|
||||
if [ "$(uname)" != "Darwin" ]; 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
|
||||
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
|
||||
# Don't install these on Mac
|
||||
mkdir -p ~/.i3
|
||||
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/Xmodmap ~/.Xmodmap
|
||||
ln -s $ABSPATH/i3/xsession ~/.xsession
|
||||
|
Loading…
Reference in New Issue
Block a user