Przeglądaj źródła

feh automatically scale down the tag preview

siduck76 3 lat temu
rodzic
commit
ad20048853
2 zmienionych plików z 2 dodań i 4 usunięć
  1. 1 1
      .dwm/bar
  2. 1 3
      .dwm/tag_preview

+ 1 - 1
.dwm/bar

@@ -27,7 +27,7 @@ xbps_updates() {
 # battery
 batt() {
   printf "^c#81A1C1^  "
-  printf "^c#81A1C1^ $(acpi | sed "s/,//g" | sed "s/%/%%/g" | awk '{if ($3 == "Discharging"){print $4; exit} else {print $4""}}' | tr -d "\n")"
+  printf "^c#81A1C1^ $(acpi | sed "s/,//g" | awk '{if ($3 == "Discharging"){print $4; exit} else {print $4""}}' | tr -d "\n")"
 }
 
 brightness() {

+ 1 - 3
.dwm/tag_preview

@@ -7,10 +7,8 @@ if [ "$1" == "--hide" ]; then # If first argument is --hide execute
   shift
 fi
 
-# add geometry logic here ( alignment of preview )
-
 if [ "$1" == "--show" ]; then # If first argument is --show execute
   file="${screenshot_dir}${2}.jpeg" # $2 is the tag which will be previewed
   [ -f $file ] || exit 1            # Exit if file doesnt exist
-  feh -g 230x130+10+40 --scale-down $file
+  feh -g 281x158+10+50 --image-bg "#2E3440" -Z -. $file
 fi