summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/bar2
-rwxr-xr-xscripts/glitchlock2
-rw-r--r--scripts/icstocal.c22
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;
+}