Add laptop/desktop switch

This commit is contained in:
David Aizenberg
2020-03-01 00:21:57 +02:00
parent 6006c84d1c
commit 3df9a88308
7 changed files with 475 additions and 8 deletions

61
desktop/i3status/config Normal file
View File

@@ -0,0 +1,61 @@
general {
colors = true
interval = 5
}
order += "ethernet eth0"
order += "path_exists VPN"
order += "load"
order += "tztime local"
order += "tztime berlin"
ethernet eth0 {
# if you use %speed, i3status requires the cap_net_admin capability
format_up = "eth: %ip (%speed)"
format_down = "eth"
}
battery all {
format = "%status %percentage %remaining %consumption"
format_down = "No battery"
last_full_capacity = true
status_chr = "⚡ CHR"
status_bat = "🔋 BAT"
status_unk = "? UNK"
status_full = "☻ FULL"
path = "/sys/class/power_supply/BAT%d/uevent"
low_threshold = 20
}
run_watch DHCP {
pidfile = "/var/run/dhclient*.pid"
}
run_watch VPNC {
# file containing the PID of a vpnc process
pidfile = "/var/run/vpnc/pid"
}
path_exists VPN {
# path exists when a VPN tunnel launched by nmcli/nm-applet is active
path = "/proc/sys/net/ipv4/conf/tun0"
}
tztime local {
format = "Day: %d Local: %H:%M"
}
tztime berlin {
format = "HH: %H:%M"
timezone = "Europe/Berlin"
}
load {
format = "%5min"
}
disk "/" {
format = "%free"
}