use same image for wallpaper and lockscreen
This commit is contained in:
parent
d12997d2b6
commit
1ecd202a81
3 changed files with 3 additions and 4 deletions
|
@ -10,13 +10,13 @@ in
|
||||||
events = [
|
events = [
|
||||||
{
|
{
|
||||||
event = "before-sleep";
|
event = "before-sleep";
|
||||||
command = "${swaylock} -f -i /tmp/lockpaper.jpg";
|
command = "${swaylock} -f -i /tmp/wallpaper.jpg";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
timeouts = [
|
timeouts = [
|
||||||
{
|
{
|
||||||
timeout = 600;
|
timeout = 600;
|
||||||
command = "${swaylock} -f -i /tmp/lockpaper.jpg";
|
command = "${swaylock} -f -i /tmp/wallpaper.jpg";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
timeout = 900;
|
timeout = 900;
|
||||||
|
|
|
@ -182,7 +182,7 @@ in
|
||||||
"SUPER_SHIFT,b, exec, ${pkgs.rofi-bluetooth}/bin/rofi-bluetooth"
|
"SUPER_SHIFT,b, exec, ${pkgs.rofi-bluetooth}/bin/rofi-bluetooth"
|
||||||
"SUPER_SHIFT,s, exec, ${kitty} ${spotify-player}"
|
"SUPER_SHIFT,s, exec, ${kitty} ${spotify-player}"
|
||||||
|
|
||||||
"SUPER,escape, exec, ${swaylock} -f -i /tmp/lockpaper.jpg"
|
"SUPER,escape, exec, ${swaylock} -f -i /tmp/wallpaper.jpg"
|
||||||
"SUPER_SHIFT,W, exec, ${change-wallpaper}"
|
"SUPER_SHIFT,W, exec, ${change-wallpaper}"
|
||||||
"SUPER_ALT,W, exec, ${wallhaven-wallpaper}"
|
"SUPER_ALT,W, exec, ${wallhaven-wallpaper}"
|
||||||
|
|
||||||
|
|
|
@ -18,6 +18,5 @@ random_paper() {
|
||||||
|
|
||||||
swww query || swww init
|
swww query || swww init
|
||||||
convert "$(random_paper)" /tmp/wallpaper.jpg && swww img --transition-step 2 --transition-type random --transition-duration 1 "/tmp/wallpaper.jpg"
|
convert "$(random_paper)" /tmp/wallpaper.jpg && swww img --transition-step 2 --transition-type random --transition-duration 1 "/tmp/wallpaper.jpg"
|
||||||
convert "$(random_paper)" /tmp/lockpaper.jpg
|
|
||||||
|
|
||||||
notify-send -r 1234 -i information -t 5000 "Wallpaper" "Wallpaper changed."
|
notify-send -r 1234 -i information -t 5000 "Wallpaper" "Wallpaper changed."
|
||||||
|
|
Loading…
Reference in a new issue