dotfiles

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 6ba1c8e2f6b75e14bb30ba28dd350d58fa707a59
parent 5d45a9f39861d1c14cd8951039d800f36dc579e4
Author: Janis Pagel <janis.pagel@ims.uni-stuttgart.de>
Date:   Sat, 16 Mar 2019 20:49:00 +0100

Add cowsay-based system information

Diffstat:
Abin/cowsay_battery.sh | 3+++
Abin/cowsay_ip.sh | 3+++
Abin/cowsay_temperatur.sh | 3+++
Abin/cowsay_volume.sh | 3+++
Mdotfiles.sh | 9+++++++++
Mxbindkeysrc | 16++++++++++++++++
6 files changed, 37 insertions(+), 0 deletions(-)

diff --git a/bin/cowsay_battery.sh b/bin/cowsay_battery.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +st -e watch -n 0.1 -t 'acpi -b | cowsay' diff --git a/bin/cowsay_ip.sh b/bin/cowsay_ip.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +st -e watch -n 0.1 -t 'for i in `ip r`; do echo $i; done | grep -A 1 src | tail -1 | cowsay' diff --git a/bin/cowsay_temperatur.sh b/bin/cowsay_temperatur.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +st -e watch -n 0.1 -t $'cat /sys/class/thermal/thermal_zone0/temp | awk \'{ print "thermal_zone0: " $1/1000 "°C" }\' | cowsay' diff --git a/bin/cowsay_volume.sh b/bin/cowsay_volume.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +st -e watch -n 0.1 -t 'amixer get Master | tail -2 | cowsay' diff --git a/dotfiles.sh b/dotfiles.sh @@ -84,6 +84,15 @@ echo "$GIT_REPO/bin/top.sh --> ~/bin/top.sh" rsync -ac --progress $GIT_REPO/bin/top.sh ~/bin/top.sh echo "$GIT_REPO/bin/dmenu_statusbar.sh --> ~/bin/dmenu_statusbar.sh" rsync -ac --progress $GIT_REPO/bin/dmenu_statusbar.sh ~/bin/dmenu_statusbar.sh +echo "$GIT_REPO/bin/cowsay_battery.sh --> ~/bin/cowsay_battery.sh" +rsync -ac --progress $GIT_REPO/bin/cowsay_battery.sh ~/bin/cowsay_battery.sh +echo "$GIT_REPO/bin/cowsay_ip.sh --> ~/bin/cowsay_ip.sh" +rsync -ac --progress $GIT_REPO/bin/cowsay_ip.sh ~/bin/cowsay_ip.sh +echo "$GIT_REPO/bin/cowsay_temperatur.sh --> ~/bin/cowsay_temperatur.sh" +rsync -ac --progress $GIT_REPO/bin/cowsay_temperatur.sh ~/bin/cowsay_temperatur.sh +echo "$GIT_REPO/bin/cowsay_volume.sh --> ~/bin/cowsay_volume.sh" +rsync -ac --progress $GIT_REPO/bin/cowsay_volume.sh ~/bin/cowsay_volume.sh + echo "$GIT_REPO/newsboat/config --> ~/.config/newsboat/config" rsync -ac --progress $GIT_REPO/newsboat/config ~/.config/newsboat/config diff --git a/xbindkeysrc b/xbindkeysrc @@ -21,3 +21,19 @@ # Display time "tty-clock.sh" Mod4+F1 + +# Display volume +"cowsay_volume.sh" + Mod4+F2 + +# Display battery +"cowsay_battery.sh" + Mod4+F3 + +# Display IP +"cowsay_ip.sh" + Mod4+F4 + +# Display temperatur +"cowsay_temperatur.sh" + Mod4+F5