diff options
| author | marcellus <msimon_fr@hotmail.com> | 2024-05-14 20:07:34 +0200 |
|---|---|---|
| committer | marcellus <msimon_fr@hotmail.com> | 2024-05-14 20:07:34 +0200 |
| commit | a9bc8d767e74eee1925fbd5a00c1f0a8336781b1 (patch) | |
| tree | d8ab741816af827e989044c35d42d6d2952fbdfc /scripts | |
| parent | 0173c966ca715c14c9483b2e5e44d27173604638 (diff) | |
update: few changes -> read the diff
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/bar | 2 | ||||
| -rwxr-xr-x | scripts/glitchlock | 2 | ||||
| -rw-r--r-- | scripts/icstocal.c | 22 |
3 files changed, 24 insertions, 2 deletions
diff --git a/scripts/bar b/scripts/bar index 84671cd..86dff67 100755 --- a/scripts/bar +++ b/scripts/bar @@ -49,8 +49,8 @@ cock(){ s=$(date "+%S") COCK="$h:$m:$s" ICON2='' - ICON=' ' fi + ICON=' ' COCK="%{U#87ceeb B#87ceeb O3 +u +o B#076678 A:swatch:} $ICON2 %{A}$COCK - $(LC_ALL="fr_FR.UTF-8" date "+%A %d %B") $ICON %{B#87ceeb O3 -u -o B-}" echo -n $COCK } diff --git a/scripts/glitchlock b/scripts/glitchlock index 9bb8d6c..b9b5157 100755 --- a/scripts/glitchlock +++ b/scripts/glitchlock @@ -52,4 +52,4 @@ file=/tmp/lock.png convert "$file" "${LOCK[@]}" "$file" -LC_ALL="fr_FR.UTF-8" i3lock -f --indicator -k --time-color="458588ff" --date-color="458588ff" --verif-text="Vérification..." --wrong-text="Bonjour non." --noinput-text="Vide" -i "$file" --date-str="%A %e %B" > /dev/null 2>&1 +LC_ALL="fr_FR.UTF-8" i3lock -f --indicator -k --time-color="458588ff" --date-color="458588ff" --verif-text="Vérification..." --wrong-text="" --wrong-font="Cousine Nerd Font" --noinput-text="Vide" -i "$file" --date-str="%A %e %B" > /dev/null 2>&1 diff --git a/scripts/icstocal.c b/scripts/icstocal.c new file mode 100644 index 0000000..73feefb --- /dev/null +++ b/scripts/icstocal.c @@ -0,0 +1,22 @@ +// A supposedly better version of icstocal, originally written by Ratakor + +#include <stdio.h> +#include <stdlib.h> +#include <err.h> +#include <string.h> + +#define TIMEZONE 2 // as UTC+2 +#define IN "en" // 'en' means 'in' in french + +int main(int argc, char** argv) +{ + if (argc < 3) + { + printf("Usage: icstocal calendar.ics $XDG_DATA_HOME/quand/calendar"); + errx(EXIT_FAILURE, "Bad usage"); + } + + + + return EXIT_SUCCESS; +} |
