Test resize submap

This commit is contained in:
iFargle 2024-01-07 12:03:33 +09:00
parent 5cc1a152b5
commit 3e07774e9b
3 changed files with 23 additions and 4 deletions

View file

@ -40,6 +40,12 @@
plasma-manager.inputs.nixpkgs.follows = "nixpkgs"; plasma-manager.inputs.nixpkgs.follows = "nixpkgs";
# Nix colorizer / themer # Nix colorizer / themer
stylix.url = "github:danth/stylix"; stylix.url = "github:danth/stylix";
# Hyprland Flake
hyprland.url = "github:hyprwm/Hyprland";
# Hyprland Plugins
hyprland-plugins.url = "github:hyprwm/hyprland-plugins";
hyprland-plugins.inputs.hyprland.follows = "hyprland";
};
}; };
outputs = { self, nixpkgs, nixpkgs-wayland, home-manager, lanzaboote, nur, sops-nix, doom-emacs, nixos-generators, deploy-rs, ... } @inputs: outputs = { self, nixpkgs, nixpkgs-wayland, home-manager, lanzaboote, nur, sops-nix, doom-emacs, nixos-generators, deploy-rs, ... } @inputs:
let let

View file

@ -1,6 +1,22 @@
{ ... }: { { ... }: {
wayland.windowManager.hyprland = { wayland.windowManager.hyprland = {
enable = true; enable = true;
extraCommands = ''
# Resize
SUPER, R, exec, notify-send 'Entered resize mode. Press ESC to quit.'
SUPER, R, submap, resize
submap = resize
binde = , H, resizeactive,-50 0
binde = , L, resizeactive,50 0
binde = , K, resizeactive,0 -50
binde = , J, resizeactive,0 50
binde = , left, resizeactive,-50 0
binde = , right, resizeactive,50 0
binde = , up, resizeactive,0 -50
binde = , down, resizeactive,0 50
bind = , escape, submap, reset
submap = reset
'';
settings = { settings = {
layerrule = "blur, waybar"; layerrule = "blur, waybar";
xwayland.force_zero_scaling = true; xwayland.force_zero_scaling = true;
@ -120,10 +136,6 @@
''SUPER, mouse_down, workspace, e+1'' ''SUPER, mouse_down, workspace, e+1''
''SUPER, mouse_up, workspace, e-1'' ''SUPER, mouse_up, workspace, e-1''
# Resize
''SUPER, R, exec, notify-send "Entered resize mode. Press ESC to quit."''
''SUPER, R, submap, resize''
############################################################################# #############################################################################
# Custom keybinds # Custom keybinds
# Show Rofi on SUPER-SPACE # Show Rofi on SUPER-SPACE

View file

@ -1,5 +1,6 @@
{ theme, ... }: { { theme, ... }: {
wayland.windowManager.hyprland = { wayland.windowManager.hyprland = {
xwayland.enable = true;
settings = { settings = {
monitor = [ monitor = [
"DP-4, highrr, 2560x0, 1" "DP-4, highrr, 2560x0, 1"