home config migration

This commit is contained in:
Satria 2026-02-08 11:03:31 +07:00
commit 4bba4871b4
25 changed files with 1296 additions and 16 deletions

View file

@ -0,0 +1,172 @@
{ pkgs, hostname, ... }: {
services.fusuma = {
extraPackages = with pkgs; [ systemd coreutils-full xorg.xprop ];
enable = true;
settings = {
swipe = {
"4".down.sendkey = "LEFTMETA+L";
"4".up.sendkey = "LEFTMETA+M";
"3".up.sendkey = "LEFTMETA+W";
"3".down.sendkey = "LEFTMETA+DOWN";
"3".right.sendkey = "LEFTMETA+LEFT";
"3".left.sendkey = "LEFTMETA+RIGHT";
};
hold = {
"3".sendkey = "LEFTMETA+TAB";
"4".sendkey = "LEFTMETA+SPACE";
};
};
};
wayland.windowManager.hyprland = {
settings = {
gestures = {
#workspace_swipe = true;
workspace_swipe_forever = true;
};
# gesture = [
# "3, up, fullscreen, maximize"
# "3, down, scale: 0.5, special, hidden"
# "3, left, workspace, -1"
# "3, right, workspace, +1"
# ];
binde = [
"ALT, TAB, cyclenext,"
"ALT, TAB, bringactivetotop,"
"ALT SHIFT, TAB, cyclenext, prev"
"ALT SHIFT, TAB, bringactivetotop,"
"SUPER SHIFT, right, movetoworkspace, +1"
"SUPER SHIFT, left, movetoworkspace, -1"
"SUPER SHIFT, 1, movetoworkspace, 1"
"SUPER SHIFT, 2, movetoworkspace, 2"
"SUPER SHIFT, 3, movetoworkspace, 3"
"SUPER SHIFT, 4, movetoworkspace, 4"
"SUPER, right, workspace, +1"
"SUPER, left, workspace, -1"
"SUPER, 1, workspace, 1"
"SUPER, 2, workspace, 2"
"SUPER, 3, workspace, 3"
"SUPER, 4, workspace, 4"
];
bindm = [
"SUPER, mouse:272, movewindow"
"SUPER, mouse:273, resizewindow"
];
bindc = [
"SUPER, mouse:274, killactive"
];
bindl = [
", switch:on:Lid Switch, exec, systemctl suspend"
", PRINT, exec, hyprshot -m region -o ~/Pictures/Screenshots"
"SUPER, SPACE, exec, playerctl play-pause"
"SUPER, M, exec, wlogout"
"SUPER, TAB, exec, pkill -SIGUSR1 waybar"
];
bindel = [
",XF86AudioRaiseVolume, exec, wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 5%+"
",XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-"
",XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"
",XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle"
",XF86MonBrightnessUp, exec, brightnessctl s 10%+"
",XF86MonBrightnessDown, exec, brightnessctl s 10%-"
];
bind = [
# ",XF86Tools, exec, "
# ",XF86Bluetooth, exec, "
# ",XF86Keyboard, exec, "
# ",XF86Favorites, exec, "
",XF86Display, exec, [float; size 75%] uwsm app -- nwg-displays"
"CTRL ALT, DELETE, exec, wlogout"
"CTRL SHIFT, ESCAPE, exec, [float; size 75%] uwsm app -- kitty btop"
"SUPER, Grave, exec, dunstctl set-paused toggle"
"SUPER, N, exec, uwsm app -- rofi-network-manager"
"SUPER, J, exec, notify-send -u critical ${hostname} 'Caffein Mode' && notify-send '(SUPER+X to reset)' && systemctl --user stop hypridle"
"SUPER, K, exec, notify-send -u critical ${hostname} 'Focus Mode' && notify-send '(SUPER+X to reset)' && systemctl --user stop swww && pkill -SIGUSR1 waybar && hyprctl --batch 'keyword decoration:inactive_opacity 1.0; keyword decoration:blur:enabled 0; keyword general:gaps_in 0; keyword general:gaps_out 0; keyword general:border_size 1; keyword decoration:rounding 0; keyword decoration:shadow:enabled false'"
"SUPER, B, submap, disabled-all-keybinds"
"SUPER, H, exec, notify-send ${hostname} 'Animations Off' && hyprctl keyword animations:enabled 0"
"SUPER, X, exec, dunstctl close-all && hyprctl reload && hyprctl dispatch submap reset && pkill -SIGUSR2 waybar && systemctl --user restart swww hypridle fusuma"
"SUPER, Z, exec, dunstctl close-all"
"SUPER SHIFT, S, exec, hyprshot -m region -o ~/Pictures/Screenshots"
"ALT, PRINT, exec, hyprshot -m output -o ~/Pictures/Screenshots"
"SUPER, R, exec, rofi -show drun -show-icons -display-drun '' -run-command \"uwsm app -- {cmd}\""
"SUPER, V, exec, rofi -modi clipboard:cliphist-rofi-img -show clipboard -show-icons"
# "SUPER, B, exec, rofi -show calc -modi calc -no-show-match -no-sort"
"SUPER, A, exec, uwsm app -- zeditor"
"SUPER, T, exec, uwsm app -- kitty"
"SUPER, E, exec, uwsm app -- pcmanfm-qt ~" # kitty ranger ~"
"SUPER, C, exec, [float; size 75%] uwsm app -- kitty btop"
"SUPER SHIFT, C, exec, [float; size 75%] uwsm app -- kitty zsh -c 'fastfetch; exec zsh -i'"
"SUPER, Y, exec, uwsm app -- brave --restore-last-session"
"SUPER, D, exec, uwsm app -- steam steam://open/bigpicture"
"SUPER SHIFT, D, exec, uwsm app -- steam"
"SUPER, Q, killactive,"
"SUPER SHIFT, Q, forcekillactive,"
"SUPER, W, fullscreen, 1"
"SUPER, S, fullscreen, 0"
"SUPER, F, togglefloating,"
"SUPER, G, togglesplit,"
"SUPER, L, exec, loginctl lock-session"
"SUPER, down, togglespecialworkspace, hidden"
"SUPER SHIFT, down, movetoworkspace, special:hidden"
"SUPER SHIFT, up, movetoworkspace, +0"
"SUPER, P, submap, move"
"SUPER, O, submap, resize"
"SUPER, I, submap, focus"
"SUPER, U, submap, swap"
];
};
extraConfig = ''
submap = move
binde = , right, movewindow, r
binde = , left, movewindow, l
binde = , up, movewindow, u
binde = , down, movewindow, d
bind = , catchall, submap, reset
submap = resize
binde = , right, resizeactive, 10 0
binde = , left, resizeactive, -10 0
binde = , up, resizeactive, 0 -10
binde = , down, resizeactive, 0 10
bind = , catchall, submap, reset
submap = swap
bind = , right, swapwindow, r
bind = , left, swapwindow, l
bind = , up, swapwindow, u
bind = , down, swapwindow, d
bind = , catchall, submap, reset
submap = focus
bind = , right, movefocus, r
bind = , left, movefocus, l
bind = , up, movefocus, u
bind = , down, movefocus, d
bind = , catchall, submap, reset
submap = disabled-all-keybinds
bind = , ESCAPE, submap, reset
submap = reset
''; # https://github.com/nix-community/home-manager/issues/6062
};
}