Swayscript: Fix wallpaper_video reloads.
This commit is contained in:
parent
163a7c973b
commit
703ce5303c
|
@ -12,7 +12,7 @@ in
|
|||
(lib.mkIf (cfg.videoPath != null) {
|
||||
environment.systemPackages = [
|
||||
(pkgs.writeShellScriptBin "wallpaper-video" ''
|
||||
mpvpaper -o 'no-audio --hwdec=auto --loop-file --panscan=1' '*' ${cfg.videoPath}
|
||||
mpvpaper -o 'no-audio --hwdec=auto --loop-file --panscan=1' '*' ${cfg.videoPath} & disown
|
||||
'')
|
||||
];
|
||||
})
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
output * bg @wallpaper@ fill
|
||||
bindsym --to-code $mod+z exec swayscript wallpaper_video
|
||||
bindsym --to-code $mod+z exec 'swayscript wallpaper_video'
|
||||
|
||||
client.focused "#@accent@" "#@accent@" "#@fg@" "#@accent@" "#@accent@"
|
||||
client.focused_inactive "#@border@" "#@border@" "#@fg@" "#@border@" "#@border@"
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
# Toggle video wallpaper.
|
||||
function wallpaper_video() {
|
||||
notify_short
|
||||
pkill mpvpaper || wallpaper-video
|
||||
re() {
|
||||
pkill mpvpaper || wallpaper-video
|
||||
}
|
||||
|
||||
_sway_iterate_sockets re
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue