Switch to wayland

This commit is contained in:
Nise Void 2022-11-19 18:12:33 +01:00
parent faea70b1d3
commit b3e83db50b
11 changed files with 133 additions and 105 deletions

View file

@ -1,36 +0,0 @@
#!/bin/bash
echo RELOADAGENT | gpg-connect-agent
ssh-add -D
if [ "$(xrandr | grep 3440x1440)" != "" ]; then
SCALE="100%"
DIR=$(echo -e "+800+0\n-800+0" | sort -R | head -1)
else
SCALE="75%"
DIR=$(echo -e "+500+0\n-500+0" | sort -R | head -1)
fi
IMAGE=/tmp/screenlock.png
IMG="$HOME/.LinuxConfig/imgs/fuyu-logo.png"
maim -m 1 $IMAGE
convert $IMAGE -filter gaussian -blur 0x9 \
-gravity center -matte \
"$IMG[$SCALE]" -geometry $DIR -composite \
~/.LinuxConfig/imgs/lock.png -composite \
-font Noto-Sans-CJK-JP-Regular -pointsize 25 -fill 'rgba(255,255,255,0.85)' -draw "text 0,150 'Enter password'" \
-font Noto-Sans-CJK-JP-Regular -pointsize 20 -fill 'rgba(255,255,255,0.60)' -draw "text 0,200 'パスワードを入力する'" \
$IMAGE
i3lock \
--textcolor=00000000 \
--separatorcolor=00000000 --linecolor=00000000 \
--keyhlcolor=22cc2288 --bshlcolor=cc222288 \
--insidecolor=33333344 --ringcolor=aaaaaa88 \
--insidevercolor=55555544 --ringvercolor=cccccc88 \
--insidewrongcolor=cc222244 --ringwrongcolor=cc222288 \
-eni $IMAGE
rm $IMAGE

View file

@ -1,14 +0,0 @@
#!/bin/sh
while (true); do
SONG=
if [ "$(mpc | wc -l)" -eq "3" ]; then
SONG=$(mpc | head -1)" | "
if [ "$(mpc | grep '\[paused\]' | wc -l)" -eq "1" ]; then
SONG="⏸ $SONG"
fi
fi
xsetroot -name " $SONG$(date '+%Y-%m-%d %H:%M:%S') "
sleep 0.3s;
done

View file

@ -1,18 +0,0 @@
#!/bin/bash
NAME="ss-$(cat /dev/urandom | tr -dc A-Za-z0-9 | head -c${1:-32};)"
maim -m 10 -s /tmp/$NAME.jpg -c 1,0.25,0.25,0.6 --hidecursor
if [ $? -ne 0 ]; then
exit
fi
if [ ! -e /tmp/$NAME.jpg ]; then
exit
fi
scp /tmp/$NAME.jpg ss:ss
if [ $? -eq 0 ]; then
echo -n 'https://ss.fuyu.moe/nisevoid/'$NAME'.jpg' | xclip -selection "clip-board"
fi
rm /tmp/$NAME.jpg

View file

@ -1,5 +0,0 @@
#!/bin/bash
IMG="$HOME/images/"$(ls ~/images/ | sort -R | head -1)
feh --bg-fill "$IMG"

View file

@ -1,13 +0,0 @@
#!/bin/bash
xset s 300
xset dpms 300 450 600
while true; do
sleep 1s;
if [ "$(xset q | grep 'Monitor is' | grep -v 'On' 2> /dev/null)" != "" ]; then
if [ "$(ps aux | grep '[i]3lock')" == "" ]; then
lock;
fi
fi
done