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

View file

@ -140,7 +140,12 @@ output LVDS-1 resolution 1366x768 position 0,0
# Show the next scratchpad window or hide the focused scratchpad window. # Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them. # If there are multiple scratchpad windows, this command cycles through them.
bindsym $mod+minus scratchpad show 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: # Status Bar:
# #
@ -152,7 +157,7 @@ bar {
statusline #ffffff statusline #ffffff
background #272822 background #272822
inactive_workspace #32323200 #32323200 #5c5c5c inactive_workspace #32323200 #32323200 #5c5c5c
} }
} }
# Read sway-bar(5) for more information about this section. # 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