From 8654b6087bd454c6bca1bd3a471969b04bb0bf3e Mon Sep 17 00:00:00 2001 From: NaiJi Date: Fri, 9 Aug 2024 21:59:14 +0400 Subject: [PATCH] stuff --- .config/i3/config | 5 +++-- .local/bin/dexplorer | 6 ++++-- .local/bin/dkill | 2 +- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.config/i3/config b/.config/i3/config index 87b7a61..b03bf74 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -62,7 +62,7 @@ bindsym $mod+Shift+Return exec alacritty -e tmux a bindsym $mod+Shift+q kill # start dmenu (a program launcher) -bindsym $mod+d exec --no-startup-id dmenu_run +bindsym $mod+d exec --no-startup-id dmenu_run -i -b # A more modern dmenu replacement is rofi: # bindcode $mod+40 exec "rofi -modi drun,run -show drun" # There also is i3-dmenu-desktop which only displays applications shipping a @@ -235,11 +235,12 @@ mode "$mode_music" { } 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, (a)udiobooks mode "$mode_explorer" { bindsym m exec /home/naiji/.local/bin/dexplorer m dmenu, mode "default" bindsym y exec /home/naiji/.local/bin/dexplorer y dmenu, mode "default" bindsym b exec /home/naiji/.local/bin/dexplorer b dmenu, mode "default" + bindsym a exec /home/naiji/.local/bin/dexplorer a dmenu, mode "default" # exit system mode: "Enter" or "Escape" bindsym Return mode "default" diff --git a/.local/bin/dexplorer b/.local/bin/dexplorer index ac63815..e72a083 100755 --- a/.local/bin/dexplorer +++ b/.local/bin/dexplorer @@ -1,8 +1,10 @@ #!/bin/bash app="fzf" -[ ! -z $2 ] && [ $2 == "dmenu" ] && app="dmenu"; +[ ! -z $2 ] && [ $2 == "dmenu" ] && app="dmenu -i -b"; -[ $1 == "b" ] && zathura "$(find ~/Mounts/hdd2/Books/ -type f | $app)"; + +[ $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)"; +[ $1 == "a" ] && mpv "$(find ~/Mounts/hdd2/Audiobooks/ | $app)"; diff --git a/.local/bin/dkill b/.local/bin/dkill index 17e0503..7ecea1c 100755 --- a/.local/bin/dkill +++ b/.local/bin/dkill @@ -1,3 +1,3 @@ #!/bin/bash -kill $(ps aux | dmenu | awk '{print $2;}') +kill $(ps aux | dmenu -b | awk '{print $2;}')