Start adding i3

This commit is contained in:
flyingscorpio@arch-desktop 2020-04-08 18:41:34 +02:00
parent dc0d1292ec
commit 370b2d4a49
3 changed files with 156 additions and 0 deletions

View file

@ -0,0 +1,47 @@
# 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.
# Change $SCRIPT_DIR to the location of your scripts!
command=scripts/$BLOCK_NAME
separator_block_width=15
markup=pango
[arch-update]
interval=3600
LABEL=Updates:
QUIET=true
WATCH=^linux.* ^pacman.*
BASE_COLOR=#5fff5f
UPDATE_COLOR=#ffff85
LABEL=
[rofi-calendar]
interval=3600
LABEL=
DATEFTM=+ %a. %d. %b. %Y
SHORTFTM=+ %d.%m.%Y
[]

View file

@ -0,0 +1,59 @@
general {
output_format = "i3bar"
colors = false
markup = pango
interval = 2
color_good = '#2f343f'
color_degraded = '#ebcb8b'
color_bad = '#ba5e57'
}
order += "load"
order += "cpu_temperature 0"
order += "disk /"
order += "disk /run/media/flyingscorpio/Backup"
order += "ethernet enp4s0"
order += "path_exists VPN"
order += "volume master"
order += "tztime local"
load {
format = "<span background='#f59335'>  </span><span background='#e5e9f0'> %5min Load </span>"
}
cpu_temperature 0 {
format = "<span background='#bf616a'>  </span><span background='#e5e9f0'> %degrees °C </span>"
path = "/sys/class/thermal/thermal_zone0/temp"
}
disk "/" {
format = "<span background='#fec7cd'>  </span><span background='#e5e9f0'> %free Free </span>"
}
disk "/run/media/flyingscorpio/Backup" {
format = "<span background='#a1d569'>  </span><span background='#e5e9f0'> %free Free </span>"
}
ethernet enp4s0 {
format_up = "<span background='#88c0d0'>  </span><span background='#e5e9f0'> %ip </span>"
format_down = "<span background='#88c0d0'>  </span><span background='#e5e9f0'> Disconnected </span>"
}
path_exists VPN {
path = "/proc/sys/net/ipv4/conf/proton0"
format = "<span background='#b3acff'> %title </span><span background='#e5e9f0'> ON </span>"
format_down = "<span background='#b3acff'> %title </span><span background='#e5e9f0'> OFF </span>"
}
volume master {
format = "<span background='#ebcb8b'>  </span><span background='#e5e9f0'> %volume </span>"
format_muted = "<span background='#ebcb8b'>  </span><span background='#e5e9f0'> Muted </span>"
device = "default"
mixer = "Master"
mixer_idx = 0
}
tztime local {
format = "<span background='#81a1c1'>  </span><span background='#e5e9f0'> %time </span>"
format_time = "%a %-d %b %H:%M"
}

View file

@ -0,0 +1,50 @@
#!/bin/sh
## This script takes care of the i3 configuration
if [ -z "$BASE_DIR" ]; then
echo "BASE_DIR wasn't set."
exit 1
fi
mkdir -p ~/github_dotfiles
if [ -e ~/github_dotfiles/i3-starterpack ]; then
if [ "$UPDATE" = 'true' ]; then
cd ~/github_dotfiles/i3-starterpack && git pull
fi
else
cd ~/github_dotfiles && git clone https://github.com/addy-dclxvi/i3-starterpack.git
fi
if [ -e ~/github_dotfiles/i3blocks-contrib ]; then
if [ "$UPDATE" = 'true' ]; then
cd ~/github_dotfiles/i3blocks-contrib && git pull
fi
else
cd ~/github_dotfiles && git clone https://github.com/vivien/i3blocks-contrib.git
fi
# Add i3 main config {{{
echo "Adding i3/config"
mkdir -p ~/.config/i3
ln -rs "$BASE_DIR"/dotfiles/i3/i3_config ~/.config/i3/config 2> /dev/null
# }}}
# Add i3status config {{{
echo "Adding i3status/config"
mkdir -p ~/.config/i3status
ln -rs "$BASE_DIR"/dotfiles/i3/i3status_config ~/.config/i3status/config 2> /dev/null
# }}}
# Add i3blocks config {{{
echo "Adding i3blocks/config"
mkdir -p ~/.config/i3blocks/scripts
ln -rs "$BASE_DIR"/dotfiles/i3/i3blocks_config ~/.config/i3blocks/config 2> /dev/null
ln -rs ~/github_dotfiles/i3blocks-contrib/arch-update/arch-update ~/.config/i3blocks/scripts/arch-update 2> /dev/null
ln -rs ~/github_dotfiles/i3blocks-contrib/rofi-calendar/rofi-calendar ~/.config/i3blocks/scripts/rofi-calendar 2> /dev/null
# }}}