Skip to content

Commit

Permalink
ench qutebrowser config
Browse files Browse the repository at this point in the history
hakan-demirli committed Nov 26, 2023
1 parent df9a439 commit c8b92ec
Showing 4 changed files with 13 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .config/hypr/monitors.conf
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Generated by nwg-displays on 2023-11-24 at 13:32:03. Do not edit manually.

monitor=eDP-1,1920x1080@60.003006,0x0,1.0
monitor=eDP-1,1920x1080@144.003006,0x0,1.0
5 changes: 3 additions & 2 deletions .config/qutebrowser/config.py
Original file line number Diff line number Diff line change
@@ -86,10 +86,10 @@
# BUG: ... may not contain unprintable characters. Can't use regex.
# """--username-target "secret" --username-pattern "(?:^[^\n]*\n?){1}(.*)" --password-pattern "(.+)" """
# Just edit the qute-ass script instead of using regex.

config.bind(
"pl",
"""spawn --userscript qute-pass --username-target "secret" """,
'spawn --userscript qute-pass --username-target secret --username-pattern "username: (.+)"',
# """spawn --userscript qute-pass --username-target "secret" """,
)
config.bind(
"pu",
@@ -111,6 +111,7 @@
config.bind("<Alt-w>", "tab-select 2")
config.bind("<Alt-e>", "tab-select 3")
config.bind("<Alt-r>", "tab-select 4")
config.bind("o", "set-cmd-text -s :open -t ")


# Video Speed Controls
4 changes: 4 additions & 0 deletions .config/qutebrowser/userscripts/qute-pass
Original file line number Diff line number Diff line change
@@ -254,6 +254,7 @@ def fake_key_raw(text):

def extract_password(secret, pattern):
# match = re.match(pattern, secret)
print("scp ", secret)
match = secret.strip().split("\n")[0]
if not match:
raise CouldNotMatchPassword("Pattern did not match target")
@@ -267,6 +268,7 @@ def extract_password(secret, pattern):

def extract_username(target, pattern):
# match = re.search(pattern, target, re.MULTILINE)
print("tgu: ", target)
match = target.strip().split("\n")[1]
if not match:
raise CouldNotMatchUsername("Pattern did not match target")
@@ -353,7 +355,9 @@ def main(arguments):
and not arguments.otp_only
):
secret = pass_(selection)
print("sec: ", secret)
username_target = selection if arguments.username_target == "path" else secret
print("ut: ", username_target)
try:
if arguments.username_only:
fake_key_raw(extract_username(username_target, arguments.username_pattern))
6 changes: 5 additions & 1 deletion scripts/lin/ib.sh
Original file line number Diff line number Diff line change
@@ -154,7 +154,11 @@ function i_qb(){
sudo pacman -S --noconfirm --needed python-tldextract
sudo pacman -S --noconfirm --needed rofi
# Missing:
# [ ] Cross Platform Password Auto Fill
# [ ] Vimium like hint accuracy
# [ ] Usable pinned tabs/bookmarks
# https://www.reddit.com/r/qutebrowser/comments/ixrvgb/struggling_alittle_with_learning_how_to_manage/
# https://www.reddit.com/r/qutebrowser/comments/gcqwv2/how_do_you_guys_manage_your_bookmarksquickmarks/
# [x] Cross Platform Password Auto Fill
# https://github.com/unode/firefox_decrypt
# https://github.com/qutebrowser/qutebrowser/blob/main/misc/userscripts/qute-pass
# https://github.com/android-password-store/Android-Password-Store

0 comments on commit c8b92ec

Please sign in to comment.