0.3.9
This commit is contained in:
parent
f65b512bfc
commit
7279d4685c
4 changed files with 29 additions and 3 deletions
|
@ -1,7 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
source "/usr/lib/sp-functions"
|
source "/usr/lib/sp-functions"
|
||||||
source "${conf_dir}/config"
|
|
||||||
|
|
||||||
case $1 in
|
case $1 in
|
||||||
file_manager )
|
file_manager )
|
||||||
|
|
15
bin/sp-lock
15
bin/sp-lock
|
@ -7,7 +7,20 @@ unlock_script="${conf_dir}/unlockscript"
|
||||||
if [ -f "${lock_script}" ]; then
|
if [ -f "${lock_script}" ]; then
|
||||||
bash -c "${lock_script}"
|
bash -c "${lock_script}"
|
||||||
fi
|
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
|
if [ -f "${unlock_script}" ]; then
|
||||||
bash -c "${unlock_script}"
|
bash -c "${unlock_script}"
|
||||||
fi
|
fi
|
||||||
|
|
8
debian/changelog
vendored
8
debian/changelog
vendored
|
@ -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
|
sway-profiles (0.3.8) unstable; urgency=medium
|
||||||
|
|
||||||
* sp-wallpaper now handles creation of lockscreen wallpapers for faster locking
|
* sp-wallpaper now handles creation of lockscreen wallpapers for faster locking
|
||||||
|
|
|
@ -3,6 +3,10 @@
|
||||||
|
|
||||||
conf_dir="$HOME/.config/sway-profiles"
|
conf_dir="$HOME/.config/sway-profiles"
|
||||||
cache_dir="$HOME/.cache/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}
|
mkdir -p "${cache_dir}/"{displays,lock,screenshots}
|
||||||
|
|
||||||
|
@ -32,7 +36,9 @@ get_profile_id(){
|
||||||
}
|
}
|
||||||
|
|
||||||
get_profile_name(){
|
get_profile_name(){
|
||||||
echo "test"
|
get_profile_list
|
||||||
|
[ -z "${1}" ] && p=`get_active_profile` || p="${1}"
|
||||||
|
echo "${p_name[ ${p} ]}"
|
||||||
}
|
}
|
||||||
|
|
||||||
get_profile_list(){
|
get_profile_list(){
|
||||||
|
|
Loading…
Add table
Reference in a new issue