Compare commits

...

2 commits

Author SHA1 Message Date
Viyurz
cf713cb0b4
Swaylock: Take into consideration state of weeb mode.
If weeb mode is off, swaylock will display the default Hyprland wallpaper
instead of the randomly chosen one when using the base swaylock (no
effects).
2023-12-05 11:04:52 +01:00
Viyurz
2e93a9da81
Hyprland: Replaced Nextcloud with Syncthing 2023-12-05 11:04:02 +01:00
4 changed files with 40 additions and 4 deletions

View file

@ -39,9 +39,8 @@ exec-once = discord --start-minimized --enable-features=UseOzonePlatform --ozone
# Element # Element
exec-once = element-desktop --hidden exec-once = element-desktop --hidden
# Nextcloud # Syncthing
exec-once = nextcloud --background exec-once = syncthing --no-browser --gui-address=http://127.0.0.1:8384
exec-once = gnome-keyring-daemon -s -f
# Theming # Theming
exec-once = echo 1 > "$HOME/.cache/weeb-mode" exec-once = echo 1 > "$HOME/.cache/weeb-mode"

32
.scripts/i3lock.sh Executable file
View file

@ -0,0 +1,32 @@
#!/bin/sh
source "$HOME/.cache/colors.sh"
options=(
--insidever-color=#00000000
--ringver-color=$good
--insidewrong-color=#00000000
--ringwrong-color=$bad
--inside-color=00000000
--ring-color=$accent1
--line-color=00000000
--separator-color=00000000
--verif-color=$foreground
--wrong-color=$foreground
--time-color=$foreground
--date-color=$foreground
--layout-color=$foreground
--keyhl-color=$foreground
--bshl-color=$disabled
--screen 1
--clock
--indicator
--time-str="%H:%M:%S"
--date-str="%A, %Y-%m-%d"
--keylayout 1
--image "$HOME/.cache/wallpaper-blurred.jpg"
)
i3lock "${options[@]}"
sw -r

View file

@ -353,3 +353,4 @@ fi
# Generate blurred wallpaper to use with swaylock/i3lock # Generate blurred wallpaper to use with swaylock/i3lock
convert "$wallpaper" -blur 0x5 -resize 1920x1080 "$HOME/.cache/wallpaper-blurred.jpg" & convert "$wallpaper" -blur 0x5 -resize 1920x1080 "$HOME/.cache/wallpaper-blurred.jpg" &
[[ -f "$HOME/.cache/wallpaper-hypr-blurred.jpg" ]] || convert /usr/share/hyprland/wall_2K.png -blur 0x5 -resize 1920x1080 "$HOME/.cache/wallpaper-hypr-blurred.jpg" &

View file

@ -51,8 +51,12 @@ else
options+=( options+=(
--show-failed-attempts --show-failed-attempts
--indicator-idle-visible --indicator-idle-visible
--image "$HOME/.cache/wallpaper-blurred.jpg"
) )
if grep -q 1 "$HOME/.cache/weeb-mode"; then
options+=(--image "$HOME/.cache/wallpaper-blurred.jpg")
else
options+=(--image "$HOME/.cache/wallpaper-hypr-blurred.jpg")
fi
fi fi
if swaylock -v | grep -q fprintd; then if swaylock -v | grep -q fprintd; then