This commit is contained in:
Penelope Gwen 2025-02-28 07:26:01 +00:00
parent f65b512bfc
commit 7279d4685c
4 changed files with 29 additions and 3 deletions

View file

@ -1,7 +1,6 @@
#!/bin/bash
source "/usr/lib/sp-functions"
source "${conf_dir}/config"
case $1 in
file_manager )

View file

@ -7,7 +7,20 @@ unlock_script="${conf_dir}/unlockscript"
if [ -f "${lock_script}" ]; then
bash -c "${lock_script}"
fi
gtklock -s "${HOME}/.config/gtklock/style.css"
lock_args=()
if [ -f "/usr/lib/$(uname -m)-linux-gnu/gtklock/userinfo-module.so" ];then
lock_args+=("-m")
lock_args+=("/usr/lib/$(uname -m)-linux-gnu/gtklock/userinfo-module.so")
fi
if [ -f "/usr/lib/$(uname -m)-linux-gnu/gtklock/playerctl-module.so" ];then
lock_args+=("-m")
lock_args+=("/usr/lib/$(uname -m)-linux-gnu/gtklock/playerctl-module.so")
fi
if [ ! -z "${lock_monitor}" ];then
lock_args+=("-M")
lock_args+=("${lock_monitor}")
fi
gtklock -s "${HOME}/.config/gtklock/style.css" "${lock_args[@]}"
if [ -f "${unlock_script}" ]; then
bash -c "${unlock_script}"
fi

8
debian/changelog vendored
View file

@ -1,3 +1,11 @@
sway-profiles (0.3.9) unstable; urgency=medium
* support for gtklock modules
* support for gtklock preferred monitor by setting 'lock_monitor' variable in config
* support for config.d
-- Penelope Gwen <support@pogmom.me> Wed, 26 Feb 2025 18:24:28 +0000
sway-profiles (0.3.8) unstable; urgency=medium
* sp-wallpaper now handles creation of lockscreen wallpapers for faster locking

View file

@ -3,6 +3,10 @@
conf_dir="$HOME/.config/sway-profiles"
cache_dir="$HOME/.cache/sway-profiles"
source "${conf_dir}/config"
for c in "${conf_dir}/config.d/"*;do
source "${c}"
done
mkdir -p "${cache_dir}/"{displays,lock,screenshots}
@ -32,7 +36,9 @@ get_profile_id(){
}
get_profile_name(){
echo "test"
get_profile_list
[ -z "${1}" ] && p=`get_active_profile` || p="${1}"
echo "${p_name[ ${p} ]}"
}
get_profile_list(){