Removed the newline at the lnd of each icon and changed bold ascii excape
This commit is contained in:
@@ -30,8 +30,7 @@ def icon(id)
|
|||||||
⠀⠀⠀⠀⠀⠀⠀⠀⡪⡢⡱⡸⡐⡕⡱⡸⡘⡔⢕⢱⢸⢨⠂⠀⠀⠀⠀⠀⠀⠀
|
⠀⠀⠀⠀⠀⠀⠀⠀⡪⡢⡱⡸⡐⡕⡱⡸⡘⡔⢕⢱⢸⢨⠂⠀⠀⠀⠀⠀⠀⠀
|
||||||
⠀⠀⠀⠀⠀⠀⠀⠀⢊⢆⢣⢪⠸⡨⡢⢣⠪⡊⡎⡪⢢⠣⠁⠀⠀⠀⠀⠀⠀⠀
|
⠀⠀⠀⠀⠀⠀⠀⠀⢊⢆⢣⢪⠸⡨⡢⢣⠪⡊⡎⡪⢢⠣⠁⠀⠀⠀⠀⠀⠀⠀
|
||||||
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠣⡱⡸⡘⡌⢎⠆⡇⡣⡪⡊⡆⠃⠀⠀⠀⠀⠀⠀⠀⠀
|
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠣⡱⡸⡘⡌⢎⠆⡇⡣⡪⡊⡆⠃⠀⠀⠀⠀⠀⠀⠀⠀
|
||||||
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠑⠌⡪⡸⡨⡪⢪⠸⡐⠑⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
|
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠑⠌⡪⡸⡨⡪⢪⠸⡐⠑⠀⠀⠀#{reset}"
|
||||||
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠈⠀⠀#{reset}"
|
|
||||||
elsif id == 1003
|
elsif id == 1003
|
||||||
print "#{bold}#{orange} ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
|
print "#{bold}#{orange} ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
|
||||||
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀#{bold}#{orange}⠀⠀⢠⢠⢢⢢⢢⢢⡀ #{reset}⠀⠀⠀⠀⠀⠀⠀
|
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀#{bold}#{orange}⠀⠀⢠⢠⢢⢢⢢⢢⡀ #{reset}⠀⠀⠀⠀⠀⠀⠀
|
||||||
@@ -40,8 +39,7 @@ def icon(id)
|
|||||||
⠀⠀⠀⠀⠀⠀⠠⢀⢂⢂⠂⠅⠅⡂⡂⡂⠅⠅⠅⡂#{bold}#{orange}⢣⢣⢣⢣⠣⠀⠀⠀⠀⠀#{reset}
|
⠀⠀⠀⠀⠀⠀⠠⢀⢂⢂⠂⠅⠅⡂⡂⡂⠅⠅⠅⡂#{bold}#{orange}⢣⢣⢣⢣⠣⠀⠀⠀⠀⠀#{reset}
|
||||||
⠀⠀⠀⠀⠀⠠⢁⢂⢂⠂⠌⠌⡐⡐⡐⠠⠡⠡⢁⠂⠌⠌#{bold}#{orange}⠪⡪⠂⠀⠀⠀⠀⠀#{reset}
|
⠀⠀⠀⠀⠀⠠⢁⢂⢂⠂⠌⠌⡐⡐⡐⠠⠡⠡⢁⠂⠌⠌#{bold}#{orange}⠪⡪⠂⠀⠀⠀⠀⠀#{reset}
|
||||||
⠀⠀⠀⠀⠀⠨⢐⢐⢐⠨⠨⢐⢐⢐⠠⠡⠡⢁⠂⠌⠌⠌⡐⡀⠀⠀⠀⠀⠀⠀
|
⠀⠀⠀⠀⠀⠨⢐⢐⢐⠨⠨⢐⢐⢐⠠⠡⠡⢁⠂⠌⠌⠌⡐⡀⠀⠀⠀⠀⠀⠀
|
||||||
⠀⠀⠀⠀⠀⠀⠂⠂⠂⠌⠌⠐⠐⠐⠨⠨⠨⠐⠨⠨⠨⠐⠐⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
|
⠀⠀⠀⠀⠀⠀⠂⠂⠂⠌⠌⠐⠐⠐⠨⠨⠨⠐⠨⠨⠨⠐⠐⠀⠀"
|
||||||
"
|
|
||||||
elsif id == 1006
|
elsif id == 1006
|
||||||
print "
|
print "
|
||||||
⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⡐⠨⢐⢐⢐⠨⠠⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
|
⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⡐⠨⢐⢐⢐⠨⠠⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
|
||||||
@@ -90,16 +88,14 @@ def icon(id)
|
|||||||
⠀⠀⠀⠀⠀⠀⠀⠀⠀⣘⣉⢁⠉⣞⡍⡘⣽⠀⢁⢉⡃⠀⠀⠀⠀⠀⠀⠀⠀⠀
|
⠀⠀⠀⠀⠀⠀⠀⠀⠀⣘⣉⢁⠉⣞⡍⡘⣽⠀⢁⢉⡃⠀⠀⠀⠀⠀⠀⠀⠀⠀
|
||||||
⠀⠀⠀⠀⠀⠀⠀⠀⠀⡈⣕⢯⡏⠃⢻⡊⠉⢯⢯⢏⡁⠀⠀⠀⠀⠀⠀⠀⠀⠀
|
⠀⠀⠀⠀⠀⠀⠀⠀⠀⡈⣕⢯⡏⠃⢻⡊⠉⢯⢯⢏⡁⠀⠀⠀⠀⠀⠀⠀⠀⠀
|
||||||
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠁⢞⢆⣜⢮⡻⣤⠘⠧⠉⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
|
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠁⢞⢆⣜⢮⡻⣤⠘⠧⠉⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
|
||||||
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠁⠘⠇⠈⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
|
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠁⠘⠇⠈⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀#{reset}"
|
||||||
#{reset}"
|
|
||||||
elsif id == 1030 || id == 1135 || id == 1147
|
elsif id == 1030 || id == 1135 || id == 1147
|
||||||
puts "#{bold}#{gray}
|
puts "#{bold}#{gray}
|
||||||
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠘⠙⠙⠙⠙⠑⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
|
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠘⠙⠙⠙⠙⠑⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
|
||||||
⠀⠀⠀⠀⠀⠀⠀⠈⠋⠋⠋⡋⡋⡋⡋⡋⡋⡃⡀⡀⡀⡀⡀⠀⠀⠀⠀⠀⠀⠀
|
⠀⠀⠀⠀⠀⠀⠀⠈⠋⠋⠋⡋⡋⡋⡋⡋⡋⡃⡀⡀⡀⡀⡀⠀⠀⠀⠀⠀⠀⠀
|
||||||
⠀⠀⠀⠀⠀⠀⠀⡀⡀⡀⡀⡉⡉⡉⡉⡉⡉⡉⡉⠉⠉⠉⠉⠀⠀⠀⠀⠀⠀⠀
|
⠀⠀⠀⠀⠀⠀⠀⡀⡀⡀⡀⡉⡉⡉⡉⡉⡉⡉⡉⠉⠉⠉⠉⠀⠀⠀⠀⠀⠀⠀
|
||||||
⠀⠀⠀⠀⠀⠀⠀⠉⠉⣉⣉⣉⣉⣉⣉⣉⣉⣉⣉⣀⣀⡀⠀⠀⠀⠀⠀⠀⠀⠀
|
⠀⠀⠀⠀⠀⠀⠀⠉⠉⣉⣉⣉⣉⣉⣉⣉⣉⣉⣉⣀⣀⡀⠀⠀⠀⠀⠀⠀⠀⠀
|
||||||
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠈⣌⣌⣌⣌⣌⣌⣌⣌⠈⠈⠀⠀⠀⠀⠀⠀⠀⠀⠀
|
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠈⣌⣌⣌⣌⣌⣌⣌⣌⠈⠈⠀⠀⠀⠀⠀⠀⠀⠀⠀#{reset}"
|
||||||
#{reset}"
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -8,7 +8,7 @@ module Wfetch
|
|||||||
VERSION = "1.0.0"
|
VERSION = "1.0.0"
|
||||||
orange = "\e[38;5;214m"
|
orange = "\e[38;5;214m"
|
||||||
red = "\e[0;31m"
|
red = "\e[0;31m"
|
||||||
bold = "\033[1m"
|
bold = "\e[1m"
|
||||||
reset = "\e[0m"
|
reset = "\e[0m"
|
||||||
|
|
||||||
debug = false
|
debug = false
|
||||||
@@ -129,7 +129,7 @@ module Wfetch
|
|||||||
if feelslike_f > 85
|
if feelslike_f > 85
|
||||||
fl_f_color = bold + red
|
fl_f_color = bold + red
|
||||||
elsif (70..84).includes?(feelslike_f)
|
elsif (70..84).includes?(feelslike_f)
|
||||||
fl_f_color = bold + "\e[38;5;208m"
|
fl_f_color = bold + "\e[1;33m"
|
||||||
elsif feelslike_f < 70
|
elsif feelslike_f < 70
|
||||||
fl_f_color = "\e[0;34m" + bold
|
fl_f_color = "\e[0;34m" + bold
|
||||||
end
|
end
|
||||||
@@ -137,7 +137,7 @@ module Wfetch
|
|||||||
if feelslike_c > 29
|
if feelslike_c > 29
|
||||||
fl_c_color = bold + red
|
fl_c_color = bold + red
|
||||||
elsif (21..28).includes?(feelslike_c)
|
elsif (21..28).includes?(feelslike_c)
|
||||||
fl_c_color = bold + "\e[38;5;208m"
|
fl_c_color = bold + "\e[1;33m"
|
||||||
elsif feelslike_c < 21
|
elsif feelslike_c < 21
|
||||||
fl_c_color = "\e[0;34m" + bold
|
fl_c_color = "\e[0;34m" + bold
|
||||||
end
|
end
|
||||||
@@ -145,7 +145,7 @@ module Wfetch
|
|||||||
if temp_f > 85
|
if temp_f > 85
|
||||||
temp_f_color = bold + red
|
temp_f_color = bold + red
|
||||||
elsif (70..84).includes?(temp_f)
|
elsif (70..84).includes?(temp_f)
|
||||||
temp_f_color = bold + "\e[38;5;208m"
|
temp_f_color = bold + "\e[1;33m"
|
||||||
elsif temp_f < 70
|
elsif temp_f < 70
|
||||||
temp_f_color = "\e[0;34m" + bold
|
temp_f_color = "\e[0;34m" + bold
|
||||||
end
|
end
|
||||||
@@ -153,11 +153,20 @@ module Wfetch
|
|||||||
if temp_c > 29
|
if temp_c > 29
|
||||||
temp_c_color = bold + red
|
temp_c_color = bold + red
|
||||||
elsif (21..28).includes?(temp_c)
|
elsif (21..28).includes?(temp_c)
|
||||||
temp_c_color = bold + "\e[38;5;208m"
|
temp_c_color = bold + "\e[1;33m"
|
||||||
elsif temp_c < 21
|
elsif temp_c < 21
|
||||||
temp_c_color = "\e[0;34m" + bold
|
temp_c_color = "\e[0;34m" + bold
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if (26..73).includes?(wind_mph)
|
||||||
|
wind_mph_color = bold + red
|
||||||
|
elsif (13..25).includes?(wind_mph)
|
||||||
|
wind_mph_color = bold + "\e[1;33m"
|
||||||
|
elsif (1..12).includes?(wind_mph)
|
||||||
|
wind_mph_color = "\e[0;34m" + bold
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
vars = {
|
vars = {
|
||||||
"{temp_f}" => temp_f,
|
"{temp_f}" => temp_f,
|
||||||
"{temp_c}" => temp_c,
|
"{temp_c}" => temp_c,
|
||||||
@@ -179,6 +188,7 @@ module Wfetch
|
|||||||
"{fl_c_color}" => fl_c_color,
|
"{fl_c_color}" => fl_c_color,
|
||||||
"{temp_f_color}" => temp_f_color,
|
"{temp_f_color}" => temp_f_color,
|
||||||
"{temp_c_color}" => temp_c_color,
|
"{temp_c_color}" => temp_c_color,
|
||||||
|
"{wind_mph_color}" => wind_mph_color,
|
||||||
"{reset}" => reset,
|
"{reset}" => reset,
|
||||||
"{icon}" => nil,
|
"{icon}" => nil,
|
||||||
"{goodbye}" => message
|
"{goodbye}" => message
|
||||||
@@ -186,7 +196,6 @@ module Wfetch
|
|||||||
|
|
||||||
File.each_line(Path["~/.local/share/Wfetch/disp.toml"].expand(home: true)) do |line|
|
File.each_line(Path["~/.local/share/Wfetch/disp.toml"].expand(home: true)) do |line|
|
||||||
entry = disp["#{repeat}"]?
|
entry = disp["#{repeat}"]?
|
||||||
|
|
||||||
if entry
|
if entry
|
||||||
if entry.to_s == "{icon}"
|
if entry.to_s == "{icon}"
|
||||||
icon(id)
|
icon(id)
|
||||||
|
|||||||
Reference in New Issue
Block a user