Compare commits
2 Commits
21c8df090f
...
73900c6833
Author | SHA1 | Date |
---|---|---|
maia arson crimew | 73900c6833 | |
maia arson crimew | 80921d661b |
|
@ -0,0 +1,37 @@
|
|||
# ~/.config/betterlockscreenrc
|
||||
|
||||
# default options
|
||||
display_on=0
|
||||
span_image=false
|
||||
lock_timeout=300
|
||||
fx_list=(dim blur dimblur pixel dimpixel color)
|
||||
dim_level=40
|
||||
blur_level=1
|
||||
pixel_scale=10,1000
|
||||
solid_color=333333
|
||||
wallpaper_cmd="feh --bg-fill"
|
||||
quiet=false
|
||||
# i3lockcolor_bin="i3lock-color" # Manually set command for i3lock-color
|
||||
|
||||
# default theme
|
||||
loginbox=1e1e2eff
|
||||
loginshadow=00000000
|
||||
locktext="Type password..."
|
||||
font="monospace"
|
||||
ringcolor=45475aff
|
||||
insidecolor=00000000
|
||||
separatorcolor=00000000
|
||||
ringvercolor=45475aff
|
||||
insidevercolor=00000000
|
||||
ringwrongcolor=b4befeff
|
||||
insidewrongcolor=f38ba8ff
|
||||
timecolor=cdd6f4ff
|
||||
time_format="%H:%M:%S"
|
||||
greetercolor=cdd6f4ff
|
||||
layoutcolor=cdd6f4ff
|
||||
keyhlcolor=cba6f7ff
|
||||
bshlcolor=cba6f7ff
|
||||
verifcolor=b4befeff
|
||||
wrongcolor=f38ba8ff
|
||||
modifcolor=f38ba8ff
|
||||
bgcolor=000000ff
|
|
@ -57,7 +57,7 @@ font-1 = JetBrainsMono NerdFont;2
|
|||
|
||||
modules-left = bspwm xwindow
|
||||
modules-center = date
|
||||
modules-right = eth pulseaudio xkeyboard memory cpu
|
||||
modules-right = real eth pulseaudio xkeyboard memory cpu
|
||||
cursor-click = pointer
|
||||
cursor-scroll = ns-resize
|
||||
|
||||
|
@ -243,6 +243,16 @@ ramp-capacity-3 =
|
|||
ramp-capacity-4 =
|
||||
ramp-capacity-foreground = ${colors.primary}
|
||||
|
||||
[module/real]
|
||||
type = custom/script
|
||||
|
||||
interval = 10800
|
||||
|
||||
format-prefix = "屢 "
|
||||
format-prefix-foreground = ${colors.primary}
|
||||
|
||||
exec = ~/.config/polybar/scripts/real.sh
|
||||
|
||||
[settings]
|
||||
screenchange-reload = true
|
||||
pseudo-transparency = false
|
||||
|
|
|
@ -0,0 +1,38 @@
|
|||
#!/bin/sh
|
||||
|
||||
gemeinde=13
|
||||
sammelgebiet=1008
|
||||
|
||||
today="$(date +%Y-%m-%d)"
|
||||
tomorrow="$(date --date='tomorrow' +%Y-%m-%d)"
|
||||
this_year="$(date +%Y)"
|
||||
next_year="$(date --date='next year' +%Y)"
|
||||
|
||||
function format_collections {
|
||||
if [[ "$1" == *"Kehricht"* ]]; then
|
||||
echo -n " "
|
||||
fi
|
||||
if [[ "$1" == *"Grüngut"* ]]; then
|
||||
echo -n " "
|
||||
fi
|
||||
if [[ "$1" == *"Karton"* ]]; then
|
||||
echo -n " "
|
||||
fi
|
||||
if [[ "$1" == *"Alteisen"* ]]; then
|
||||
echo -n " "
|
||||
fi
|
||||
if [[ "$1" == *"Papier"* ]]; then
|
||||
echo -n " "
|
||||
fi
|
||||
}
|
||||
|
||||
data="$(curl -s "https://www.real.sammelkalender.ch/app/appSammeldaten.php?nGem=$gemeinde&nAbar=null&nSage=$sammelgebiet&jahr1=$this_year&jahr2=$next_year")"
|
||||
collection_today="$(echo "$data" | jq -r ".[] | select(.DATUM == \"$today\") | .AbarOne")"
|
||||
collection_tomorrow="$(echo "$data" | jq -r ".[] | select(.DATUM == \"$tomorrow\") | .AbarOne")"
|
||||
|
||||
if [[ "$collection_today" != "null" ]]; then
|
||||
format_collections $collection_today
|
||||
fi
|
||||
if [[ "$collection_tomorrow" != "null" ]]; then
|
||||
echo "tomorrow: $(format_collections $collection_tomorrow)"
|
||||
fi
|
Loading…
Reference in New Issue