From: Mart Lubbers Date: Sat, 23 Jan 2016 13:25:21 +0000 (+0100) Subject: laptop commit X-Git-Url: https://git.martlubbers.net/?a=commitdiff_plain;h=52b68ea369a25a4eb8d71720177064892d9e1bf6;p=dotfiles.git laptop commit --- diff --git a/email/.mutt/offlineimaprc b/email/.mutt/offlineimaprc index 107a1f4..9cdd068 100644 --- a/email/.mutt/offlineimaprc +++ b/email/.mutt/offlineimaprc @@ -16,7 +16,7 @@ localfolders = ~/.mutt/mail [Repository Remote] type = IMAP -folderfilter = lambda x: folderfilter(x) +#folderfilter = lambda x: folderfilter(x) remotepasseval = mailpasswd() remotehost = mail.martlubbers.net remoteuser = mart@martlubbers.net diff --git a/x/.config/i3/config b/x/.config/i3/config index 10af625..79ea723 100644 --- a/x/.config/i3/config +++ b/x/.config/i3/config @@ -17,11 +17,8 @@ set $fontsize 12 exec xautolock -locker 'echo RELOADAGENT | gpg-connect-agent; i3lock' # set a background exec ~/.local/bin/bg -# set the network switcher -exec netctltray +exec dunst -# Toggle music playback -bindsym Pause exec mpc toggle # Printscreen current window bindsym Shift+Print exec ~/.local/bin/scr window # Printscreen @@ -29,10 +26,10 @@ bindsym Print exec ~/.local/bin/scr # lock the screen bindsym $mod+l exec xautolock -locknow # put a password in the clipboard -bindsym $mod+y exec ~/.local/bin/passmenu +bindsym $mod+y exec passmenu # font for window titles. -font pango:DejaVu Sans Mono 8 +font pango:$font 8 # use Mouse+$mod to drag floating windows to their wanted position floating_modifier $mod @@ -54,10 +51,11 @@ bindsym $mod+n focus up bindsym $mod+s focus right # alternatively, you can use the cursor keys: -bindsym $mod+Left exec xbacklight -dec 5 -bindsym $mod+Down exec amixer set Master 5- && kill -n 10 `pidof i3status` -bindsym $mod+Up exec amixer set Master 5+ && kill -n 10 `pidof i3status` -bindsym $mod+Right exec xbacklight -inc 5 +bindsym XF86MonBrightnessUp exec xbacklight -inc 5 +bindsym XF86MonBrightnessDown exec xbacklight -dec 5 +bindsym XF86AudioMute exec xbacklight -dec 5 +bindsym XF86AudioLowerVolume exec xbacklight -dec 5 +bindsym XF86AudioRaiseVolume exec xbacklight -dec 5 # move focused window bindsym $mod+Shift+h move left @@ -140,7 +138,7 @@ bindsym $mod+p mode "resize" # Start i3bar to display a workspace bar (plus the system information i3status # finds out, if available) bar { - status_command /home/mart/projects/i3status/i3status + status_command i3status modifier $mod font pango:$font $fontsize } diff --git a/x/.config/i3status/config b/x/.config/i3status/config index 3ade2be..9151f33 100644 --- a/x/.config/i3status/config +++ b/x/.config/i3status/config @@ -3,29 +3,45 @@ general { interval = 5 } -order += "cmd helloworld" +order += "wireless wlp2s0" +order += "ethernet enp3s0f1" order += "volume master" order += "disk /" order += "wireless wlp1s0" order += "battery 0" order += "tztime local" + +battery 0 { + format = "%status %percentage %remaining %emptytime" + 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" - mixer = "Master" - mixer_idx = 0 +} + +wireless wlp2s0 { + format_up = "W: %essid %ip" + format_down ="W: down" +} + +ethernet enp3s0f1 { + format_up = "E: %ip" + format_down ="E: down" } tztime local { - format = "⌚ %Y-%m-%d %H:%M:%S" + format = "%Y-%m-%d %H:%M:%S" } disk "/" { format = "%free/%total free" } - -cmd helloworld { - cmd = "pkill -0 quodlibet && quodlibet --print-playing || echo -n Stopped" -} diff --git a/x/.local/bin/network b/x/.local/bin/network new file mode 100755 index 0000000..92131b5 --- /dev/null +++ b/x/.local/bin/network @@ -0,0 +1,3 @@ +#!/bin/bash +find /etc/netctl -maxdepth 1 -type f | dmenu | \ + xargs -I{} bash -c "sudo -A netctl switch-to \$(basename {})"