using i3blocks and updates

This commit is contained in:
aj 2018-12-05 23:44:23 +00:00
parent b1b8c5f0b4
commit 26cb46a3df
3 changed files with 208 additions and 35 deletions

View File

@ -132,7 +132,8 @@ blur-background-exclude = [
]; ];
opacity-rule = [ opacity-rule = [
"70:class_g = 'Gnome-terminal'" "75:class_g = 'Gnome-terminal'",
"90:class_g = 'Gedit'"
]; ];
################################# #################################

75
config
View File

@ -17,6 +17,11 @@ gaps outer 10
smart_gaps on smart_gaps on
bindsym $mod+n exec --no-startup-id nautilus
bindsym $mod+m exec --no-startup-id spotify
bindsym $mod+c exec --no-startup-id chromium
bindsym $mod+shift+l exec pkill -KILL -u andy
set $mod Mod4 set $mod Mod4
# Font for window titles. Will also be used by the bar unless a different font # Font for window titles. Will also be used by the bar unless a different font
@ -44,17 +49,17 @@ bindsym $mod+Return exec i3-sensible-terminal
bindsym $mod+Shift+q kill bindsym $mod+Shift+q kill
# start dmenu (a program launcher) # start dmenu (a program launcher)
bindsym $mod+d exec dmenu_run #bindsym $mod+d exec dmenu_run
# There also is the (new) i3-dmenu-desktop which only displays applications # 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 # shipping a .desktop file. It is a wrapper around dmenu, so you need that
# installed. # installed.
# bindsym $mod+d exec --no-startup-id i3-dmenu-desktop bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
# change focus # change focus
bindsym $mod+j focus left #bindsym $mod+j focus left
bindsym $mod+k focus down #bindsym $mod+k focus down
bindsym $mod+l focus up #bindsym $mod+l focus up
bindsym $mod+semicolon focus right #bindsym $mod+semicolon focus right
# alternatively, you can use the cursor keys: # alternatively, you can use the cursor keys:
bindsym $mod+Left focus left bindsym $mod+Left focus left
@ -63,10 +68,10 @@ bindsym $mod+Up focus up
bindsym $mod+Right focus right bindsym $mod+Right focus right
# move focused window # move focused window
bindsym $mod+Shift+j move left #bindsym $mod+Shift+j move left
bindsym $mod+Shift+k move down #bindsym $mod+Shift+k move down
bindsym $mod+Shift+l move up #bindsym $mod+Shift+l move up
bindsym $mod+Shift+semicolon move right #bindsym $mod+Shift+semicolon move right
# alternatively, you can use the cursor keys: # alternatively, you can use the cursor keys:
bindsym $mod+Shift+Left move left bindsym $mod+Shift+Left move left
@ -102,16 +107,16 @@ bindsym $mod+a focus parent
# Define names for default workspaces for which we configure key bindings later on. # Define names for default workspaces for which we configure key bindings later on.
# We use variables to avoid repeating the names in multiple places. # We use variables to avoid repeating the names in multiple places.
set $ws1 "1" set $ws1 "I"
set $ws2 "2" set $ws2 "II"
set $ws3 "3" set $ws3 "III"
set $ws4 "4" set $ws4 "IV"
set $ws5 "5" set $ws5 "V"
set $ws6 "6" set $ws6 "VI"
set $ws7 "7" set $ws7 "VII"
set $ws8 "8" set $ws8 "VIII"
set $ws9 "9" set $ws9 "IX"
set $ws10 "10" set $ws10 "X"
# switch to workspace # switch to workspace
bindsym $mod+1 workspace $ws1 bindsym $mod+1 workspace $ws1
@ -126,16 +131,16 @@ bindsym $mod+9 workspace $ws9
bindsym $mod+0 workspace $ws10 bindsym $mod+0 workspace $ws10
# move focused container to workspace # move focused container to workspace
bindsym $mod+Shift+1 move container to workspace $ws1 bindsym $mod+Shift+1 move container to workspace $ws1 ; workspace $ws1
bindsym $mod+Shift+2 move container to workspace $ws2 bindsym $mod+Shift+2 move container to workspace $ws2 ; workspace $ws2
bindsym $mod+Shift+3 move container to workspace $ws3 bindsym $mod+Shift+3 move container to workspace $ws3 ; workspace $ws3
bindsym $mod+Shift+4 move container to workspace $ws4 bindsym $mod+Shift+4 move container to workspace $ws4 ; workspace $ws4
bindsym $mod+Shift+5 move container to workspace $ws5 bindsym $mod+Shift+5 move container to workspace $ws5 ; workspace $ws5
bindsym $mod+Shift+6 move container to workspace $ws6 bindsym $mod+Shift+6 move container to workspace $ws6 ; workspace $ws6
bindsym $mod+Shift+7 move container to workspace $ws7 bindsym $mod+Shift+7 move container to workspace $ws7 ; workspace $ws7
bindsym $mod+Shift+8 move container to workspace $ws8 bindsym $mod+Shift+8 move container to workspace $ws8 ; workspace $ws8
bindsym $mod+Shift+9 move container to workspace $ws9 bindsym $mod+Shift+9 move container to workspace $ws9 ; workspace $ws9
bindsym $mod+Shift+0 move container to workspace $ws10 bindsym $mod+Shift+0 move container to workspace $ws10 ; workspace $ws10
# reload the configuration file # reload the configuration file
bindsym $mod+Shift+c reload bindsym $mod+Shift+c reload
@ -174,15 +179,17 @@ bindsym $mod+r mode "resize"
# Start i3bar to display a workspace bar (plus the system information i3status # Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available) # finds out, if available)
bar { bar {
#i3bar_command i3bar -t #i3bar_command polybar
status_command i3status status_command i3blocks -c ~/.config/i3/i3blocks.conf
#status_command i3blocks
position top position top
colors{ colors{
background #002B36 background #002B36
} }
separator_symbol "/" separator_symbol "/"
tray_output none tray_output none
#height 30 height 23
} }
exec_always compton -b --config ~/.config/i3/compton.conf #exec_always --no-startup-id killall polybar; polybar -r bar
exec_always --no-startup-id compton -b --config ~/.config/i3/compton.conf

