diff options
-rw-r--r-- | .config/dunst/dunstrc | 2 | ||||
-rw-r--r-- | .config/fontconfig/fonts.conf | 22 | ||||
-rw-r--r-- | .config/zsh/alias.zsh | 4 | ||||
-rwxr-xr-x | .local/bin/status/sb-forecast | 16 |
4 files changed, 35 insertions, 9 deletions
diff --git a/.config/dunst/dunstrc b/.config/dunst/dunstrc index 750892b..9a2cc75 100644 --- a/.config/dunst/dunstrc +++ b/.config/dunst/dunstrc @@ -28,7 +28,7 @@ sort = yes idle_threshold = 0 - font = NotoSans Nerd Font 14 + font = "NotoSans Nerd Font 14" line_height = 0 markup = full diff --git a/.config/fontconfig/fonts.conf b/.config/fontconfig/fonts.conf new file mode 100644 index 0000000..2b72920 --- /dev/null +++ b/.config/fontconfig/fonts.conf @@ -0,0 +1,22 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE fontconfig SYSTEM "fonts.dtd"> +<fontconfig> + <alias> + <family>serif</family> + <prefer> + <family>NotoEmoji Nerd Font</family> + </prefer> + </alias> + <alias> + <family>sans-serif</family> + <prefer> + <family>NotoEmoji Nerd Font</family> + </prefer> + </alias> + <alias> + <family>monospace</family> + <prefer> + <family>NotoEmoji Nerd Font Mono</family> + </prefer> + </alias> +</fontconfig> diff --git a/.config/zsh/alias.zsh b/.config/zsh/alias.zsh index 8cb02e1..501e608 100644 --- a/.config/zsh/alias.zsh +++ b/.config/zsh/alias.zsh @@ -14,7 +14,7 @@ alias exa='exa --color=always --group-directories-first --icons' \ ls='exa -l' tree() { - exa -T $@ | less + exa -T $@ | $PAGER } alias \ e='editorcmd' \ @@ -175,7 +175,7 @@ alias nb='newsboat' \ highlight='highlight -Oxterm256 -t4' \ hi='highlight' hil() { - highlight -Oxterm256 -t4 "$1" | less + highlight -Oxterm256 -t4 "$1" | $PAGER } search() { make -C /usr/ports search name=$1 | grep 'Path:'; diff --git a/.local/bin/status/sb-forecast b/.local/bin/status/sb-forecast index 0f7aa52..0ac1a40 100755 --- a/.local/bin/status/sb-forecast +++ b/.local/bin/status/sb-forecast @@ -1,18 +1,22 @@ #!/bin/sh weatherreport="/tmp/weatherreport" +weatherglyph="/tmp/weatherglyph" +moonreport="/tmp/moonglyph" getweather() { - curl -sf "wttr.in/lyon" >$weatherreport || exit 1 + curl -sf "wttr.in/Lyon" >$weatherreport || exit 1 + curl -sf "wttr.in/Lyon?format=%c" >$weatherglyph || exit 1 + curl -sf "wttr.in/Lyon?format=%m" >$moonglyph || exit 1 } [ -f $weatherreport ] && [ "$(gnustat -c %y "$weatherreport" 2>/dev/null | cut -d' ' -f1)" = "$(date '+%Y-%m-%d')" ] || getweather -printf "%s" "$(sed '16q;d' "$weatherreport" | -grep -wo "[0-9]*%" | sort -rn | sed "s/^/ /g;1q" | tr -d '\n')" +printf "%s %s" \ + "$(cat $weatherglyph)" \ + "$(sed '16q;d' "$weatherreport" | grep -wo "[0-9]*%" | sort -rn | sed "s/^/ /g;1q" | tr -d '\n')" +moon=$(cat $moonreport) sed '13q;d' "$weatherreport" | grep -o "m\\([-+]\\)*[0-9]\\+" | sed 's/+//g' | sort -n -t 'm' -k 2n | sed -e 1b -e '$!d' | tr '\n|m' ' ' | - awk '{print " ﰕ " $1 "°C"," " $2 "°C"}' - -# weatherreport="${XDG_CACHE_HOME:-$HOME/.cache}/weatherreport" + awk -v moon=$moon '{print " ﰕ " $1 "°C"," " $2 "°C " moon}' |