aboutsummaryrefslogtreecommitdiff
path: root/extras/HOME
diff options
context:
space:
mode:
authorJosh Rahm <joshuarahm@gmail.com>2021-11-08 01:02:01 -0700
committerJosh Rahm <joshuarahm@gmail.com>2022-10-09 12:19:45 -0600
commit6e68b3fb4bfd9b05b9856bc29fecd6c7b2822248 (patch)
treefb697ba94b73283ce4dcc962e7ae87df02bf230b /extras/HOME
parent70e0ee6c4c74b7479e75f661782af1c4c409314e (diff)
downloadrde-6e68b3fb4bfd9b05b9856bc29fecd6c7b2822248.tar.gz
rde-6e68b3fb4bfd9b05b9856bc29fecd6c7b2822248.tar.bz2
rde-6e68b3fb4bfd9b05b9856bc29fecd6c7b2822248.zip
minor fixes and whatnot
Diffstat (limited to 'extras/HOME')
-rw-r--r--extras/HOME/.xmobarrc4
-rwxr-xr-xextras/HOME/.xmonad/xmobar-weather9
2 files changed, 5 insertions, 8 deletions
diff --git a/extras/HOME/.xmobarrc b/extras/HOME/.xmobarrc
index e2a3e9f..916ba21 100644
--- a/extras/HOME/.xmobarrc
+++ b/extras/HOME/.xmobarrc
@@ -2,7 +2,7 @@ Config
{ font = "xft:Monofur Nerd Font:size=12"
, additionalFonts = [
"xft:Monofur bold Nerd Font:style=bold:size=12",
- "xft:Monofur Nerd Font:size=9",
+ "xft:Monofur Bold Nerd Font:size=9",
"xft:Monofur Nerd Font:size=9",
"xft:Monofur Nerd Font:size=6",
"xft:Monofur bold Nerd Font:size=15",
@@ -30,7 +30,7 @@ Config
, template =
" %logo% <fc=#a0a0a0><fn=3>%uname%</fn></fc><fc=#404040> │\
\</fc><fc=#a0a0a0> %date%</fc><fc=#404040> │ \
- \</fc>%StdinReader%}<fn=6><fc=#909090>%time%</fc></fn>\
+ \</fc>%StdinReader%}<fn=2><fc=#606060>%time%</fc></fn>\
\{ %cpu% %memory% <fc=#404040>\
\│</fc> %weather% <fc=#404040>│\
\</fc> <fc=#a0a0a0>%mpris2%</fc> <fc=#404040>│ \
diff --git a/extras/HOME/.xmonad/xmobar-weather b/extras/HOME/.xmonad/xmobar-weather
index d9dc88b..e8ce28e 100755
--- a/extras/HOME/.xmonad/xmobar-weather
+++ b/extras/HOME/.xmonad/xmobar-weather
@@ -1,18 +1,16 @@
#!/usr/bin/perl
-use LWP::Simple;
use Time::Local;
use POSIX;
-$content = get("https://ipinfo.io");
+$content = `curl https://ipinfo.io`;
die "Unable to get IP info" unless defined $content;
($city, $lat, $lon) =
($content =~ m/.*"city":\s+"([^"]+)".*"loc":\s+"(-?[0-9.]+),(-?[0-9.]+).*"/ims);
-$content = get(
- "https://api.sunrise-sunset.org/json?lat=$lat&lng=$lon&formatted=0");
+$content = `curl "https://api.sunrise-sunset.org/json?lat=$lat&lng=$lon&formatted=0"`;
die "Unable to get sunrise/sunset data" unless defined $content;
@@ -22,8 +20,7 @@ $sunrise_str =~ s#.*"sunrise":"([^"]*)".*#\1#;
$sunset_str =~ s#.*"sunset":"([^"]*)".*#\1#;
$current_str=strftime "%Y-%m-%dT%H:%M:%S+00:00", gmtime();
-$content = get(
- "https://tgftp.nws.noaa.gov/data/observations/metar/decoded/KLMO.TXT");
+$content = `curl "https://tgftp.nws.noaa.gov/data/observations/metar/decoded/KLMO.TXT"`;
die "Unable to get weather data" unless defined $content;