diff options
author | Benjamin Chausse <benjamin@chausse.xyz> | 2024-01-07 19:08:25 -0500 |
---|---|---|
committer | Benjamin Chausse <benjamin@chausse.xyz> | 2024-01-07 19:08:25 -0500 |
commit | c86d5ec09e08b79fbad53c8921594f47ba8c05c4 (patch) | |
tree | 4d8e6faf2f04a6e4f2cbbc8ad0f6cfb5d4c6da12 /.local/bin/dwmbar/dwmb-eselect | |
parent | 8929559432affa5920d24931ca9f710401c5823f (diff) | |
parent | b9d220c870dad566fb6d13b93ac36d8dc0fbe151 (diff) |
Merge branch 'master' of github.com:ChausseBenjamin/dotfiles
Diffstat (limited to '.local/bin/dwmbar/dwmb-eselect')
-rwxr-xr-x | .local/bin/dwmbar/dwmb-eselect | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/.local/bin/dwmbar/dwmb-eselect b/.local/bin/dwmbar/dwmb-eselect new file mode 100755 index 0000000..2544ab4 --- /dev/null +++ b/.local/bin/dwmbar/dwmb-eselect @@ -0,0 +1,11 @@ +#!/bin/sh + +icon=" " + +total="$(eselect news count all)" +unread="$(eselect news count new)" + +case "$total" in +0) echo "" ;; +*) echo "$icon $unread/$total" ;; +esac |