update sway+zsh config

This commit is contained in:
George Rawlinson 2016-07-16 02:35:17 +12:00
parent 3a7f4ed2dc
commit e27db94c80
3 changed files with 28 additions and 45 deletions

View file

@ -11,51 +11,31 @@ general {
interval = 5
}
# order - wireless, battery, load, date/time
# order - wireless, battery, volume, load, date/time
order += "wireless _first_"
order += "battery 0"
order += "volume master"
order += "load"
order += "tztime local"
# unused
#order += "ipv6"
#order += "disk /"
#order += "run_watch DHCP"
#order += "run_watch VPN"
#order += "ethernet _first_"
#order += "volume master"
# module configuration
wireless _first_ {
format_up = " %essid (%quality)"
format_down = ""
}
ethernet _first_ {
# if you use %speed, i3status requires root privileges
format_up = "E: %ip (%speed)"
format_down = "E: down"
}
battery 0 {
last_full_capacity = true
hide_seconds = true
integer_battery_capacity = true
last_full_capacity = true
hide_seconds = true
integer_battery_capacity = true
format = "%status %percentage (%remaining)"
status_chr = ""
status_bat = ""
status_full = ""
}
run_watch DHCP {
pidfile = "/var/run/dhclient*.pid"
}
run_watch VPN {
pidfile = "/var/run/vpnc/pid"
status_chr = ""
status_bat = ""
status_full = ""
}
tztime local {
format = "%F %H:%M"
format = "%F %H:%M"
}
load {
@ -67,9 +47,7 @@ disk "/" {
}
volume master {
format = "♪: %volume"
format_muted = "♪: muted (%volume)"
device = "default"
mixer = "Master"
mixer_idx = 0
format = "♪%volume"
format_muted = "♪%volume"
device = "pulse"
}

View file

@ -140,19 +140,24 @@ output LVDS-1 resolution 1366x768 position 0,0
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
bindsym $mod+minus scratchpad show
#
# Audio:
#
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 1 toggle
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 1 -5%
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 1 +5%
#
# Status Bar:
#
bar {
status_command i3status
font pango:DejaVu Sans Mono, Icons 10
position top
colors {
statusline #ffffff
background #272822
inactive_workspace #32323200 #32323200 #5c5c5c
}
status_command i3status
font pango:DejaVu Sans Mono, Icons 10
position top
colors {
statusline #ffffff
background #272822
inactive_workspace #32323200 #32323200 #5c5c5c
}
}
# Read sway-bar(5) for more information about this section.

View file

@ -1 +1 @@
[[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && exec startx
[[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && exec sway