Re: dmenu output question
Reply #5 –
The end goal is to have my Super+Fnumber keys go to certain locations, which are often lengthy (e.g. /harddrive/user/old/videos or /harddrive/user/old/pdf)
Typing these on terminal everytime is very annoying and consumes plenty of time daily
Less so when I can open terminal to type F2+enter, but that's in total 4 button presses (excluding Shift+Super), when it could be just 1.
The above script F2, works on the terminal. But when I binded F2 key via windows manager (dwm), it didnt work, so I thought that my windows manager was bugged. Then, one day, I tried running F2 script via dmenu, and it didn't work either, so its not a keybinding bug, my script is just wrong. And I instantly posted this thread because I am a linux newbie and search engine didn't help on solutions
The post above me confirmed its not a dwm bug but my script is bugged/wrong
dir=$(ls /harddrive/user/old/videos | dmenu -p "Enter Directory: ")
lf "$dir"
instantly works by pressing F2 and browses my videos and folders - but does not open lf!!
So I guess the main title of this thread is off-topic, as it is more related to dwm and lf, but how do I make F2 create a lf instance/window and go at a certain location?
Update: I did it. So, lf needs terminal to run, so I simply put in my dwm's config.h on the F2 keybinding
`SHCMD(TERMINAL " -e lf /harddrive/user/old/videos")`
Thank you very much. Especially that codepart above, which confirmed lf does not open via dmenu. Now I can finally move around my computer without restriction <3
What do you use to browse your computer's files? E.g. to move browser's downloads somewhere else