Many changes
This commit is contained in:
8
modules/qutesearch/home.nix
Normal file
8
modules/qutesearch/home.nix
Normal 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
6
modules/qutesearch/qutesearch
Executable 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"
|
||||
Reference in New Issue
Block a user