Skip to content

Commit

Permalink
lf fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jlesquembre committed Oct 25, 2023
1 parent 1b9d290 commit 305c162
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions home-manager/lf/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,15 @@ in
open = ''
''${{
case $(file --mime-type -Lb $f) in
image/*) swayimg -a $fx;;
text/*) nvim $fx;;
*) for f in $fx; do xdg-open $f > /dev/null 2> /dev/null & done;;
image/*)
swayimg -a $fx
;;
text/*)
nvim $fx
;;
*)
for f in $fx; do xdg-open $f; done
;;
esac
}}
'';
Expand Down

0 comments on commit 305c162

Please sign in to comment.