nixos/modules/programs/mango.nix

127 lines
3.6 KiB
Nix

{
pkgs,
lib,
inputs,
...
}:
{
home.file.screenshot = {
enable = true;
executable = true;
source = ../home/screenshot;
target = ".config/mango/scripts/screenshot";
};
wayland.windowManager.mango = {
enable = true;
settings = {
cursor_theme = "macOS";
cursor_size = 24;
border_radius = 16;
animations = 1;
layer_animations = 0;
animation_type_open = "slide";
animation_type_close = "slide";
animation_fade_in = 1;
animation_fade_out = 1;
tag_animation_direction = 1;
zoom_initial_ratio = 0.4;
zoom_end_ratio = 0.8;
fadein_begin_opacity = 0;
fadeout_begin_opacity = 1;
animation_duration_move = 500;
animation_duration_open = 400;
animation_duration_tag = 350;
animation_duration_close = 800;
animation_duration_focus = 0;
animation_curve = {
open = "0.23,1.0,0.32,1.05";
move = "0.23,1.0,0.32,1";
tag = "0.23,1.0,0.32,1.03";
close = "0.23,1.0,0.32,1";
focus = "0.23,1.0,0.32,1";
opafadeout = "0.5,0.5,0.5,0";
opafadein = "0.46,1.0,0.29,0";
};
new_is_master = 0;
tag_num = 9;
repeat_rate = 25;
repeat_delay = 600;
xkb_rules_layout = "eu";
tap_to_click = 1;
mouse_accel_profile = 1;
mouse_accel_speed = -0.4;
gappih = 5;
gappiv = 5;
gappoh = 10;
gappov = 10;
borderpx = 4;
bind = [
# reload config
"SUPER,r,reload_config"
"SUPER,space,spawn,fuzzel"
"SUPER,Return,spawn,foot"
"SUPER+SHIFT,q,quit"
"SUPER,q,killclient"
"SUPER+SHIFT,S,spawn_shell,$HOME/.config/mango/scripts/screenshot region"
"ALT+SHIFT,S,spawn_shell,$HOME/.config/mango/scripts/screenshot output"
"ALT+CTRL,S,spawn_shell,$HOME/.config/mango/scripts/screenshot window"
"SUPER+SHIFT,Up,exchange_client,up"
"SUPER+SHIFT,Down,exchange_client,down"
"SUPER+SHIFT,Left,exchange_client,left"
"SUPER+SHIFT,Right,exchange_client,right"
"SUPER,Up,focusdir,up"
"SUPER,Down,focusdir,down"
"SUPER,Left,focusdir,left"
"SUPER,Right,focusdir,right"
"SUPER,v,togglefloating"
"SUPER,1,view,1,0"
"SUPER,2,view,2,0"
"SUPER,3,view,3,0"
"SUPER,4,view,4,0"
"SUPER,5,view,5,0"
"SUPER,6,view,6,0"
"SUPER,7,view,7,0"
"SUPER,8,view,8,0"
"SUPER,9,view,9,0"
"SUPER+SHIFT,1,tag,1,0"
"SUPER+SHIFT,2,tag,2,0"
"SUPER+SHIFT,3,tag,3,0"
"SUPER+SHIFT,4,tag,4,0"
"SUPER+SHIFT,5,tag,5,0"
"SUPER+SHIFT,6,tag,6,0"
"SUPER+SHIFT,7,tag,7,0"
"SUPER+SHIFT,8,tag,8,0"
"SUPER+SHIFT,9,tag,9,0"
"SUPER,comma,focusmon,left"
"SUPER,period,focusmon,right"
"NONE,XF86MonBrightnessUp,spawn,brightnessctl s +10%"
"NONE,XF86MonBrightnessDown,spawn,brightnessctl s 10%-"
"NONE,XF86AudioRaiseVolume,spawn,wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+"
"NONE,XF86AudioLowerVolume,spawn,wpctl set-volume @DEFAULT_SINK@ 5%-"
"NONE,XF86AudioMute,spawn,wpctl set-mute @DEFAULT_SINK@ toggle"
"SHIFT,XF86AudioMute,spawn,wpctl set-mute @DEFAULT_SOURCE@ toggle"
"NONE,XF86AudioNext,spawn,playerctl next"
"NONE,XF86AudioPrev,spawn,playerctl previous"
"NONE,XF86AudioPlay,spawn,playerctl play-pause"
];
mousebind = [
"SUPER,btn_left,moveresize,curmove"
"SUPER,btn_right,moveresize,curresize"
"ALT,btn_left,moveresize,curresize"
];
};
};
}