i3 blocks and colours, i3 config tweaks

x1carbon
Jure Podgoršek 2018-01-13 06:30:54 +01:00
parent 0f76084b43
commit 865e9c62c8
2 changed files with 84 additions and 59 deletions

View File

@ -19,7 +19,8 @@ exec xrandr --dpi 180
#font pango:monospace 8
#font pango:Fira Code 10
#font pango:Cantarell 10
font pango:Fira Mono, Icons 9
#font pango:Fira Mono, Icons 9
font pango:Iosevka Medium 10
# This font is widely installed, provides lots of unicode glyphs, right-to-left
# text rendering and scalability on retina/hidpi displays (thanks to pango).
@ -42,13 +43,17 @@ floating_modifier $mod
# Small (non-scaled) chrome
bindsym $mod+shift+w exec chromium --force-device-scale-factor=1
# Increase volume
bindsym $mod+shift+d exec "pamixer -i 5 && pkill -RTMIN+1 i3blocks"
bindsym XF86AudioRaiseVolume exec "pamixer -i 5 && pkill -RTMIN+1 i3blocks"
set $vol_sig_cmd pkill -RTMIN+10 i3blocks
set $vol_down_cmd pamixer -d 5
set $vol_up_cmd pamixer -i 5
bindsym $mod+shift+d exec "$vol_up_cmd && $vol_sig_cmd"
bindsym XF86AudioRaiseVolume exec "$vol_up_cmd && $vol_sig_cmd"
# Decrease volume
bindsym $mod+shift+s exec pamixer -d 5
bindsym XF86AudioLowerVolume exec pamixer -d 5
bindsym $mod+shift+s exec "$vol_down_cmd && $vol_sig_cmd"
bindsym XF86AudioLowerVolume exec "$vol_down_cmd && $vol_sig_cmd"
# Mute
bindsym XF86AudioMute exec pamixer -t
bindsym XF86AudioMute exec "pamixer -t && $vol_sig_cmd"
# start a terminal
#bindsym $mod+Return exec i3-sensible-terminal
@ -63,6 +68,11 @@ bindsym $mod+Shift+q kill
# start rofi (alt program launcher)
bindsym $mod+d exec --no-startup-id "rofi -combi-modi window,drun -show combi -modi combi -config ~/.local/rofi/config"
# Screen brightness
set $brt_sig_cmd pkill -RTMIN+5 i3blocks
bindsym XF86MonBrightnessUp exec "xbacklight -inc 10 && $brt_sig_cmd"
bindsym XF86MonBrightnessDown exec "xbacklight -dec 10 && $brt_sig_cmd"
# There also is the (new) i3-dmenu-desktop which only displays applications
# shipping a .desktop file. It is a wrapper around dmenu, so you need that
# installed.
@ -182,7 +192,8 @@ mode "resize" {
bindsym $mod+r mode "resize"
# External monitor
bindsym $mod+o exec xrandr --output DP1 --auto --right-of eDP1 --pos 2440x0
bindsym $mod+o exec xrandr --output DP1 --auto --right-of eDP1 && $set_bg
bindsym $mod+shift+o exec xrandr --output HDMI2 --auto --right-of eDP1 && $set_bg
# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)
@ -195,7 +206,9 @@ bar {
statusline #DCDCDC
focused_workspace #007c26 #005119 #fdf6e3
}
font pango:Fira Mono, Icons 10
#font pango:Fira Mono, Icons 10
font pango:FontAwesome Regular 11, Iosevka Medium 11
#font pango:FontAwesome Regular 11
}
# Colors
@ -222,7 +235,8 @@ exec compton -b
exec redshift-gtk
# Background
exec feh --bg-fill ~/Pictures/wlp.jpg
set $set_bg feh --bg-fill ~/Pictures/wlp.jpg
exec $set_bg
# Network manager applet
exec nm-applet

View File

@ -26,35 +26,38 @@
# Each block command defaults to the script name to avoid boilerplate.
command=/usr/lib/i3blocks/$BLOCK_NAME
separator_block_width=15
markup=none
# Volume indicator
#
# The first parameter sets the step (and units to display)
# The second parameter overrides the mixer selection
# See the script for details.
[volume]
#label=VOL
label=♪
#label=🔉
instance=Master
#instance=PCM
#[mediaplayer]
#label=♪
#label=
#instance=Lollypop
#interval=5
#signal=10
[brightness]
label=
color=#F8FF05
command=xbacklight -get | sed 's/.\{7\}$/%/'
interval=once
signal=10
signal=5
[volume]
command=/home/g1smo/Sredstva/i3blocks-contrib/volume-pulseaudio/volume-pulseaudio -S -F 3
#label=
interval=persist
# Memory usage
#
# The type defaults to "mem" if the instance is not specified.
[memory]
label=MEM
separator=false
#label=MEM
label=
color=#A85FFF
command=/home/g1smo/Sredstva/i3blocks-contrib/memory/memory
interval=10
[memory]
label=SWAP
instance=swap
#[memory]
#label=SWP
#instance=swap
#separator=false
interval=10
#interval=10
# Disk usage
#
@ -62,15 +65,15 @@ interval=10
# The script may be called with a optional argument to set the alert
# (defaults to 10 for 10%).
[disk]
label=HOME
#label=HOME
label=
color=#AAAAAA
#instance=/mnt/data
interval=30
# Network interface monitoring
#
[iface]
# If the instance is not specified, use the interface used for default route.
# The address can be forced to IPv4 or IPv6 with -4 or -6 switches.
[iface]
#instance=wlan0
color=#00FF00
interval=10
@ -79,6 +82,7 @@ separator=false
[wifi]
instance=wlp4s0
interval=10
label=
#separator=false
#[bandwidth]
@ -90,41 +94,48 @@ interval=10
# The script may be called with -w and -c switches to specify thresholds,
# see the script for details.
[cpu_usage]
label=CPU
#label=CPU
#label=
label=
color=#FA0009
interval=1
min_width=CPU: 80.00%
#separator=false
min_width="CPU100%"
#[load_average]
#interval=10
[load_average]
#label=
#label=☭
label=
color=#70E2FF
interval=3
# Battery indicator
#
# The battery instance defaults to 0.
[battery]
[battery2]
#label=BAT
label=⚡
#label=⚡
#instance=1
command=count=$(acpi -b | wc -l); sum=$(acpi -b | egrep -o '[0-9]{1,3}%' | tr -d '%' | xargs -I% echo -n '+%'); echo '' $(( sum / count ))%
#command=count=$(acpi -b | wc -l); sum=$(acpi -b | egrep -o '[0-9]{1,3}%' | tr -d '%' | xargs -I% echo -n '+%'); echo '' $(( sum / count ))%
command="/home/g1smo/Sredstva/i3blocks-contrib/battery2/battery2"
interval=30
markup=pango
[date]
label=
color=#ffffff
command=date '+%a %d %b'
#command=/home/g1smo/Sredstva/i3blocks-contrib/rofi-calendar/rofi-calendar
interval=5
separator=false
# Date Time
#
[time]
#command=date '+%Y-%m-%d %H:%M:%S'
command=date '+%a, %d %b %H:%M'
label=
color=#ffffff
command=date '+%H:%M'
interval=5
[separator]
# Generic media player support
#
# This displays "ARTIST - SONG" if a music is playing.
# Supported players are: spotify, vlc, audacious, xmms2, mplayer, and others.
#[mediaplayer]
#instance=spotify
#interval=5
#signal=10
[shutdown]
full_text=
command=/home/g1smo/Sredstva/i3blocks-contrib/shutdown_menu/shutdown_menu -c
#interval=once
# OpenVPN support
#