From 821210983d4ac6785811dcf20c3521d92dab4bb8 Mon Sep 17 00:00:00 2001 From: Breizh Date: Fri, 14 Apr 2023 18:17:25 +0200 Subject: [PATCH] Wallpaper clock --- .config/conky/conkyrc2 | 4 ++-- .config/i3/config | 2 +- .local/bin/set_wall_clock | 5 +++-- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.config/conky/conkyrc2 b/.config/conky/conkyrc2 index 3cdeee0..391b9e6 100644 --- a/.config/conky/conkyrc2 +++ b/.config/conky/conkyrc2 @@ -96,8 +96,8 @@ ${color2}${font2}Sylvexplorer $hr$font$color${voffset 2} ${texeci 3600 /home/breizh/.config/conky/sylv.sh} ${color2}${font2}MPD $hr$font$color${voffset 2} -$alignc${scroll wait 48 1 5 ${mpd_smart}} -$alignc${if_match "$mpd_album"!=""}${scroll wait 48 1 5 ${mpd_album}}$endif +$alignc${scroll wait 43 1 2 ${mpd_smart}} +$alignc${if_match "$mpd_album"!=""}${scroll wait 48 1 2 ${mpd_album}}$endif $alignr$mpd_elapsed / $mpd_length ${goto 140}${if_match "${mpd_status}"=="Playing"}${color 99CC99}$endif${if_match "${mpd_status}"=="Paused"}${color FFCC66}$endif${if_match "${mpd_status}"=="Stopped"}${color F2777A}$endif$mpd_bar$color Piste: $mpd_track${goto 140}Date : $mpd_date diff --git a/.config/i3/config b/.config/i3/config index 34053e7..96a4c03 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -374,7 +374,7 @@ exec --no-startup-id steam-native -silent -noverifyfiles -language french #exec --no-startup-id SVPManager #exec --no-startup-id hp-systray -x exec --no-startup-id sleep 5 && play "$HOME/Musique/WELCOME BACK.wav" -exec --no-startup-id variety +#exec --no-startup-id variety exec --no-startup-id sleep 5m && qbittorrent # Start i3bar to display a workspace bar (plus the system information i3status if available) diff --git a/.local/bin/set_wall_clock b/.local/bin/set_wall_clock index 3202744..9599943 100755 --- a/.local/bin/set_wall_clock +++ b/.local/bin/set_wall_clock @@ -5,13 +5,14 @@ then feh --no-fehbg --bg-center /tmp/output.png fi -cd ~/Images/clocks/Traveler/ +cd ~/Images/clocks/Current/ date="date -d now+1minute" month=$($date +%-m) day=$($date +%-d) +weekday=$($date +%-u) hour=$(( ($($date +%-H)%12)*5 + $($date +%-M)/12)) minute=$($date +%-M) -convert "bg.jpg" "month${month}.png" -composite "day${day}.png" -composite "hour${hour}.png" -composite "minute${minute}.png" -composite "/tmp/output.png" +convert "bg.jpg" "month${month}.png" -composite "day${day}.png" -composite "weekday${weekday}.png" -composite "hour${hour}.png" -composite "minute${minute}.png" -composite "/tmp/output.png"