Reverted back to FontAwesome workspace icons
Like the cleaner look of uniform coloring. Also added pywal bg color to Benq blocks except for CPU usage, which has Perl problems....
This commit is contained in:
@@ -10,6 +10,7 @@ use strict;
|
||||
use warnings;
|
||||
use utf8;
|
||||
use Getopt::Long;
|
||||
# use Env::Modify qw(:ksh source);
|
||||
|
||||
# default values
|
||||
my $t_warn = 50;
|
||||
@@ -44,6 +45,10 @@ $cpu_usage eq -1 and die 'Can\'t find CPU information';
|
||||
printf "%.0f%%\n", $cpu_usage;
|
||||
printf "%.0f%%\n", $cpu_usage;
|
||||
|
||||
system("source \"/home/kevin/.cache/wal/colors.sh\"");
|
||||
# printf "%s", $ENV{'SHELL'};
|
||||
printf "%s", $ENV{'color2'};
|
||||
# printf "%s", $ENV{'bg'};
|
||||
# Print color, if needed
|
||||
if ($cpu_usage >= $t_crit) {
|
||||
print "#FF0000\n";
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
TYPE="${BLOCK_INSTANCE:-mem}"
|
||||
. "/home/kevin/.cache/wal/colors.sh"
|
||||
|
||||
awk -v type=$TYPE '
|
||||
/^MemTotal:/ {
|
||||
@@ -47,3 +48,4 @@ END {
|
||||
# TODO: color (if less than X%)
|
||||
}
|
||||
' /proc/meminfo
|
||||
printf "\n%s\n" "$color7"
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
. "/home/kevin/.cache/wal/colors.sh"
|
||||
|
||||
echo "Kevin"
|
||||
# echo "Kevin"
|
||||
printf "Kevin\n\n%s\n" "$color7"
|
||||
# echo "<span foreground=\"$foreground\">Kevin</span>"
|
||||
# echo "<span foreground=\"$color2\">Kevin</span>"
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
. "/home/kevin/.cache/wal/colors.sh"
|
||||
printf "$(date '+%H:%M.%a-%m-%d')\n\n%s" "$color2"
|
||||
printf "$(date '+%H:%M.%a-%m-%d')\n\n%s\n" "$color7"
|
||||
# echo "<span foreground=\"%s\">$(date '+%H:%M.%a-%m-%d')%s</span>" "$color2"
|
||||
# printf "%s" "$color2"
|
||||
# printf ""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user