diff options
author | InigoGutierrez <inigogf.95@gmail.com> | 2019-03-22 00:22:18 +0100 |
---|---|---|
committer | InigoGutierrez <inigogf.95@gmail.com> | 2019-03-22 00:22:18 +0100 |
commit | ae527d102aee15b0da503056ea1ef4315e7eed83 (patch) | |
tree | 2a82819a51704d6c3d30c53ad49749bc93b79dcf /i3blocks | |
parent | a16e1c23fa59ff36e43bbb2adb3d2421ba7a7369 (diff) | |
download | scripts-ae527d102aee15b0da503056ea1ef4315e7eed83.tar.gz scripts-ae527d102aee15b0da503056ea1ef4315e7eed83.zip |
Dunstified.
Diffstat (limited to 'i3blocks')
-rwxr-xr-x | i3blocks/i3cpu.sh | 2 | ||||
-rwxr-xr-x | i3blocks/i3disk.sh | 2 | ||||
-rwxr-xr-x | i3blocks/i3mem.sh | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/i3blocks/i3cpu.sh b/i3blocks/i3cpu.sh index 02e8159..e3d3fc6 100755 --- a/i3blocks/i3cpu.sh +++ b/i3blocks/i3cpu.sh @@ -1,7 +1,7 @@ #!/bin/sh case $BLOCK_BUTTON in - 1) notify-send -h string:x-canonical-private-synchronous:cpu -t 5000 "Highest CPU processes: + 1) dunstify -r $(dunstifyIDs.sh "cpu") -t 5000 "Highest CPU processes: $(ps axch -o cmd:18,%cpu --sort=-%cpu | sed 10q)" ;; esac diff --git a/i3blocks/i3disk.sh b/i3blocks/i3disk.sh index 7c70819..6fc5cb6 100755 --- a/i3blocks/i3disk.sh +++ b/i3blocks/i3disk.sh @@ -4,7 +4,7 @@ case $BLOCK_BUTTON in 1) root="$(df -h | grep /$ | awk '{print "/: Used "$3"/"$2" ("$5")"}')" home="$(df -h | grep /home$ | awk '{print "/home: Used "$3"/"$2" ("$5")"}')" - notify-send -h string:x-canonical-private-synchronous:disk -t 5000 "$root + dunstify -r $(dunstifyIDs.sh "disk") -t 5000 "$root $home" ;; esac diff --git a/i3blocks/i3mem.sh b/i3blocks/i3mem.sh index 7c50c72..3e1447e 100755 --- a/i3blocks/i3mem.sh +++ b/i3blocks/i3mem.sh @@ -1,7 +1,7 @@ #!/bin/sh case $BLOCK_BUTTON in - 1) notify-send -h string:x-canonical-private-synchronous:mem -t 5000 "Highest RAM processes: + 1) dunstify -r $(dunstifyIDs.sh "memory") -t 5000 "Highest RAM processes: $(ps axch -o cmd:18,%mem --sort=-%mem | sed 10q)" ;; esac |