From: Mart Lubbers Date: Fri, 3 Jun 2016 10:46:23 +0000 (+0200) Subject: update network script with ntp and i3 switch to alsa X-Git-Url: https://git.martlubbers.net/?a=commitdiff_plain;h=8e3adec8276183223b894ed8e5d7bcb57b199b04;p=dotfiles.git update network script with ntp and i3 switch to alsa --- diff --git a/x/.config/i3/config b/x/.config/i3/config index 9297591..b21cb98 100644 --- a/x/.config/i3/config +++ b/x/.config/i3/config @@ -56,9 +56,9 @@ bindsym $mod+s focus right # alternatively, you can use the cursor keys: bindsym XF86MonBrightnessUp exec xbacklight -inc 5 bindsym XF86MonBrightnessDown exec xbacklight -dec 5 -bindsym XF86AudioMute exec pactl set-sink-mute 1 toggle -bindsym XF86AudioLowerVolume exec pactl set-sink-volume 1 -5% -bindsym XF86AudioRaiseVolume exec pactl set-sink-volume 1 +5% +bindsym XF86AudioMute exec amixer -c 1 set Master mute +bindsym XF86AudioLowerVolume exec amixer -c 1 set Master 5%- +bindsym XF86AudioRaiseVolume exec amixer -c 1 set Master 5%+ # move focused window bindsym $mod+Shift+h move left diff --git a/x/.config/i3status/config b/x/.config/i3status/config index c3ded1b..fa2e5f2 100644 --- a/x/.config/i3status/config +++ b/x/.config/i3status/config @@ -12,20 +12,20 @@ order += "battery 0" order += "tztime local" battery 0 { - format = "%status %percentage %remaining" - integer_battery_capacity = true - format_down = "No battery" - status_chr = "⚇ CHR" - status_bat = "⚡ BAT" - status_full = "☻ FULL" - path = "/sys/class/power_supply/BAT%d/uevent" - low_threshold = 10 + format = "%status %percentage %remaining" + integer_battery_capacity = true + format_down = "No battery" + status_chr = "⚇ CHR" + status_bat = "⚡ BAT" + status_full = "☻ FULL" + path = "/sys/class/power_supply/BAT%d/uevent" + low_threshold = 10 } volume master { - format = "♪: %volume" - format_muted = "♪: muted (%volume)" - device = "default" + format = "♪: %volume" + format_muted = "♪: muted (%volume)" + device = "hw:1" } wireless wlp2s0 { diff --git a/x/.local/bin/network b/x/.local/bin/network index 905ff44..4cb4f0c 100755 --- a/x/.local/bin/network +++ b/x/.local/bin/network @@ -1,2 +1,3 @@ #!/bin/bash -netctl list | cut -b 3- | dmenu | ifne xargs sudo -A netctl switch-to +netctl list | cut -b 3- | dmenu | ifne xargs -I{}\ + sudo -A bash -c "netctl switch-to {} && ntpd -qg && hwclock -w"