updates for hyprland

This commit is contained in:
Chris Cochrun 2023-01-10 09:39:27 -06:00
parent 8adb361b82
commit 7863e720c3
4 changed files with 213 additions and 176 deletions

18
scripts/ncsyncchk.sh Executable file
View file

@ -0,0 +1,18 @@
#!/usr/bin/env bash
folders=( 0 1 2 3 4 5 6 )
# while [ 1 ];
# do
echo "" > /tmp/ncsync
syncing=$(cat /tmp/ncsync)
for folder in ${folders[@]}
do
name=$(qdbus com.nextcloudgmbh.Nextcloud /com/nextcloudgmbh/Nextcloud/Folder/$folder org.freedesktop.CloudProviders.Account.Name)
fullstatus=$(qdbus com.nextcloudgmbh.Nextcloud /com/nextcloudgmbh/Nextcloud/Folder/$folder org.freedesktop.CloudProviders.Account.StatusDetails)
status=$(echo $fullstatus | awk '{print $3}' | sed 's/,//')
echo $name - $fullstatus >> /tmp/ncsync
done
# sleep 3
# done

14
scripts/ncsyncmon Executable file
View file

@ -0,0 +1,14 @@
#!/usr/bin/env bash
while [ 1 ];
do
./ncsyncchk.sh
ncsync=$(cat /tmp/ncsync)
if rg -q "Syncing" /tmp/ncsync
then
echo true
else
echo false
fi
sleep 10
done

View file

@ -1,9 +1,12 @@
#!/usr/bin/env bash
list_windows() (
wlrctl window list
)
window=$(wlrctl window list | rofi -i -sync -dmenu -p " " -theme ~/.config/rofi/launchers-git/laptop-rbw-wayland.rasi)
window=$(wlrctl window list | rofi -i -sync -dmenu -p " " -theme ~/.config/rofi/launchers-git/laptop-rbw-wayland.rasi | awk '{print $1}' | sed 's/://')
win=$(echo $window | awk '{print $1}' | sed 's/://')
wlrctl window focus $window
if [ $win == "" ]
then
exit 0
fi
wlrctl window focus $win