This commit is contained in:
joy 2024-06-21 11:59:08 +02:00
parent 488110c5e4
commit bac985aa35
4 changed files with 56 additions and 27 deletions

View file

@ -613,11 +613,11 @@
}, },
"nixpkgs_2": { "nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1718530797, "lastModified": 1718714799,
"narHash": "sha256-pup6cYwtgvzDpvpSCFh1TEUjw2zkNpk8iolbKnyFmmU=", "narHash": "sha256-FUZpz9rg3gL8NVPKbqU8ei1VkPLsTIfAJ2fdAf5qjak=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "b60ebf54c15553b393d144357375ea956f89e9a9", "rev": "c00d587b1a1afbf200b1d8f0b0e4ba9deb1c7f0e",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -13,13 +13,24 @@
emote emote
gocr gocr
netpbm netpbm
imagemagick imagemagick
tesseract4
]; ];
wayland.windowManager.hyprland.enable = true; wayland.windowManager.hyprland = {
enable = true;
wayland.windowManager.hyprland.settings = { xwayland.enable = true;
monitor = "DP-1,2560x1440@165.00Hz,0x0,1,bitdepth,10";
settings = {
"$mod" = "SUPER";
dwindle = {
pseudotile = true;
preserve_split = true;
};
monitor = "DP-1,2560x1440@165.00Hz,0x0,1,bitdepth,10";
env = [ env = [
"XCURSOR_THEME = Bibata-Modern-Ice " "XCURSOR_THEME = Bibata-Modern-Ice "
@ -37,39 +48,51 @@
"wl-paste --type image --watch cliphist store" "wl-paste --type image --watch cliphist store"
]; ];
"$mod" = "SUPER";
bind = [ bind = [
# launch Apps
"$mod, TAB, exec, alacritty"
"$mod, E, exec, nemo"
"$mod, B, exec, emote"
"$mod, S, exec, brave"
"$mod, X, exec, keepassxc"
"$mod, F, exec, freetube"
"$mod, C, exec, hyprpicker -a"
"$mod, A, exec, rofi -show drun"
"$mod, D, exec, prismlauncher -l minecraft"
"$mod+Shift, Z, exec, grim - | swappy -f -"
"$mod, V, exec, cliphist list | rofi -dmenu | cliphist decode | wl-copy"
# contoles
"$mod, Q, killactive"
"$mod, W, togglefloating"
"$mod, R, togglesplit"
"$mod, Y, exec, systemctl suspend"
"$mod+shift, M, exit, hyprland"
"$mod, L, exec, amixer -q sset Master 5%+"
"$mod, K, exec, amixer -q sset Master 5%-"
# mocp
"$mod, P, exec, mocp -f" "$mod, P, exec, mocp -f"
"$mod, O, exec, mocp -r" "$mod, O, exec, mocp -r"
"$mod, I, exec, mocp --volume +5" "$mod, I, exec, mocp --volume +5"
"$mod, U, exec, mocp --volume -5" "$mod, U, exec, mocp --volume -5"
"$mod, L, exec, amixer -q sset Master 5%+"
"$mod, K, exec, amixer -q sset Master 5%-"
"$mod, N, exec, alacritty -e mocp" "$mod, N, exec, alacritty -e mocp"
# Scripts
"$mod, J, exec, sh ~/nix/home/hyprland/pause.sh" "$mod, J, exec, sh ~/nix/home/hyprland/pause.sh"
"$mod, Z, exec, sh ~/nix/home/hyprland/screen.sh" "$mod, Z, exec, sh ~/nix/home/hyprland/screen.sh"
"$mod, T, exec, sh ~/nix/home/hyprland/text.sh" "$mod, T, exec, sh ~/nix/home/hyprland/text.sh"
"$mod+Shift, Z, exec, grim - | swappy -f -"
"$mod, V, exec, cliphist list | rofi -dmenu | cliphist decode | wl-copy" # Move focus with mainMod + arrow keys
"$mod, B, exec, emote &"
"$mod, D, exec, prismlauncher -l minecraft"
"$mod, S, exec, brave"
"$mod, A, exec, rofi -show drun"
"$mod, TAB, exec, alacritty"
"$mod, E, exec, nemo &"
"$mod, X, exec, keepassxc"
"$mod, F, exec, freetube"
"$mod, C, exec, hyprpicker -a"
"$mod, Q, killactive"
"$mod+shift, M, exit, hyprland"
"$mod, W, togglefloating"
"$mod, Y, exec, systemctl suspend"
"$mod, Return, fullscreen" "$mod, Return, fullscreen"
"$mod, left, movefocus, l" "$mod, left, movefocus, l"
"$mod, right, movefocus, r" "$mod, right, movefocus, r"
"$mod, up, movefocus, u" "$mod, up, movefocus, u"
"$mod, down, movefocus, d" "$mod, down, movefocus, d"
# Switch workspaces with mainMod + [0-9]
"$mod, 1, workspace, 1" "$mod, 1, workspace, 1"
"$mod, 2, workspace, 2" "$mod, 2, workspace, 2"
"$mod, 3, workspace, 3" "$mod, 3, workspace, 3"
@ -80,6 +103,8 @@
"$mod, 8, workspace, 8" "$mod, 8, workspace, 8"
"$mod, 9, workspace, 9" "$mod, 9, workspace, 9"
"$mod, 0, workspace, 10" "$mod, 0, workspace, 10"
# Move active window to a workspace with mainMod + SHIFT + [0-9]
"$mod+Shift, 1, movetoworkspace, 1" "$mod+Shift, 1, movetoworkspace, 1"
"$mod+Shift, 2, movetoworkspace, 2" "$mod+Shift, 2, movetoworkspace, 2"
"$mod+Shift, 3, movetoworkspace, 3" "$mod+Shift, 3, movetoworkspace, 3"
@ -102,6 +127,7 @@
gaps_out = 5; gaps_out = 5;
border_size = 0; border_size = 0;
allow_tearing = false; allow_tearing = false;
layout = "dwindle";
}; };
misc ={ misc ={
@ -119,5 +145,6 @@
kb_options = "grp:alt_shift_toggle"; kb_options = "grp:alt_shift_toggle";
}; };
}; };
};
} }

View file

@ -1 +1,2 @@
grim -g "$(slurp)" - | convert - pnm:- | gocr - -o - | wl-copy grim -g "$(slurp)" - | convert - pnm:- | tesseract stdin stdout | wl-copy

View file

@ -1,6 +1,7 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
{ {
services.ollama.enable = true;
services.blueman.enable = true; services.blueman.enable = true;
hardware.bluetooth.enable = true; hardware.bluetooth.enable = true;
virtualisation.docker.rootless.enable = true; virtualisation.docker.rootless.enable = true;