165
i3blocks.conf Normal file
View File

@ -0,0 +1,165 @@
# i3blocks config file
#
# Please see man i3blocks for a complete reference!
# The man page is also hosted at http://vivien.github.io/i3blocks
#
# List of valid properties:
#
# align
# color
# command
# full_text
# instance
# interval
# label
# min_width
# name
# separator
# separator_block_width
# short_text
# signal
# urgent
# Global properties
#
# The top properties below are applied to every block, but can be overridden.
# Each block command defaults to the script name to avoid boilerplate.
command=/usr/lib/i3blocks/$BLOCK_NAME
separator_block_width=15
markup=none
# 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
# 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=♪
#instance=Master
#instance=PCM
#interval=once
#signal=10
# Memory usage
#
# The type defaults to "mem" if the instance is not specified.
[memory]
label=MEM
#separator=false
interval=30
#[memory]
#label=SWAP
#instance=swap
#separator=false
#interval=30
# Disk usage
#
# The directory defaults to $HOME if the instance is not specified.
# The script may be called with a optional argument to set the alert
# (defaults to 10 for 10%).
#[disk]
#label=HOME
#instance=/home/andy/
#interval=30
#separator=false
#[disk]
#label=ROOT
#instance=/
#interval=30
# Network interface monitoring
#
# 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
separator=false
[public-ip]
command=wget -qO - icanhazip.com
color=#00FF00
interval=500
separator=false
[wifi]
instance=wlp3s0
interval=10
separator=false
[bandwidth]
instance=wlp3s0
interval=5
# OpenVPN support
#
# Support multiple VPN, with colors.
[openvpn]
interval=20
# CPU usage
#
# The script may be called with -w and -c switches to specify thresholds,
# see the script for details.
[cpu_usage]
label=CPU
interval=10
#min_width=CPU: 100.00%
#separator=false
#[load_average]
#interval=10
# Battery indicator
#
# The battery instance defaults to 0.
[battery]
#label=BAT
label=⚡
#instance=1
interval=120
# Date Time
#
[time]
command=date '+%d.%m %H:%M'
interval=10
# Temperature
#
# Support multiple chips, though lm-sensors.
# The script may be called with -w and -c switches to specify thresholds,
# see the script for details.
#[temperature]
#label=TEMP
#interval=10
# Key indicators
#
# Add the following bindings to i3 config file:
#
# bindsym --release Caps_Lock exec pkill -SIGRTMIN+11 i3blocks
# bindsym --release Num_Lock exec pkill -SIGRTMIN+11 i3blocks
#[keyindicator]
#instance=CAPS
#interval=once
#signal=11
#[keyindicator]
#instance=NUM
#interval=once
#signal=11