Set up brightness, and tweak status bar slightly

This commit is contained in:
David Thurstenson 2016-02-09 14:00:31 -06:00
parent 0e649ef9b3
commit dd893b94b6
3 changed files with 71 additions and 5 deletions

View File

@ -159,7 +159,7 @@ bindsym $mod+m move workspace to output left
# Start i3bar to display a workspace bar (plus the system information i3status # Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available) # finds out, if available)
bar { bar {
status_command i3status status_command i3status -c ~/.config/i3status/$HOSTNAME.config
tray_output primary tray_output primary
} }
@ -168,3 +168,7 @@ bindsym Mod1+Control+l exec slock
# Start all windows with no border. Still able to toggle through them with $mod+Shift+B # Start all windows with no border. Still able to toggle through them with $mod+Shift+B
new_window none new_window none
new_float none new_float none
# Sreen brightness controls
bindsym XF86MonBrightnessUp exec xbacklight -inc 20 # increase screen brightness
bindsym XF86MonBrightnessDown exec xbacklight -dec 20 # decrease screen brightness

62
.config/i3status/config~ Normal file
View File

@ -0,0 +1,62 @@
# i3status configuration file.
# see "man i3status" for documentation.
# It is important that this file is edited as UTF-8.
# The following line should contain a sharp s:
# ß
# If the above line is not correctly displayed, fix your editor first!
general {
colors = true
interval = 5
}
#order += "ipv6"
order += "disk /"
order += "disk /home"
order += "run_watch VPN"
order += "wireless _first_"
order += "ethernet _first_"
order += "run_watch DHCP"
order += "battery 0"
order += "load"
order += "tztime local"
wireless _first_ {
format_up = "W: (%quality at %essid) %ip"
format_down = "W: down"
}
ethernet _first_ {
# if you use %speed, i3status requires root privileges
format_up = "E: %ip (%speed)"
format_down = "E: down"
}
battery 0 {
format = "%status %percentage %remaining"
}
run_watch DHCP {
pidfile = "/var/run/dhclient*.pid"
}
run_watch VPN {
pidfile = "/var/run/vpnc/pid"
}
tztime local {
format = "%Y-%m-%d %H:%M"
}
load {
format = "%1min"
}
disk "/home" {
format = "F: %free A: %avail/T: %total"
}
disk "/" {
format = "%avail"
}

View File

@ -18,7 +18,7 @@ order += "run_watch VPN"
order += "wireless _first_" order += "wireless _first_"
order += "ethernet _first_" order += "ethernet _first_"
order += "run_watch DHCP" order += "run_watch DHCP"
order += "battery 0" order += "battery 1"
order += "load" order += "load"
order += "tztime local" order += "tztime local"
@ -33,7 +33,7 @@ ethernet _first_ {
format_down = "E: down" format_down = "E: down"
} }
battery 0 { battery 1 {
format = "%status %percentage %remaining" format = "%status %percentage %remaining"
} }
@ -54,9 +54,9 @@ load {
} }
disk "/home" { disk "/home" {
format = "/home: %avail/%total" format = "/home: %percentage_used"
} }
disk "/" { disk "/" {
format = "/: %avail/%total" format = "/: %percentage_used"
} }