aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/.scripts
diff options
context:
space:
mode:
Diffstat (limited to 'dotfiles/.scripts')
-rwxr-xr-xdotfiles/.scripts/menusession2
-rwxr-xr-xdotfiles/.scripts/setbglblur4
-rwxr-xr-xdotfiles/.scripts/setbglsimple4
-rwxr-xr-xdotfiles/.scripts/swaysession (renamed from dotfiles/.scripts/i3session)0
4 files changed, 5 insertions, 5 deletions
diff --git a/dotfiles/.scripts/menusession b/dotfiles/.scripts/menusession
index fc5260b..9a4ae8c 100755
--- a/dotfiles/.scripts/menusession
+++ b/dotfiles/.scripts/menusession
@@ -5,4 +5,4 @@
action=$(printf "logout\nsuspend\nreboot\nshutdown\n" | bemenu -p "What to do?" $BEMENU_OPTIONS)
-i3session $action
+swaysession $action
diff --git a/dotfiles/.scripts/setbglblur b/dotfiles/.scripts/setbglblur
index 8de5e6f..8a3d51b 100755
--- a/dotfiles/.scripts/setbglblur
+++ b/dotfiles/.scripts/setbglblur
@@ -1,7 +1,7 @@
#!/bin/sh
-vertical=$(($(xdotool getdisplaygeometry | awk '{print $2}') - newsize))
-horizontal=$(($(xdotool getdisplaygeometry | awk '{print $1}') - newwidth))
+vertical=$(swaymsg -t get_outputs | jq ".[0].current_mode.height")
+horizontal=$(swaymsg -t get_outputs | jq ".[0].current_mode.width")
convert $1 -resize ${horizontal}x${vertical}\> ~/.config/lockwall.png
convert ~/.config/lockwall.png -brightness-contrast -20,-20 -paint 1 -noise 0x8 -blur 9,9 ~/.config/lockwall.png
diff --git a/dotfiles/.scripts/setbglsimple b/dotfiles/.scripts/setbglsimple
index ea2c5f2..51ac5ba 100755
--- a/dotfiles/.scripts/setbglsimple
+++ b/dotfiles/.scripts/setbglsimple
@@ -1,7 +1,7 @@
#!/bin/sh
-vertical=$(($(xdotool getdisplaygeometry | awk '{print $2}') - newsize))
-horizontal=$(($(xdotool getdisplaygeometry | awk '{print $1}') - newwidth))
+vertical=$(swaymsg -t get_outputs | jq ".[0].current_mode.height")
+horizontal=$(swaymsg -t get_outputs | jq ".[0].current_mode.width")
convert $1 -resize ${horizontal}x${vertical}\> ~/.config/lockwall.png
convert ~/.config/lockwall.png ~/.config/lock.png -gravity center -composite ~/.config/lockwall.png
diff --git a/dotfiles/.scripts/i3session b/dotfiles/.scripts/swaysession
index 17f99ca..17f99ca 100755
--- a/dotfiles/.scripts/i3session
+++ b/dotfiles/.scripts/swaysession