Test resize submap
This commit is contained in:
parent
5cc1a152b5
commit
3e07774e9b
3 changed files with 23 additions and 4 deletions
|
@ -40,6 +40,12 @@
|
|||
plasma-manager.inputs.nixpkgs.follows = "nixpkgs";
|
||||
# Nix colorizer / themer
|
||||
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:
|
||||
let
|
||||
|
|
|
@ -1,6 +1,22 @@
|
|||
{ ... }: {
|
||||
wayland.windowManager.hyprland = {
|
||||
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 = {
|
||||
layerrule = "blur, waybar";
|
||||
xwayland.force_zero_scaling = true;
|
||||
|
@ -120,10 +136,6 @@
|
|||
''SUPER, mouse_down, 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
|
||||
# Show Rofi on SUPER-SPACE
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
{ theme, ... }: {
|
||||
wayland.windowManager.hyprland = {
|
||||
xwayland.enable = true;
|
||||
settings = {
|
||||
monitor = [
|
||||
"DP-4, highrr, 2560x0, 1"
|
||||
|
|
Loading…
Reference in a new issue