reimplement config dotfiles with templates

This commit is contained in:
SALVI Jérémie
2024-08-15 17:56:06 +02:00
parent 9ae4fdb609
commit d02841fd19
49 changed files with 2451 additions and 219 deletions

19
scripts/bookmarks.sh Executable file
View File

@@ -0,0 +1,19 @@
#!/bin/bash
_BASENAME=$(basename "$0")
_DIRNAME=$(dirname "$0")
cd "$(dirname "$0")" || _exit 1
_URL=$(grep -Ev "^#" ./bookmarks | rofi -dmenu -i -p Bookmarks)
if [[ "$_URL" == "edit" ]]
then
urxvt -e nvim /usr/local/share/dotfiles/scripts/bookmarks
exit 0
fi
if [[ -n $_URL ]]
then
firefox "$(awk '{print $1}' <<< "$_URL")"
fi