about summary refs log tree commit diff
path: root/overlays/base
diff options
context:
space:
mode:
Diffstat (limited to 'overlays/base')
-rw-r--r--overlays/base/default.nix4
-rw-r--r--overlays/base/patches/dmenu_height.patch13
-rw-r--r--overlays/base/patches/kcc.patch30
3 files changed, 45 insertions, 2 deletions
diff --git a/overlays/base/default.nix b/overlays/base/default.nix
index e313db4..47523b4 100644
--- a/overlays/base/default.nix
+++ b/overlays/base/default.nix
@@ -17,7 +17,7 @@ final: prev:
       sha256 = "sha256-MyNMxdaWtgjClZGIHUtYwwx51u5NII5Ce4BnOnUojo8=";
     };
 
-    patches = [ ../../patches/dmenu_height.patch ];
+    patches = [ ./patches/dmenu_height.patch ];
   });
 
   st = prev.st.overrideAttrs (old: {
@@ -55,7 +55,7 @@ final: prev:
       sha256 = "sha256-vH3Cz7nL+sStogcCRLcN30Iap25f5hylXHECX52G4f0=";
     };
     patches = [
-      ../../patches/kcc.patch
+      ./patches/kcc.patch
       (prev.fetchpatch
         {
           url = "https://github.com/Baitinq/kcc/commit/73cd0dd107901bebe7d72e2b86ecf8b830a19758.diff";
diff --git a/overlays/base/patches/dmenu_height.patch b/overlays/base/patches/dmenu_height.patch
new file mode 100644
index 0000000..acda047
--- /dev/null
+++ b/overlays/base/patches/dmenu_height.patch
@@ -0,0 +1,13 @@
+diff --git a/dmenu.c b/dmenu.c
+index 0f7d5dd..50012fa 100644
+--- a/dmenu.c
++++ b/dmenu.c
+@@ -867,7 +867,7 @@ setup(void)
+   dock = XInternAtom(dpy, "_NET_WM_WINDOW_TYPE_DOCK", False);
+ 
+ 	/* calculate menu geometry */
+-	bh = drw->fonts->h + 2;
++	bh = drw->fonts->h + 4;
+   bh = MAX(bh,lineheight);	/* make a menu line AT LEAST 'lineheight' tall */
+ 	lines = MAX(lines, 0);
+ 	mh = (lines + 1) * bh;
diff --git a/overlays/base/patches/kcc.patch b/overlays/base/patches/kcc.patch
new file mode 100644
index 0000000..73c754c
--- /dev/null
+++ b/overlays/base/patches/kcc.patch
@@ -0,0 +1,30 @@
+diff --git a/kindlecomicconverter/startup.py b/kindlecomicconverter/startup.py
+index c92579d..0217a76 100644
+--- a/kindlecomicconverter/startup.py
++++ b/kindlecomicconverter/startup.py
+@@ -25,7 +25,7 @@ from .shared import dependencyCheck
+ 
+ 
+ def start():
+-    dependencyCheck(3)
++    #dependencyCheck(3)
+     from . import KCC_gui
+     os.environ['QT_AUTO_SCREEN_SCALE_FACTOR'] = "1"
+     KCCAplication = KCC_gui.QApplicationMessaging(sys.argv)
+@@ -43,14 +43,14 @@ def start():
+ 
+ 
+ def startC2E():
+-    dependencyCheck(2)
++    #dependencyCheck(2)
+     from .comic2ebook import main
+     print('comic2ebook v' + __version__ + ' - Written by Ciro Mattia Gonano and Pawel Jastrzebski.')
+     sys.exit(main(sys.argv[1:]))
+ 
+ 
+ def startC2P():
+-    dependencyCheck(1)
++    #dependencyCheck(1)
+     from .comic2panel import main
+     print('comic2panel v' + __version__ + ' - Written by Ciro Mattia Gonano and Pawel Jastrzebski.')
+     sys.exit(main(sys.argv[1:]))