You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

12 lines
536 B

#!/bin/bash
source $(dirname $0)/config.sh
XPOS=$((1410 + $XOFFSET))
WIDTH="500"
LINES="56"
date=$(date --rfc-3339=date)
dmesg=$(dmesg | tail -n25 | cut -b16-)
journal=$(journalctl --no-pager -q --since=$date | tail -n25)
(echo " ^fg($highlight)Logs"; echo "^fg($highlight)USER "; echo " "; echo "^fg()$dmesg"; echo " "; echo "^fg($highlight)SYSTEM "; echo " "; echo "$journal"; sleep 15) | dzen2 -fg $foreground -bg $background -fn $FONT -x $XPOS -y $YPOS -w $WIDTH -l $LINES -e 'onstart=uncollapse,hide;button1=exit;button3=exit'