feat: add screenshotting, cliphist wofi integration, some packages

This commit is contained in:
2025-08-06 19:43:00 -07:00
parent e1da9c2533
commit cedda8be37
3 changed files with 36 additions and 29 deletions

View File

@@ -40,6 +40,11 @@
xfce.thunar xfce.thunar
altserver-linux altserver-linux
xdg-desktop-portal xdg-desktop-portal
microsoft-edge
libadwaita
grim
slurp
swappy
]; ];
programs.hyprland = { programs.hyprland = {
enable = true; enable = true;
@@ -145,36 +150,36 @@
"$mod" = "SUPER"; "$mod" = "SUPER";
"$terminal" = "ghostty"; "$terminal" = "ghostty";
"$menu" = "wofi"; "$menu" = "wofi";
bind = bind = [
[ "$mod, Return, exec, $terminal"
"$mod, Return, exec, $terminal" "$mod SHIFT, Q, killactive"
"$mod SHIFT, Q, killactive" "$mod SHIFT, E, exit"
"$mod SHIFT, E, exit" "$mod SHIFT, SPACE, togglefloating"
"$mod SHIFT, SPACE, togglefloating" "$mod, d, exec, $menu"
"$mod, d, exec, $menu" "$mod SHIFT, D, exec, bash -c ~/dotfiles/scripts/workspace.sh"
"$mod SHIFT, D, exec, bash -c ~/dotfiles/scripts/workspace.sh" "$mod, h, movefocus, l"
"$mod, h, movefocus, l" "$mod, l, movefocus, r"
"$mod, l, movefocus, r" "$mod, k, movefocus, u"
"$mod, k, movefocus, u" "$mod, j, movefocus, d"
"$mod, j, movefocus, d" "$mod, Space, togglesplit"
"$mod, Space, togglesplit" "$mod SHIFT, v, exec, bash -c ~/dotfiles/scripts/copy.sh"
"$mod, 0, workspace, 10" "$mod, 0, workspace, 10"
"$mod SHIFT, 0, movetoworkspacesilent, 10" "$mod SHIFT, 0, movetoworkspacesilent, 10"
"$mod, f, fullscreen" "$mod, f, fullscreen"
] ]
++ (builtins.concatLists ( ++ (builtins.concatLists (
builtins.genList ( builtins.genList (
i: i:
let let
ws = i + 1; ws = i + 1;
in in
[ [
"$mod, ${toString ws}, workspace, ${toString ws}" "$mod, ${toString ws}, workspace, ${toString ws}"
"$mod SHIFT, ${toString ws}, movetoworkspacesilent, ${toString ws}" "$mod SHIFT, ${toString ws}, movetoworkspacesilent, ${toString ws}"
] ]
) 9 ) 9
)); ));
bindm = [ bindm = [
"$mod, mouse:272, movewindow" "$mod, mouse:272, movewindow"
"$mod, mouse:273, resizewindow" "$mod, mouse:273, resizewindow"

1
scripts/copy.sh Executable file
View File

@@ -0,0 +1 @@
cliphist list | wofi --dmenu | cliphist decode | wl-copy

1
scripts/screenshot.sh Executable file
View File

@@ -0,0 +1 @@
grim -g "$(slurp)" - | swappy -f -