]> Freerunner's - dotfiles.git/commitdiff
lf: new command 'W' to set selected file as wallpaper
authorAndre Ramnitz <tux.rising@gmail.com>
Tue, 22 Oct 2024 22:45:11 +0000 (00:45 +0200)
committerAndre Ramnitz <tux.rising@gmail.com>
Tue, 22 Oct 2024 22:45:11 +0000 (00:45 +0200)
dot-config/lf/lfrc

index 4ab656ed1529bfe42ac32ab4ede7677c8f84ccc5..72d4a2986845306be402fdfc15f7a30c97aa1c0f 100644 (file)
@@ -334,10 +334,12 @@ cmd selected-to-new-folder ${{
 # helpers
 cmd open-with-gui &$@ $fx # opens asynchronously, intended for GUI applications
 cmd open-with-cli $$@ $fx # opens synchronously, intended for CLI/TUI applications
+cmd set-swww-wallpaper %{{swww img $f}}
 cmd chdir cd "$@"
 
 # options per location
 setlocal ~ sortby name
+setlocal ~/Downloads sortby ctime
 setlocal ~/Bilder/Screenshots sortby ctime
 setlocal ~/dotfiles sortby name
 setlocal /m sortby name
@@ -425,4 +427,4 @@ map + push :glob-select<space>
 map - push :glob-unselect<space>
 map <enter> push :open-with-gui<space>
 map <a-enter> push :open-with-cli<space>
-
+map W :set-swww-wallpaper