From e1d11637f1e2e6151e261ad43ef699e314784253 Mon Sep 17 00:00:00 2001 From: TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> Date: Tue, 28 Jan 2025 04:38:47 +0900 Subject: modified bin/bookmarks, modified bin/dmenurecord, modified bin/ethwifi, modified statusbar/sb-internet --- ar/.local/bin/bookmarks | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ar/.local/bin/bookmarks') diff --git a/ar/.local/bin/bookmarks b/ar/.local/bin/bookmarks index a0f3d72..b24a4b9 100755 --- a/ar/.local/bin/bookmarks +++ b/ar/.local/bin/bookmarks @@ -86,18 +86,18 @@ openinbrowser() { selection="dmenu -i -l 20 -p \"Choose a $1 to open:\"" || selection="fzf-tmux --reverse --cycle --ansi --delimiter='|' --with-nth=1..-2" + cols=$((${COLUMNS:-90} / 3)) case "$1" in *bookmark*) sqlite_query=" - SELECT b.title || ' | ' || p.url AS bookmark + SELECT substr(b.title, 1, $cols) || ' | ' || p.url AS bookmark FROM moz_bookmarks b JOIN moz_places p ON b.fk = p.id WHERE b.type = 1 AND p.url LIKE 'http%' AND b.title NOT NULL - ORDER BY b.dateAdded DESC; + ORDER BY b.title; " ;; *history*) - cols=$((${COLUMNS:-90} / 3)) sqlite_query=" SELECT substr(p.title, 1, $cols) || ' | ' || p.url FROM moz_places p -- cgit v1.2.3