Compare commits
No commits in common. "73900c6833138a37355c69da96eede62e543638d" and "21c8df090f55a81c1caffc7efbde30a3300e57de" have entirely different histories.
73900c6833
...
21c8df090f
3 changed files with 1 additions and 86 deletions
|
|
@ -1,37 +0,0 @@
|
||||||
# ~/.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-left = bspwm xwindow
|
||||||
modules-center = date
|
modules-center = date
|
||||||
modules-right = real eth pulseaudio xkeyboard memory cpu
|
modules-right = eth pulseaudio xkeyboard memory cpu
|
||||||
cursor-click = pointer
|
cursor-click = pointer
|
||||||
cursor-scroll = ns-resize
|
cursor-scroll = ns-resize
|
||||||
|
|
||||||
|
|
@ -243,16 +243,6 @@ ramp-capacity-3 =
|
||||||
ramp-capacity-4 =
|
ramp-capacity-4 =
|
||||||
ramp-capacity-foreground = ${colors.primary}
|
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]
|
[settings]
|
||||||
screenchange-reload = true
|
screenchange-reload = true
|
||||||
pseudo-transparency = false
|
pseudo-transparency = false
|
||||||
|
|
|
||||||
|
|
@ -1,38 +0,0 @@
|
||||||
#!/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 a new issue