mirror of
https://github.com/xsghetti/HyprCrux.git
synced 2025-07-02 21:30:39 -04:00
hyprpm/hyprlock
This commit is contained in:
parent
d4376c8ddf
commit
e973ebbc15
39 changed files with 2500 additions and 7 deletions
19
.config/hypr/scripts/sddmwall.sh
Executable file
19
.config/hypr/scripts/sddmwall.sh
Executable file
|
@ -0,0 +1,19 @@
|
|||
#!/bin/bash
|
||||
|
||||
sddmback="/usr/share/sddm/themes/corners/backgrounds/bg.png"
|
||||
sddmconf="/usr/share/sddm/themes/corners/theme.conf"
|
||||
slnkwall="${XDG_CONFIG_HOME:-$HOME/.config}/swww/wall.set"
|
||||
|
||||
if [ "$(getfacl -p /home/${USER} | grep user:sddm | awk '{print substr($0,length)}')" != "x" ] ; then
|
||||
echo "granting sddm execution access to /home/${USER}..."
|
||||
setfacl -m u:sddm:x /home/${USER}
|
||||
fi
|
||||
|
||||
if [ "$(grep "Background=" "${sddmconf}")" == "Background=\"${slnkwall}\"" ] ; then
|
||||
echo "setting static sddm background..."
|
||||
sed -i "/^Background=/c\Background=\"${sddmback}\"" "${sddmconf}"
|
||||
else
|
||||
echo "setting dynamic sddm background..."
|
||||
sed -i "/^Background=/c\Background=\"${slnkwall}\"" "${sddmconf}"
|
||||
fi
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue