Add basic i3blocks

This commit is contained in:
Adam Gausmann 2018-02-05 17:09:48 -06:00
parent 035d697b0c
commit f0cf3705f7
4 changed files with 50 additions and 4 deletions

View file

@ -12,12 +12,18 @@ floating_modifier $mod
# ==========
# fonts
font pango:DejaVu Sans Mono 8
font pango:Liberation Mono 8
# gaps
for_window [class="^.*"] border pixel 0
gaps inner 12
# bar
bar {
status_command i3blocks
font pango:Liberation Mono 10
tray_output none
}
# behavior
# ========
@ -128,7 +134,7 @@ exec --no-startup-id ~/.local/bin/i3/autostart
# automount
exec --no-startup-id udiskie &
# bar and notifications
# notifications
exec --no-startup-id twmnd &
# appearance

39
.config/i3blocks/config Normal file
View file

@ -0,0 +1,39 @@
#
# ~/.config/i3blocks/.config
# author: adam gausmann
#
[volume]
label=vol
command=~/.local/lib/i3blocks/volume
interval=once
signal=1 # use `pkill -RTMIN+1 i3blocks` to update
[iface]
label=lan
command=~/.local/lib/i3blocks/iface
interval=5
[battery]
label=bat
command=~/.local/lib/i3blocks/battery
interval=60
[cpu]
label=cpu
command=~/.local/lib/i3blocks/cpu_usage
interval=5
[memory]
label=mem
command=~/.local/lib/i3blocks/memory
interval=5
[disk]
label=sda
command=~/.local/lib/i3blocks/disk
interval=300
[time]
command=date '+%Y-%m-%d %H:%M'
interval=10

View file

@ -15,7 +15,7 @@ background_color=darkred ; RBG hex and keywords (eg. lightgray) are supported.
icon= ; Path to image file. Optional.
; Font family.
font=Sans
font=Liberation Mono
; Font size.
font_size=13 ; In pixel.
@ -30,7 +30,7 @@ font_variant=medium
foreground_color=lightgray ; RBG hex and keywords (eg. lightgray) are supported.
; Height of the slide bar. Useful to match your tiling window manager's bar.
height=32 ; In pixel.
height=22 ; In pixel.
; Position of the notification slide.
position=bottom_center

1
.vimrc
View file

@ -30,3 +30,4 @@ set tabstop=4
set softtabstop=4
set expandtab
filetype indent on
set shiftwidth=4