Many changes

This commit is contained in:
2024-01-25 00:55:35 -07:00
commit f5f1a2b69c
56 changed files with 4123 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
{ pkgs, ... }: {
home.file.".local/bin/qutesearch".source = ./qutesearch;
home.packages = [
pkgs.sqlite
pkgs.qutebrowser
];
}

6
modules/qutesearch/qutesearch Executable file
View File

@@ -0,0 +1,6 @@
#!/bin/sh
db=$HOME/.local/share/qutebrowser/history.sqlite
url=$(sqlite3 "$db" "select title,url from History" | tac | awk '!a[$0]++' | rofi -dmenu | awk -F '|' '{print $NF}')
[ -z "$url" ] && exit
qutebrowser --target window "$url"