diff --git a/home/profiles/desktop/default.nix b/home/profiles/desktop/default.nix index 9761ac3a..c57bcca0 100644 --- a/home/profiles/desktop/default.nix +++ b/home/profiles/desktop/default.nix @@ -33,56 +33,6 @@ in termpdfpy ]; - xdg.desktopEntries = { - ocr = { - name = "OCR image"; - exec = "${pkgs.writeScript "ocr" '' - ${pkgs.xfce.xfce4-screenshooter}/bin/xfce4-screenshooter -r --save /tmp/ocr-tmp.png - ${pkgs.tesseract}/bin/tesseract /tmp/ocr-tmp.png | ${pkgs.xclip}/bin/xclip -sel clip - rm /tmp/ocr-tmp.png - ''}"; - }; - screenshot = { - name = "Screenshot"; - exec = "screenshot"; - }; - }; - - # set up env - xsession.enable = true; - - xresources.properties = { - "*.foreground" = "#95E6CB"; - "*.background" = "#1F2430"; - "*.cursorColor" = "#BAE67E"; - # Black - "*.color0" = "#1F2430"; - "*.color8" = "#F28779"; - # Red - "*.color1" = "#A6CC70"; - "*.color9" = "#FFCC66"; - # Green - "*.color2" = "#5CCFE6"; - "*.color10" = "#F29E74"; - # Yellow - "*.color3" = "#77A8D9"; - "*.color11" = "#5C6773"; - # Blue - "*.color4" = "#707A8C"; - "*.color12" = "#F27983"; - # Magenta - "*.color5" = "#BAE67E"; - "*.color13" = "#FFD580"; - # Cyan - "*.color6" = "#73D0FF"; - "*.color14" = "#FFA759"; - # White - "*.color7" = "#95E6CB"; - "*.color15" = "#CBCCC6"; - # Bold, Italic, Underline - "*.colorBD" = "#e6e1cf"; - }; - # Move required config files around xdg.enable = true; # This doesn't seem to do anything so we have below xdg.configHome = "/home/anish/.config"; # TODO bad hardcode @@ -135,7 +85,6 @@ in ".local/bin/screenshot".source = ./bin/screenshot; ".local/bin/mpv-ify".source = ./bin/mpv-ify; ".local/bin/bspswallow".source = ./bin/bspswallow; - ".local/bin/ku".source = ./bin/ku; ".config/bspwm/terminals".text = "Kitty"; ".config/eww/eww.yuck".source = ./eww/eww.yuck; ".config/eww/eww.scss".source = ./eww/eww.scss; @@ -143,12 +92,68 @@ in # ".local/bin/hotplug-monitor.sh".source = ./bin/hotplug-monitor.sh; }; + xdg.desktopEntries = { + ocr = { + name = "OCR image"; + exec = "${pkgs.writeScript "ocr" '' + ${pkgs.xfce.xfce4-screenshooter}/bin/xfce4-screenshooter -r --save /tmp/ocr-tmp.png + ${pkgs.tesseract}/bin/tesseract /tmp/ocr-tmp.png | ${pkgs.xclip}/bin/xclip -sel clip + rm /tmp/ocr-tmp.png + ''}"; + }; + screenshot = { + name = "Screenshot"; + exec = "screenshot"; + }; + }; + + qt = { enable = true; platformTheme = "gtk"; style = { name = "qt5ct-style"; }; }; + # set up env + xsession.enable = true; + + xresources.properties = { + "*.foreground" = "#95E6CB"; + "*.background" = "#1F2430"; + "*.cursorColor" = "#BAE67E"; + # Black + "*.color0" = "#1F2430"; + "*.color8" = "#F28779"; + # Red + "*.color1" = "#A6CC70"; + "*.color9" = "#FFCC66"; + # Green + "*.color2" = "#5CCFE6"; + "*.color10" = "#F29E74"; + # Yellow + "*.color3" = "#77A8D9"; + "*.color11" = "#5C6773"; + # Blue + "*.color4" = "#707A8C"; + "*.color12" = "#F27983"; + # Magenta + "*.color5" = "#BAE67E"; + "*.color13" = "#FFD580"; + # Cyan + "*.color6" = "#73D0FF"; + "*.color14" = "#FFA759"; + # White + "*.color7" = "#95E6CB"; + "*.color15" = "#CBCCC6"; + # Bold, Italic, Underline + "*.colorBD" = "#e6e1cf"; + }; + + programs.autorandr.enable = true; + services.udiskie.automount = true; + + services.mpris-proxy.enable = true; # bluetooth media control + # Compositor # services.picom = { # enable = true; @@ -170,9 +175,4 @@ in # corner-radius = 3 # ''; # }; - - programs.autorandr.enable = true; - services.udiskie.automount = true; - - services.mpris-proxy.enable = true; # bluetooth media control }