diff --git a/home/modules/programs/firefox.nix b/home/modules/programs/firefox.nix index 6fc12859..e9cae13f 100644 --- a/home/modules/programs/firefox.nix +++ b/home/modules/programs/firefox.nix @@ -45,12 +45,15 @@ in { "media.rdd-ffmpeg.enabled" = true; "widget.dmabuf.force-enabled" = true; }; + userChrome = '' @import "${firefox-gnome-theme}/share/firefox-gnome-theme/userChrome.css"; ''; + userContent = '' @import "${firefox-gnome-theme}/share/firefox-gnome-theme/userContent.css"; ''; + extraConfig = builtins.readFile "${firefox-gnome-theme}/share/firefox-gnome-theme/configuration/user.js"; }; }; diff --git a/home/modules/programs/kitty.nix b/home/modules/programs/kitty.nix index 0375af4d..6e5f4e83 100644 --- a/home/modules/programs/kitty.nix +++ b/home/modules/programs/kitty.nix @@ -1,9 +1,11 @@ {...}: { home.sessionVariables.TERMINAL = "kitty"; + programs.kitty = { enable = true; shellIntegration.enableZshIntegration = true; theme = "Nord"; + settings = { active_tab_font_style = "bold"; background = "#000000"; @@ -36,6 +38,7 @@ window_margin_width = 0; window_padding_width = 15; }; + keybindings = { "ctrl+shift+v" = "paste_from_clipboard"; "ctrl+shift+s" = "paste_from_selection"; diff --git a/home/modules/shell/scripts/default.nix b/home/modules/shell/scripts/default.nix index 611333a4..a4a9785c 100644 --- a/home/modules/shell/scripts/default.nix +++ b/home/modules/shell/scripts/default.nix @@ -3,16 +3,7 @@ lib, config, ... -}: let - ocrScript = let - inherit (pkgs) grim libnotify slurp tesseract5 wl-clipboard; - _ = lib.getExe; - in - pkgs.writeShellScriptBin "wl-ocr" '' - ${_ grim} -g "$(${_ slurp})" -t ppm - | ${_ tesseract5} - - | ${wl-clipboard}/bin/wl-copy - ${_ libnotify} "$(${wl-clipboard}/bin/wl-paste)" - ''; -in { +}: { imports = [./run-as-service.nix]; home = { sessionPath = [ @@ -35,7 +26,5 @@ in { text = import ./extract.nix {inherit lib pkgs;}; }; }; - - packages = [ocrScript]; }; } diff --git a/home/modules/windowManager/hyprland/config/binds.nix b/home/modules/windowManager/hyprland/config/binds.nix index 4a305765..65085dbd 100644 --- a/home/modules/windowManager/hyprland/config/binds.nix +++ b/home/modules/windowManager/hyprland/config/binds.nix @@ -1,8 +1,18 @@ { + lib, config, pkgs, ... }: let + ocrScript = let + inherit (pkgs) grim libnotify slurp tesseract5 wl-clipboard; + _ = lib.getExe; + in + pkgs.writeShellScriptBin "wl-ocr" '' + ${_ grim} -g "$(${_ slurp})" -t ppm - | ${_ tesseract5} - - | ${wl-clipboard}/bin/wl-copy + ${_ libnotify} "$(${wl-clipboard}/bin/wl-paste)" + ''; + screenshotarea = "hyprctl keyword animation 'fadeOut,0,0,default'; grimblast --notify copysave area; hyprctl keyword animation 'fadeOut,1,4,default'"; workspaces = builtins.concatLists (builtins.genList ( @@ -22,6 +32,8 @@ browser = config.home.sessionVariables.BROWSER; editor = config.home.sessionVariables.EDITOR; in { + home.packages = [ocrScript]; + wayland.windowManager.hyprland = { settings = { bind = let @@ -84,6 +96,7 @@ in { "SUPER ALT, mouse:272, resizewindow" ]; }; + extraConfig = '' bind = SUPERSHIFT, S, submap, resize diff --git a/home/modules/windowManager/hyprland/services/dunst.nix b/home/modules/windowManager/hyprland/services/dunst.nix index 8787e00c..ffece429 100644 --- a/home/modules/windowManager/hyprland/services/dunst.nix +++ b/home/modules/windowManager/hyprland/services/dunst.nix @@ -9,8 +9,6 @@ _ = lib.getExe; in pkgs.writeShellScriptBin "volumectl" '' - #!/usr/bin/env sh - case "$1" in up) ${_ pamixer} -i "$2" @@ -47,8 +45,6 @@ _ = lib.getExe; in pkgs.writeShellScriptBin "lightctl" '' - #!/usr/bin/env sh - case "$1" in up) ${_ brightnessctl} -q s +"$2"%