Skip to content

Adding bookmarkthis script#1232

Open
warthog18 wants to merge 2 commits intoLukeSmithxyz:masterfrom
warthog18:master
Open

Adding bookmarkthis script#1232
warthog18 wants to merge 2 commits intoLukeSmithxyz:masterfrom
warthog18:master

Conversation

@warthog18
Copy link

Adding bookmarkthis script by Luke Smith in .dotfiles repository... do you agree?
Thanks!

Adding bookmarkscript by Luke Smith, shown in YT video "Bookmarking for Unix Chads..."... what do you think?
@Inlife-raphael
Copy link

Is it possible to add the DWM binding also?

@warthog18
Copy link
Author

Is it possible to add the DWM binding also?

Just uncomment the line with the binding of MODKEY Shift and in the command add something like
{ MODKEY|ShiftMask, XK_b, spawn, { .v = (const char*[]){ "bookmarkthis", NULL } } }

@warthog18
Copy link
Author

Is it possible to add the DWM binding also?

Just uncomment the line with the binding of MODKEY Shift and in the command add something like { MODKEY|ShiftMask, XK_b, spawn, { .v = (const char*[]){ "bookmarkthis", NULL } } }

The file to modify is config.h under src/dwm

@DanielPonte01
Copy link

DanielPonte01 commented Apr 10, 2023

Guys, i have no idea how to add my script to the commit section on here, i think i end up adding a complete new pull. Any way, here the script that i use:

https://github.com/DanielPonte01/bookmark/blob/main/bookmarkthis

It provides the ability to create the bookmark with a title, if the user so desires, via a Dmenu prompt. As you can see it changes directory to $HOME/Documents/bookmarks and uses the bookmarks.txt document. The directory and file are automatically generated.

An additional change must be made to the DWM configuration. In the shortcut that call for the dmenu promp, use this:

"xdotool type $(grep -v '^#' /$HOME/Documents/bookmarks/bookmarks.txt | dmenu -i -l 50 | cut -d' ' -f1)"

@DanielPonte01
Copy link

Guys, i have no idea how to add my script to the commit section on here, i think i end up adding a complete new pull. Any way, here the script that i use:

https://github.com/DanielPonte01/bookmark/blob/main/bookmarkthis

It provides the ability to create the bookmark with a title, if the user so desires, via a Dmenu prompt. As you can see it changes directory to $HOME/Documents/bookmarks and uses the bookmarks.txt document. The directory and file are automatically generated.

An additional change must be made to the DWM configuration. In the shortcut that call for the dmenu promp, use this:

"xdotool type $(grep -v '^#' /$HOME/Documents/bookmarks/bookmarks.txt | dmenu -i -l 50 | cut -d' ' -f1)"

Someone can put the script in the commit section?

@emrakyz
Copy link
Contributor

emrakyz commented Apr 22, 2023

I have improved the bookmarking function, thinking you would like it. Take a look at it, I will open a new PR.

You only get the names of the websites on dmenu. For example you only see "Searxng". If you enter, you can search things with a keyword without a browser opened. If the chosen site doesn't need you to search, then you open the site immediately.

With this way, we improve readability since we remove the unnecessary part from the urls.
Instead of seeing "https://www.paulgo.io/search?q=", we see "Searxng" inside dmenu.

The script can also add, delete, edit bookmarks without needing another script. It handles duplicates and wrong URLs.

I have shared my script. You can check the PR from me:
Improved Bookmark

@warthog18 @Inlife-raphael @DanielPonte01 @marcoacarvalho

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants