add: i3blocks

fix. aliasrc type
fix: i3status config location
This commit is contained in:
Tobias Reisinger 2020-01-12 01:54:38 +01:00
commit f5efc9dff8
4 changed files with 39 additions and 0 deletions

View file

@ -1,3 +1,5 @@
#!/bin/bash
alias aliases='vim ~/.bash_aliases && bashrc-reload'
alias bashrc-reload='source ~/.bashrc'

27
.config/i3blocks/config Normal file
View file

@ -0,0 +1,27 @@
# Global properties
full_text=|
align=center
separator=false
separator_block_width=15
[status_mpd]
command=./mpc-status
interval=persist
[separator]
[launch_rocket_league]
full_text=RL
command=xdg-open steam://run/252950 > /dev/null
color=#00ffff
[launch_shell_shock]
full_text=SS
command=xdg-open steam://run/326460 > /dev/null
color=#00ff00
[separator]
[time]
command=date '+%Y-%m-%d %H:%M:%S'
interval=1

10
.config/i3blocks/mpc-status Executable file
View file

@ -0,0 +1,10 @@
#!/bin/sh
alias mpc-current='mpc -f "%title% - %album% - %artist%" current'
mpc-current
while :
do
mpc-current --wait
done

31
.config/i3status/config Normal file
View file

@ -0,0 +1,31 @@
# i3status configuration file.
# see "man i3status" for documentation.
# It is important that this file is edited as UTF-8.
# The following line should contain a sharp s:
# ß
# If the above line is not correctly displayed, fix your editor first!
general {
colors = true
interval = 1
}
#order += "ipv6"
order += "ethernet _first_"
order += "cpu_usage"
order += "tztime local"
ethernet _first_ {
# if you use %speed, i3status requires root privileges
format_up = "E: %ip (%speed)"
format_down = "E: down"
}
tztime local {
format = "%Y-%m-%d %H:%M:%S"
}
cpu_usage {
format = "%usage"
}