diff options
| author | Marc Vertes <mvertes@free.fr> | 2022-08-31 23:36:21 +0200 |
|---|---|---|
| committer | Marc Vertes <mvertes@free.fr> | 2022-08-31 23:36:21 +0200 |
| commit | b5bfa659d79895d3217377aea14ff14eb31a6319 (patch) | |
| tree | 8300192740bb7189abecb045e95a7f65d933a83f | |
| parent | 96d801cb25616b3004661ba8c5684a94b1a5968f (diff) | |
update
| -rw-r--r-- | .config/gtk-3.0/settings.ini | 2 | ||||
| -rw-r--r-- | .config/i3/config | 2 | ||||
| -rwxr-xr-x | bin/update_hosts | 6 |
3 files changed, 7 insertions, 3 deletions
diff --git a/.config/gtk-3.0/settings.ini b/.config/gtk-3.0/settings.ini index a3da8ab..30af16a 100644 --- a/.config/gtk-3.0/settings.ini +++ b/.config/gtk-3.0/settings.ini @@ -1,2 +1,4 @@ [Settings] +gtk-icon-theme-name = Adwaita +gtk-theme-name = Adwaita gtk-font-name = Liberation Sans 9 diff --git a/.config/i3/config b/.config/i3/config index 470f819..b59ded5 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -94,7 +94,7 @@ for_window [class="RSS Guard"] floating enable for_window [class="Signal"] floating enable for_window [class="Slack"] floating enable for_window [class="Spotify"] floating enable -for_window [class="Thunderbird"] floating enable +for_window [class="thunderbird"] floating enable for_window [class="UXTerm"] floating enable for_window [class="vlc"] floating enable for_window [instance="wish"] floating enable diff --git a/bin/update_hosts b/bin/update_hosts index 40ec470..74bf25b 100755 --- a/bin/update_hosts +++ b/bin/update_hosts @@ -7,9 +7,11 @@ echo 'Checking from https://github.com/StevenBlack/hosts:' lsd=$(curl -s 'https://api.github.com/repos/StevenBlack/hosts/commits?path=hosts&page=1&per_page=1' | jq -r '.[0].commit.committer.date') -echo "last source update: $(date -j -f "%FT%TZ" "$lsd")" +#echo "last source update: $(date -j -f "%FT%TZ" "$lsd")" +echo "last source update: $(date --date="$lsd")" echo "last local update: $(date -r /etc/hosts)" -[ $(date -j -f "%FT%TZ" "$lsd" +%s) -lt $(date -r /etc/hosts +%s) ] && echo 'Nothing to do' && exit +# [ $(date -j -f "%FT%TZ" "$lsd" +%s) -lt $(date -r /etc/hosts +%s) ] && echo 'Nothing to do' && exit +[ $(date --date="$lsd" +%s) -lt $(date -r /etc/hosts +%s) ] && echo 'Nothing to do' && exit cd /etc cp -p hosts hosts.old |
