From 3adc4cf1cc83df00841b6220353f595af79c57c6 Mon Sep 17 00:00:00 2001 From: "flyingscorpio@arch-desktop" Date: Sun, 7 Mar 2021 20:47:28 +0100 Subject: [PATCH] Make clitip in center of one screen image, remove conversion in clitip --- dotfiles/i3/config | 2 +- dotfiles/shell/aliases | 2 +- dotfiles/text_to_wallpaper.sh | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dotfiles/i3/config b/dotfiles/i3/config index cf50b08..95a624c 100644 --- a/dotfiles/i3/config +++ b/dotfiles/i3/config @@ -10,7 +10,7 @@ floating_modifier $super #autostart exec --no-startup-id ~/setup-cockpit/dotfiles/text_to_wallpaper.sh -exec --no-startup-id hsetroot -cover ~/Pictures/clitip-wallpaper.png -root +exec --no-startup-id hsetroot -cover ~/Pictures/clitip-wallpaper.png exec --no-startup-id xsettingsd & exec --no-startup-id picom -b --config ~/.config/picom.conf #exec --no-startup-id thunar --daemon diff --git a/dotfiles/shell/aliases b/dotfiles/shell/aliases index 26a473d..ba9f72c 100644 --- a/dotfiles/shell/aliases +++ b/dotfiles/shell/aliases @@ -63,7 +63,7 @@ clitip() { pandoc -f markdown -t html | xmlstarlet fo --html --dropdtd | xmlstarlet sel -t -v "(html/body/ul/li[count(p)>0])[$RANDOM mod last()+1]" | - xmlstarlet unesc | fmt -80 | iconv -t US + xmlstarlet unesc | fmt -80 } GIT_REPOS=(~/.password-store ~/setup-cockpit ~/keepass ~/tssr ~/lessons/* ~/personal-scripts ~/root-me ~/src/* ~/fcn-sysadmin) diff --git a/dotfiles/text_to_wallpaper.sh b/dotfiles/text_to_wallpaper.sh index 2b12eb1..89c8d9b 100755 --- a/dotfiles/text_to_wallpaper.sh +++ b/dotfiles/text_to_wallpaper.sh @@ -6,7 +6,7 @@ clitip() { pandoc -f markdown -t html | xmlstarlet fo --html --dropdtd | xmlstarlet sel -t -v "(html/body/ul/li[count(p)>0])[$RANDOM mod last()+1]" | - xmlstarlet unesc | fmt -80 | iconv -t US + xmlstarlet unesc | fmt -80 } -clitip | convert -background "#222222" -fill "#237856" -size 3840x1200 -pointsize 30 -gravity west -font JetBrains-Mono-Regular label:@- ~/Pictures/clitip-wallpaper.png +clitip | convert -background "#222222" -fill "#237856" -size 1980x1200 -pointsize 30 -gravity center -font JetBrains-Mono-Regular label:@- ~/Pictures/clitip-wallpaper.png