From 950df3d84cd1d364712c7095da1e19941832d661 Mon Sep 17 00:00:00 2001 From: Stephan Raabe Date: Tue, 27 Feb 2024 10:36:51 +0100 Subject: [PATCH] Fixed blurred background for wlogout. Create blurred version with magick --- .install/displaymanager.sh | 2 +- .install/packages/general-packages.sh | 1 + README.md | 14 ++++++++++++++ hypr/scripts/wallpaper.sh | 6 +++++- wlogout/style.css | 5 ++++- 5 files changed, 25 insertions(+), 3 deletions(-) diff --git a/.install/displaymanager.sh b/.install/displaymanager.sh index 6bcf2d1..4ea9791 100755 --- a/.install/displaymanager.sh +++ b/.install/displaymanager.sh @@ -59,7 +59,7 @@ fi if [ "$dmsel" == "Install sddm" ] ;then disman=0 - # Try to force the installation of sddm-git + # Try to force the installation of sddm echo "Install sddm" yay -S --noconfirm sddm sddm-sugar-candy-git --ask 4 diff --git a/.install/packages/general-packages.sh b/.install/packages/general-packages.sh index 99d11aa..4d27a84 100644 --- a/.install/packages/general-packages.sh +++ b/.install/packages/general-packages.sh @@ -50,6 +50,7 @@ packagesPacman=( "python-pywal" "xdg-desktop-portal" "qalculate-gtk" + "imagemagick" ); packagesYay=( diff --git a/README.md b/README.md index e06aaf8..0dfbad0 100644 --- a/README.md +++ b/README.md @@ -131,6 +131,20 @@ Users have reported that Hyprland with dotfiles could be installed successfully There is no official Hyprland support for Nvidia hardware. However, you might make it work properly following this page. https://wiki.hyprland.org/Nvidia/ +In case you don't see the mouse cursor please add the folling line to your .bashrc + +``` +WLR_NO_HARDWARE_CURSORS=1 +``` + +Or create a environment variation for nvidia in ~/dotfiles/hypr/conf/environments/nvidia.conf by copying the default.conf and add the line + +``` +env = WLR_NO_HARDWARE_CURSORS, 1 +``` + +Then select the file in the settings script in system/environment + ## Launch Hyprland from tty The suggested method to start Hyprland is from tty with the command Hyprland bacause login managers (display managers) are not official supported (https://wiki.hyprland.org/Getting-Started/Master-Tutorial/#launching-hyprland) diff --git a/hypr/scripts/wallpaper.sh b/hypr/scripts/wallpaper.sh index f89e680..c30b031 100755 --- a/hypr/scripts/wallpaper.sh +++ b/hypr/scripts/wallpaper.sh @@ -63,7 +63,7 @@ esac # Load current pywal color scheme # ----------------------------------------------------- source "$HOME/.cache/wal/colors.sh" -echo "Wallpaper: $wallpaper" +echo ":: Wallpaper: $wallpaper" # ----------------------------------------------------- # Write selected wallpaper into .cache files @@ -101,4 +101,8 @@ swww img $wallpaper \ sleep 1 notify-send "Colors and Wallpaper updated" "with image $newwall" +# Create blurred version of new wallaper +magick $wallpaper -blur 0x8 ~/.cache/current_wallpaper_blur +echo ":: Blurred version of wallaper created in ~/.cache/current_wallpaper_blur." + echo "DONE!" diff --git a/wlogout/style.css b/wlogout/style.css index d66e2dd..b224386 100644 --- a/wlogout/style.css +++ b/wlogout/style.css @@ -23,10 +23,13 @@ by Stephan Raabe (2023) font-family: "Fira Sans Semibold", FontAwesome, Roboto, Helvetica, Arial, sans-serif; background-image: none; transition: 20ms; + box-shadow: none; } window { - background-color: rgba(12, 12, 12, 0.1); + background-image: url("../../.cache/current_wallpaper_blur"); + background-position: center; + background-size: cover; } button {