dexplorer

This commit is contained in:
NaiJi ✨ 2024-08-02 21:32:47 +04:00
parent a2245d53d8
commit c9826d2b66
2 changed files with 9 additions and 6 deletions

View File

@ -237,9 +237,9 @@ mode "$mode_music" {
bindsym $mod+Shift+B mode "$mode_explorer" bindsym $mod+Shift+B mode "$mode_explorer"
set $mode_explorer (b)ooks, (y)outube, (m)ovies set $mode_explorer (b)ooks, (y)outube, (m)ovies
mode "$mode_explorer" { mode "$mode_explorer" {
bindsym m exec /home/naiji/.local/bin/dexplorer movies, mode "default" bindsym m exec /home/naiji/.local/bin/dexplorer m dmenu, mode "default"
bindsym y exec /home/naiji/.local/bin/dexplorer youtube, mode "default" bindsym y exec /home/naiji/.local/bin/dexplorer y dmenu, mode "default"
bindsym b exec /home/naiji/.local/bin/dexplorer books, mode "default" bindsym b exec /home/naiji/.local/bin/dexplorer b dmenu, mode "default"
# exit system mode: "Enter" or "Escape" # exit system mode: "Enter" or "Escape"
bindsym Return mode "default" bindsym Return mode "default"

View File

@ -1,5 +1,8 @@
#!/bin/bash #!/bin/bash
[ $1 == "books" ] && zathura "$(find ~/Mounts/hdd2/Books/ -type f | dmenu)"; app="fzf"
[ $1 == "youtube" ] && mpv "$(find ~/Mounts/hdd2/YouTube/ -type f | dmenu)"; [ ! -z $2 ] && [ $2 == "dmenu" ] && app="dmenu";
[ $1 == "movies" ] && mpv "$(find ~/Mounts/hdd2/Movies\ \&\ Series/ -type f | dmenu)";
[ $1 == "b" ] && zathura "$(find ~/Mounts/hdd2/Books/ -type f | $app)";
[ $1 == "y" ] && mpv "$(find ~/Mounts/hdd2/YouTube/ -type f | $app)";
[ $1 == "m" ] && mpv "$(find ~/Mounts/hdd2/Movies\ \&\ Series/ -type f | $app)";