1
0
mirror of https://github.com/tiyn/dotfiles.git synced 2025-04-20 00:37:44 +02:00

Compare commits

..

4 Commits

Author SHA1 Message Date
1dd6b8c86c easyeffects: removed delay 2023-10-22 23:58:28 +02:00
b0070644cd statusbar: split cpu and gpu temps 2023-10-22 23:33:10 +02:00
485dbba39b statusbar: split cpu and gpu temps 2023-10-22 23:30:29 +02:00
751cc5fbfe statusbar: added gpu temp 2023-10-22 23:15:30 +02:00
5 changed files with 25 additions and 7 deletions

View File

@ -167,7 +167,7 @@
"bypass": false,
"clipping": false,
"clipping-range": 0.0,
"fft": "16384",
"fft": "2048",
"input-gain": 0.0,
"output-gain": 17.0,
"std": "Flat",

View File

@ -1,12 +1,15 @@
#!/bin/sh
icon="^b#282828^^c#dfdfdf^  ^d^ "
model=$(cat /proc/cpuinfo | grep "model name" | head -n1)
if [ "$1" = "amd" ]; then
icon="^b#282828^^c#dfdfdf^  ^d^"
if printf "$model " | grep -Fqe "AMD"; then
temp=$(sensors | awk '/Tctl/ {print $2}')
elif [ "$1" = "intel" ]; then
else
temp=$(sensors | awk '/Package id 0/ {print $4}')
fi
temp=$(printf %3s $(echo ${temp##*+} | sed "s/\..*//") | tr ' ' ' ')
echo "$icon$temp°C"
echo "$icon $temp°C"

View File

@ -1,4 +1,4 @@
#!/usr/bin/env sh
#!/bin/sh
# Status bar module for disk space
# $1 should be drive mountpoint

15
.local/bin/tools/statusbar/gpu Executable file
View File

@ -0,0 +1,15 @@
#!/bin/sh
icon="^b#282828^^c#dfdfdf^  ^d^"
temp=""
if command -v nvidia-smi > /dev/null; then
temp=$(nvidia-smi --query-gpu=temperature.gpu --format=csv,noheader)
temp=$(printf %3s $(echo ${temp##*+} | sed "s/\..*//") | tr ' ' ' ')
else
echo ""
return
fi
echo "$icon $temp°C"

View File

@ -1,4 +1,4 @@
!/usr/bin/env sh
#!/bin/sh
wifipercent=" ___"