From a9bc8d767e74eee1925fbd5a00c1f0a8336781b1 Mon Sep 17 00:00:00 2001 From: marcellus Date: Tue, 14 May 2024 20:07:34 +0200 Subject: update: few changes -> read the diff --- baguette | 21 +++++++++++++++++++++ fontconfig/fonts.conf | 4 ++-- htop/htoprc | 6 +++--- redshift/redshift.conf | 2 +- scripts/bar | 2 +- scripts/glitchlock | 2 +- scripts/icstocal.c | 22 ++++++++++++++++++++++ sx/sxrc | 10 +++++----- sx/sxrc.b | 9 +++++++++ sxhkd/sxhkdrc | 2 ++ 10 files changed, 67 insertions(+), 13 deletions(-) create mode 100644 baguette create mode 100644 scripts/icstocal.c create mode 100755 sx/sxrc.b diff --git a/baguette b/baguette new file mode 100644 index 0000000..93052e3 --- /dev/null +++ b/baguette @@ -0,0 +1,21 @@ + .. + -=**#%* + :+=+*#%@@- + :=-+##%@@% + ===*#%%@@: + -=++#%%@@= + :+-=#%#@@* + =*=+=##%@# + =*=+=*#%@# + .*-***##%% + ==-**#%%%. + .+-=##%%%: + :-==*@%@%: + :*==++%%@%- + .#===+*%%%= + *+=+*#%@@= + -+=*%%%@@+ + :+==%@@%@* + =%=*%%%%* + -#=*%##* + -*##*+ diff --git a/fontconfig/fonts.conf b/fontconfig/fonts.conf index 1f32825..3248f2b 100644 --- a/fontconfig/fonts.conf +++ b/fontconfig/fonts.conf @@ -32,9 +32,9 @@ dwm - Tintin + tintin - + diff --git a/htop/htoprc b/htop/htoprc index be9b5bf..351aefb 100644 --- a/htop/htoprc +++ b/htop/htoprc @@ -1,6 +1,6 @@ # Beware! This file is rewritten by htop when settings are changed in the interface. # The parser is also very primitive, and not human-friendly. -htop_version=3.2.2 +htop_version=3.3.0 config_reader_min_version=3 fields=0 48 17 18 38 39 40 2 46 47 49 1 hide_kernel_threads=1 @@ -48,16 +48,16 @@ all_branches_collapsed=0 screen:Main=PID USER PRIORITY NICE M_VIRT M_RESIDENT M_SHARE STATE PERCENT_CPU PERCENT_MEM TIME Command .sort_key=PERCENT_CPU .tree_sort_key=PERCENT_CPU -.tree_view=1 .tree_view_always_by_pid=0 +.tree_view=1 .sort_direction=-1 .tree_sort_direction=-1 .all_branches_collapsed=0 screen:I/O=PID USER IO_PRIORITY IO_RATE IO_READ_RATE IO_WRITE_RATE PERCENT_SWAP_DELAY PERCENT_IO_DELAY Command .sort_key=IO_PRIORITY .tree_sort_key=PID -.tree_view=0 .tree_view_always_by_pid=0 +.tree_view=0 .sort_direction=1 .tree_sort_direction=1 .all_branches_collapsed=0 diff --git a/redshift/redshift.conf b/redshift/redshift.conf index dbfd6da..295c219 100644 --- a/redshift/redshift.conf +++ b/redshift/redshift.conf @@ -28,7 +28,7 @@ fade=1 ; brightness=0.9 ; It is also possible to use different settings for day and night ; since version 1.8. -brightness-day=0.9 +brightness-day=1 brightness-night=0.75 ; Set the screen gamma (for all colors, or each color channel ; individually) 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 +#include +#include +#include + +#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; +} diff --git a/sx/sxrc b/sx/sxrc index 94ed5dc..1bdff7a 100755 --- a/sx/sxrc +++ b/sx/sxrc @@ -1,9 +1,9 @@ setxkbmap fr killall scron -scron -f ~/.config/crontab -$HOME/.config/scripts/randwp -sxhkd& +scron -f $HOME/.config/crontab picom& -dwmblocks& redshift& -exec dwm +(bar | barhandler)& +sxhkd& +randwp +exec Fluorite diff --git a/sx/sxrc.b b/sx/sxrc.b new file mode 100755 index 0000000..94ed5dc --- /dev/null +++ b/sx/sxrc.b @@ -0,0 +1,9 @@ +setxkbmap fr +killall scron +scron -f ~/.config/crontab +$HOME/.config/scripts/randwp +sxhkd& +picom& +dwmblocks& +redshift& +exec dwm diff --git a/sxhkd/sxhkdrc b/sxhkd/sxhkdrc index 0f4e327..85552e1 100644 --- a/sxhkd/sxhkdrc +++ b/sxhkd/sxhkdrc @@ -20,6 +20,8 @@ super + m music super + shift + m musiccmd +super + c + [ $(cat /tmp/swatch) = "0" ] && echo 1 > /tmp/swatch || echo 0 > /tmp/swatch XF86Tools selectopt XF86Audio{Prev,Next,Play} -- cgit v1.2.3