From: Mart Lubbers Date: Fri, 15 May 2015 19:51:39 +0000 (+0200) Subject: update for chromebook X-Git-Url: https://git.martlubbers.net/?a=commitdiff_plain;h=85e3fa2486dcfbd40a6814a2402b4ac749d4e75c;p=dotfiles.git update for chromebook --- diff --git a/.bashrc b/.bashrc index 8f5847e..7b2a7ac 100644 --- a/.bashrc +++ b/.bashrc @@ -3,7 +3,7 @@ shopt -s histappend . /usr/share/bash-completion/bash_completion -export TERMINAL=urxvtc +export TERMINAL=urxvt export EDITOR=vim export TERM=screen export BROWSER=firefox @@ -15,6 +15,8 @@ export HISTCONTROL=ignoreboth export SUDO_ASKPASS=/usr/lib/ssh/ssh-askpass export NOTMUCH_CONFIG=/home/mart/.mutt/notmuch-config +export PATH=$PATH:~/projects/clean/bin + alias ls='ls --color=auto' alias grep='grep --color=auto' alias vi=vim diff --git a/.config/i3/bar b/.config/i3/bar index 69458dd..cef8287 100755 --- a/.config/i3/bar +++ b/.config/i3/bar @@ -21,5 +21,5 @@ volume(){ while true; do echo "$(volume) | $(battery) | $(date +%x\ %X)" - sleep 1 + sleep 10 done diff --git a/.config/i3/config b/.config/i3/config index 0224718..858e675 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -9,16 +9,12 @@ # # Please see http://i3wm.org/docs/userguide.html for a complete reference! -set $mod Mod4 +set $mod Mod1 exec xautolock -locker 'i3lock -c ccff00' exec convert -size 1600x900 plasma:fractal -modulate 20,100,10 png:- | display -window root exec netctltray -bindsym XF86AudioLowerVolume exec amixer set Master 5- -bindsym XF86AudioRaiseVolume exec amixer set Master 5+ -bindsym XF86AudioMute exec amixer set Master toggle - # Font for window titles. Will also be used by the bar unless a different font # is used in the bar {} block below. # This font is widely installed, provides lots of unicode glyphs, right-to-left @@ -33,13 +29,11 @@ font pango:DejaVu Sans Mono 8 # Use Mouse+$mod to drag floating windows to their wanted position floating_modifier $mod +hide_edge_borders none # start a terminal bindsym $mod+Return exec i3-sensible-terminal -# start a browser -bindsym $mod+b exec uzbl-browser - # lock the screen bindsym $mod+l exec xautolock -locknow @@ -60,10 +54,10 @@ bindsym $mod+n focus up bindsym $mod+s focus right # alternatively, you can use the cursor keys: -bindsym $mod+Left focus left -bindsym $mod+Down focus down -bindsym $mod+Up focus up -bindsym $mod+Right focus right +bindsym $mod+Left exec xbacklight -dec 5 +bindsym $mod+Down exec amixer set Master 5- +bindsym $mod+Up exec amixer set Master 5+ +bindsym $mod+Right exec xbacklight -inc 5 # move focused window bindsym $mod+Shift+h move left @@ -163,5 +157,8 @@ bindsym $mod+p mode "resize" # Start i3bar to display a workspace bar (plus the system information i3status # finds out, if available) bar { - status_command ~/.config/i3/bar + status_command i3status + mode hide + modifier $mod + font pango:DejaVu Sans Mono 14 } diff --git a/.config/i3status/config b/.config/i3status/config new file mode 100644 index 0000000..311f79a --- /dev/null +++ b/.config/i3status/config @@ -0,0 +1,44 @@ +general { + colors = true + interval = 5 +} + +order += "volume master" +order += "disk /" +order += "wireless wlp1s0" +order += "battery 0" +order += "tztime local" + + +volume master { + format = "♪: %volume" + format_muted = "♪: muted (%volume)" + device = "default" + mixer = "Master" + mixer_idx = 0 +} + +wireless wlp1s0 { + format_up = "W: (%quality) %ip" + format_down = "W: down" +} + +battery 0 { + format = "%status %percentage (%remaining)" + format_down = "No Battery" + status_chr = "⚇ CHR" + status_bat = "⚡ BAT" + status_full = "☻ FULL" + hide_seconds = true + integer_battery_capacity = true + path = "/sys/class/power_supply/BAT%d/uevent" + low_threshold = 10 +} + +tztime local { + format = "%Y-%m-%d %H:%M:%S" +} + +disk "/" { + format = "%free/%total" +} diff --git a/install.sh b/install.sh index d3eb3e5..979485b 100644 --- a/install.sh +++ b/install.sh @@ -6,7 +6,7 @@ sudo localectl set-keymap --no-convert dvorak hf=(.bashrc .gitconfig .inputrc .vimrc .xinitrc .Xresources .vim .mutt/mailcap .mutt/msmtprc .mutt/muttrc .mutt/offlineimap.py .mutt/offlineimaprc .mutt/notmuch-config .config/i3/bar .config/i3/config -.config/i3/gpass.sh) +.config/i3/gpass.sh .config/i3status/config) for f in ${hf[*]} do unlink "$HOME/$f" || true