From d36d789940c5ea4519fddcb01b985104c7858aa6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Yaroslav=20de=20la=20Pe=C3=B1a=20Smirnov?=
 <yps@yaroslavps.com>
Date: Sun, 25 Oct 2020 18:06:20 +0300
Subject: Adapt scripts to new waybar height

(I know this is a bit hacky)
---
 dotfiles/.local/bin/ddquakemite  | 2 +-
 dotfiles/.local/bin/setbglblur   | 2 +-
 dotfiles/.local/bin/setbglsimple | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/dotfiles/.local/bin/ddquakemite b/dotfiles/.local/bin/ddquakemite
index 8760e14..c38225a 100755
--- a/dotfiles/.local/bin/ddquakemite
+++ b/dotfiles/.local/bin/ddquakemite
@@ -10,7 +10,7 @@ else
     $TERMINAL -t "ddterminal" -e tmuxatt &
     sleep 0.2s
     currenty=$(swaygetcurrentwindow | cut -d ' ' -f1 | cut -d ',' -f2 )
-    let moveup=$currenty-25
+    let moveup=$currenty-30
     swaymsg move up "$moveup px"
 fi
 
diff --git a/dotfiles/.local/bin/setbglblur b/dotfiles/.local/bin/setbglblur
index c187ba3..96c1757 100755
--- a/dotfiles/.local/bin/setbglblur
+++ b/dotfiles/.local/bin/setbglblur
@@ -3,7 +3,7 @@
 vertical=$(swaymsg -t get_outputs | jq ".[0].current_mode.height")
 horizontal=$(swaymsg -t get_outputs | jq ".[0].current_mode.width")
 scale=$(swaymsg -t get_outputs | jq ".[0].scale")
-barheight=$(echo ""$scale" * 27" | bc -l)
+barheight=$(echo ""$scale" * 30" | bc -l)
 
 convert "$1" -resize "$horizontal"x"$vertical"^ -gravity center \
   -extent "$horizontal"x"$vertical" ~/.config/lockwall.png
diff --git a/dotfiles/.local/bin/setbglsimple b/dotfiles/.local/bin/setbglsimple
index f48dd7e..84a9b0f 100755
--- a/dotfiles/.local/bin/setbglsimple
+++ b/dotfiles/.local/bin/setbglsimple
@@ -3,7 +3,7 @@
 vertical=$(swaymsg -t get_outputs | jq ".[0].current_mode.height")
 horizontal=$(swaymsg -t get_outputs | jq ".[0].current_mode.width")
 scale=$(swaymsg -t get_outputs | jq ".[0].scale")
-barheight=$(echo ""$scale" * 27" | bc -l)
+barheight=$(echo ""$scale" * 30" | bc -l)
 
 convert "$1" -resize "$horizontal"x"$vertical"^ -gravity center \
   -extent "$horizontal"x"$vertical" ~/.config/lockwall.png
-- 
cgit v1.2.3