aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVidhu Kant Sharma <bokuwakanojogahoshii@yahoo.com>2020-12-04 14:15:44 +0530
committerVidhu Kant Sharma <bokuwakanojogahoshii@yahoo.com>2020-12-04 14:15:44 +0530
commit17ba2ace998030f5b54b3b0b6f63530f8b10f985 (patch)
treedd123ff0bc6148879bb8e96f2e9c78a9e7f8dac6
parent110084dde61f36dc33b657e1d766f1f9371dca15 (diff)
added dnd status and changed some modules text to Japanese
-rwxr-xr-xXMonad/baraction11
1 files changed, 9 insertions, 2 deletions
diff --git a/XMonad/baraction b/XMonad/baraction
index 95d10f76..70316740 100755
--- a/XMonad/baraction
+++ b/XMonad/baraction
@@ -5,6 +5,13 @@ get_date_time() {
echo $datetime
}
+get_dnd_status() {
+ dnd_status=$(</tmp/dnd_status)
+ if [ $dnd_status = "on" ]; then
+ echo "%{F#232627}%{B#f70258}" "サイレント" "%{F-}%{B-}"
+ fi
+}
+
get_cpu_load() {
read cpu a b c previdle rest < /proc/stat
prevtotal=$((a+b+c+previdle))
@@ -37,7 +44,7 @@ get_mute_status() {
vol=$(pamixer --get-volume-human)
if [ $vol = "muted" ]
then
- echo "%{B#F15BB5}%{F#232627} muted"
+ echo "%{B#F15BB5}%{F#232627} ミュート"
fi
}
@@ -46,6 +53,6 @@ get_weather() {
}
while :; do
- echo "%{B#FD3A69}%{F#232627} " $(get_disk_usage) "%{B-} %{B#FECD1A} " $(get_cpu_load) "%{B-} %{B#03C4A1}" $(get_cpu_temp) "%{B-} %{B#00BBF9}" $(get_mem_usage) "%{B-}%{F-}%{r}" $(get_mute_status) "%{B-}%{F-} %{B#9B5DE5}%{F#FCFCFC}" $(get_weather) "%{B-} %{B#892CDC}%{F#FCFCFC} " $(get_date_time) " %{F-}%{B-}"
+ echo "%{B#FD3A69}%{F#232627} " $(get_disk_usage) "%{B-} %{B#FECD1A} " $(get_cpu_load) "%{B-} %{B#03C4A1}" $(get_cpu_temp) "%{B-} %{B#00BBF9}" $(get_mem_usage) "%{c}%{F-}%{B-}%{r}" $(get_dnd_status) $(get_mute_status) "%{B-}%{F-} %{B#9B5DE5}%{F#FCFCFC}" $(get_weather) "%{B-} %{B#892CDC}%{F#FCFCFC} " $(get_date_time) " %{F-}%{B-}"
sleep 3
done