about summary refs log tree commit diff
path: root/programs/qutebrowser.nix
diff options
context:
space:
mode:
authorPatryk Niedzwiedzinski <patryk@niedzwiedzinski.cyou>2024-09-29 16:28:22 +0200
committerPatryk Niedzwiedzinski <patryk@niedzwiedzinski.cyou>2024-09-29 16:28:22 +0200
commitd66515907f2902edecfc42cd2c387de75b6dcfc4 (patch)
treead3c57104c94f500c4149a7f5be493fa1ccfe0e0 /programs/qutebrowser.nix
parent4f591cc9c9663c413e8eb5cd8401a34a3251e30c (diff)
downloaddots-d66515907f2902edecfc42cd2c387de75b6dcfc4.tar.gz
dots-d66515907f2902edecfc42cd2c387de75b6dcfc4.zip
Remove unused software
Diffstat (limited to 'programs/qutebrowser.nix')
-rw-r--r--programs/qutebrowser.nix51
1 files changed, 0 insertions, 51 deletions
diff --git a/programs/qutebrowser.nix b/programs/qutebrowser.nix
deleted file mode 100644
index e8afb70..0000000
--- a/programs/qutebrowser.nix
+++ /dev/null
@@ -1,51 +0,0 @@
-{ config, pkgs, ... }:
-
-{
-  config = {
-    home.packages = [ pkgs.qutebrowser ];
-
-    home.file.".config/qutebrowser/config.py".text = ''
-      c.aliases = {}
-      c.tabs.tabs_are_windows = True
-      c.tabs.show = "multiple"
-      c.statusbar.show = "in-mode"
-      c.downloads.location.directory = "~/down"
-      c.content.pdfjs = True
-      c.content.javascript.enabled = True
-      config.load_autoconfig()
-
-      import subprocess
-      import sys, os
-
-      def read_xresources(prefix):
-        props = {}
-        x = subprocess.run(['xrdb', '-query'], stdout=subprocess.PIPE)
-        lines = x.stdout.decode().split('\n')
-        for line in filter(lambda l : l.startswith(prefix), lines):
-          prop, _, value = line.partition(':\t')
-          props[prop] = value
-        return props
-
-      xresources = read_xresources('*')
-
-      black      =  xresources['*.color0']
-      red        =  xresources['*.color1']
-      green      =  xresources['*.color2']
-      yellow     =  xresources['*.color3']
-      blue       =  xresources['*.color4']
-      magenta    =  xresources['*.color5']
-      cyan       =  xresources['*.color6']
-      white      =  xresources['*.color7']
-      black_b    =  xresources['*.color8']
-      red_b      =  xresources['*.color9']
-      green_b    =  xresources['*.color10']
-      yellow_b   =  xresources['*.color11']
-      blue_b     =  xresources['*.color12']
-      magenta_b  =  xresources['*.color13']
-      cyan_b     =  xresources['*.color14']
-      white_b    =  xresources['*.color15']
-      bg         =  xresources['*.background']
-      fg         =  xresources['*.foreground']
-    '';
-  };
-}