mirror of
https://github.com/tiyn/dotfiles.git
synced 2025-04-20 00:37:44 +02:00
Compare commits
4 Commits
b97537db9e
...
1dd6b8c86c
Author | SHA1 | Date | |
---|---|---|---|
1dd6b8c86c | |||
b0070644cd | |||
485dbba39b | |||
751cc5fbfe |
@ -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",
|
||||
|
@ -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"
|
||||
|
@ -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
15
.local/bin/tools/statusbar/gpu
Executable 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"
|
@ -1,4 +1,4 @@
|
||||
!/usr/bin/env sh
|
||||
#!/bin/sh
|
||||
|
||||
wifipercent=" ___"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user