diff --git a/.config/i3/config b/.config/i3/config index 073df03..2a46035 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -39,8 +39,8 @@ exec --no-startup-id pnmixer -t & # Configure screens and resolution exec --no-startup-id ~/.config/i3/startxrandr.sh & -# Load compton or picom -#exec --no-startup-id compton & +# Load compton or picom (Compositor) +#exec --no-startup-id "sleep 15 && compton &" exec --no-startup-id "sleep 15 && picom &" # Configure wallpaper diff --git a/.config/i3blocks/.config.swp b/.config/i3blocks/.config.swp deleted file mode 100644 index bf702b4..0000000 Binary files a/.config/i3blocks/.config.swp and /dev/null differ diff --git a/.config/i3blocks/config b/.config/i3blocks/config index 6dce243..395868e 100644 --- a/.config/i3blocks/config +++ b/.config/i3blocks/config @@ -1,12 +1,17 @@ -[WEATHER_SIGNALER] -command=~/.config/i3blocks/weather/weather_signaler -interval=once +#[WEATHER_SIGNALER] +#command=~/.config/i3blocks/weather/weather_signaler +#interval=once -[WEATHER] -command=~/.config/i3blocks/weather/weather_info.sh +#[WEATHER] +#command=~/.config/i3blocks/weather/weather_info.sh +#interval=300 +#color=#FEC925 +#signal=2 + +[KERNEL] +command=~/.config/i3blocks/kernel/kernel_version.sh interval=300 color=#FEC925 -signal=2 [DISK] command=df -h / | awk '/\//{ printf(" 💾 %4s/%s \n", $4, $2) }' diff --git a/.config/i3blocks/kernel/kernel_version.sh b/.config/i3blocks/kernel/kernel_version.sh new file mode 100755 index 0000000..edf15be --- /dev/null +++ b/.config/i3blocks/kernel/kernel_version.sh @@ -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} " +