From 966f9587d7728c4841730d01de54f8a4912ebcbd Mon Sep 17 00:00:00 2001
From: Emmet
Date: Wed, 27 Nov 2024 18:03:38 -0600
Subject: [PATCH] Some touch navigation for qutebrowser
---
user/app/browser/qutebrowser.nix | 45 +++++++++++++++++++++++++++-----
1 file changed, 38 insertions(+), 7 deletions(-)
diff --git a/user/app/browser/qutebrowser.nix b/user/app/browser/qutebrowser.nix
index 7e79a8e..d42cfcb 100644
--- a/user/app/browser/qutebrowser.nix
+++ b/user/app/browser/qutebrowser.nix
@@ -13,7 +13,7 @@ let generateHomepage = name: font: config:
}
/*paragraphs*/
- p {
+ a, p {
font-family:''+font+'';
font-size:24px;
@@ -23,27 +23,47 @@ let generateHomepage = name: font: config:
line-height: 1.35;
margin-top: 0;
margin-bottom: 0;
+
+ text-decoration: none;
+ }
+ a:hover {
+ color: #''+config.lib.stylix.colors.base07+'';
}
.open {
color: #''+config.lib.stylix.colors.base09+'';
font-weight: bold;
}
+ .open:hover {
+ background-color: #''+config.lib.stylix.colors.base09+'';
+ }
.quickmarks {
color: #''+config.lib.stylix.colors.base0A+'';
font-weight: bold;
}
+ .quickmarks:hover {
+ background-color: #''+config.lib.stylix.colors.base0A+'';
+ }
.history {
color: #''+config.lib.stylix.colors.base0B+'';
font-weight: bold;
}
+ .history:hover {
+ background-color: #''+config.lib.stylix.colors.base0B+'';
+ }
.newtab {
color: #''+config.lib.stylix.colors.base0C+'';
font-weight: bold;
}
+ .newtab:hover {
+ background-color: #''+config.lib.stylix.colors.base0C+'';
+ }
.close {
color: #''+config.lib.stylix.colors.base0D+'';
font-weight: bold;
}
+ .close:hover {
+ background-color: #''+config.lib.stylix.colors.base0D+'';
+ }
/*div*/
div {
@@ -76,11 +96,10 @@ let generateHomepage = name: font: config:

Quickmarks
'
+with open(quickmarksFile) as myQuickmarks:
+ for line in myQuickmarks:
+ quickmarkData = line.split()
+ quickmarksHtmlFileText += '
'+quickmarkData[0]+''
+quickmarksHtmlFileText += '
@@ -115,8 +134,20 @@ if (os.path.isfile(secretFile)):
import qutesecrets
secretsExists = True
+quickmarksFile = os.path.join(os.path.dirname(__file__),'quickmarks')
+quickmarksHtmlFilePath = os.path.join(os.path.dirname(__file__),'quickmarks.html')
+quickmarksHtmlFile = open(quickmarksHtmlFilePath,"w")
+quickmarksHtmlFileText = '