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

View file

@ -72,9 +72,10 @@ decoration {
# if you want heavy blur, you need to up the blur_passes.
# the more passes, the more you can up the blur_size without noticing artifacts.
drop_shadow=true
shadow_range=20
shadow_range=50
shadow_offset=2 2
shadow_render_power=1
shadow_render_power=3
col.shadow = rgba(000000ee)
dim_inactive=true
dim_strength=0.2
}
@ -110,6 +111,7 @@ ${if builtins.readFile "/etc/hostname" == "syl\n" then "# this is a kaladin spac
windowrule=float,mpv
${if builtins.readFile "/etc/hostname" == "syl\n" then "windowrule=size 90% 76%,mpv" else "windowrule=size 85% 85%,mpv"}
windowrule=center,mpv
windowrule=pin,mpv
windowrule=float,pulsemixer
windowrule=workspace 1,firefox
windowrule=workspace 2,emacs
@ -127,7 +129,7 @@ bind = SUPERSHIFT,Q,exit,
bind = SUPERSHIFT,D,exec,dolphin
bind = SUPERSHIFT,F,togglefloating,
bindr = SUPER,Super_L,exec,/home/chris/bin/launcher.sh
bindr = ALT,Alt_L,exec,/home/chris/bin/window.sh
# bindr = ALT,Alt_L,exec,/home/chris/bin/window.sh
bind = SUPER,w,exec,/home/chris/bin/window.sh
bind = SUPER,E,exec,/home/chris/bin/emacslof
bind = SUPER,d,exec,emacsclient -c -e '(dired-jump)'