Dotfiles config update (2021-11-15)
This commit is contained in:
parent
23e7521390
commit
afdecd3a09
|
@ -39,8 +39,8 @@ exec --no-startup-id pnmixer -t &
|
||||||
# Configure screens and resolution
|
# Configure screens and resolution
|
||||||
exec --no-startup-id ~/.config/i3/startxrandr.sh &
|
exec --no-startup-id ~/.config/i3/startxrandr.sh &
|
||||||
|
|
||||||
# Load compton or picom
|
# Load compton or picom (Compositor)
|
||||||
#exec --no-startup-id compton &
|
#exec --no-startup-id "sleep 15 && compton &"
|
||||||
exec --no-startup-id "sleep 15 && picom &"
|
exec --no-startup-id "sleep 15 && picom &"
|
||||||
|
|
||||||
# Configure wallpaper
|
# Configure wallpaper
|
||||||
|
|
Binary file not shown.
|
@ -1,12 +1,17 @@
|
||||||
[WEATHER_SIGNALER]
|
#[WEATHER_SIGNALER]
|
||||||
command=~/.config/i3blocks/weather/weather_signaler
|
#command=~/.config/i3blocks/weather/weather_signaler
|
||||||
interval=once
|
#interval=once
|
||||||
|
|
||||||
[WEATHER]
|
#[WEATHER]
|
||||||
command=~/.config/i3blocks/weather/weather_info.sh
|
#command=~/.config/i3blocks/weather/weather_info.sh
|
||||||
|
#interval=300
|
||||||
|
#color=#FEC925
|
||||||
|
#signal=2
|
||||||
|
|
||||||
|
[KERNEL]
|
||||||
|
command=~/.config/i3blocks/kernel/kernel_version.sh
|
||||||
interval=300
|
interval=300
|
||||||
color=#FEC925
|
color=#FEC925
|
||||||
signal=2
|
|
||||||
|
|
||||||
[DISK]
|
[DISK]
|
||||||
command=df -h / | awk '/\//{ printf(" 💾 %4s/%s \n", $4, $2) }'
|
command=df -h / | awk '/\//{ printf(" 💾 %4s/%s \n", $4, $2) }'
|
||||||
|
|
32
.config/i3blocks/kernel/kernel_version.sh
Executable file
32
.config/i3blocks/kernel/kernel_version.sh
Executable file
|
@ -0,0 +1,32 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Parameters
|
||||||
|
longNumber=2
|
||||||
|
kernelCommand="uname -r"
|
||||||
|
archCommand=$(uname -m)
|
||||||
|
|
||||||
|
# Kernel version
|
||||||
|
kernelVersion=""
|
||||||
|
count=1
|
||||||
|
|
||||||
|
# Extract numbers of kernel version
|
||||||
|
kernelVersionTemp=$(uname -r | cut -d "." -f ${count})
|
||||||
|
kernelVersionTempDot="${kernelVersionTemp}"
|
||||||
|
kernelVersion="${kernelVersion}${kernelVersionTempDot}"
|
||||||
|
count=$(expr ${count} + 1)
|
||||||
|
|
||||||
|
while [ ${count} -le ${longNumber} ] ; do
|
||||||
|
kernelVersionTemp=$(uname -r | cut -d "." -f ${count})
|
||||||
|
kernelVersionTempDot=".${kernelVersionTemp}"
|
||||||
|
kernelVersion="${kernelVersion}${kernelVersionTempDot}"
|
||||||
|
count=$(expr ${count} + 1)
|
||||||
|
done
|
||||||
|
|
||||||
|
kernelVersionTemp=$(uname -r | cut -d "." -f ${count} | cut -d "-" -f 1)
|
||||||
|
kernelVersionTempDot=".${kernelVersionTemp}"
|
||||||
|
kernelVersion=${kernelVersion}${kernelVersionTempDot}
|
||||||
|
|
||||||
|
# Apply arch
|
||||||
|
kernelVersion=${kernelVersion}-${archCommand}
|
||||||
|
echo "Kernel: Linux ${kernelVersion} "
|
||||||
|
|
Loading…
Reference in New Issue
Block a user