mpv window rule

This commit is contained in:
joy 2024-10-08 19:45:43 +02:00
parent 56b280a093
commit e6dccb18c4
3 changed files with 6 additions and 5 deletions

View file

@ -5,7 +5,6 @@
led.enable = true; led.enable = true;
gnome.enable = true; gnome.enable = true;
code.enable = true; code.enable = true;
# code.enable = true;
imports = [ imports = [
./hardware.nix ./hardware.nix

View file

@ -45,6 +45,5 @@
gnome-calculator gnome-calculator
gnome-disk-utility gnome-disk-utility
gnome-clocks gnome-clocks
gnome-calendar
]; ];
} }

View file

@ -29,12 +29,15 @@
"ags" "ags"
]; ];
windowrulev2 = [ windowrulev2 = [
"float,:title:^(mpv)(.*)$" "float,class:(mpv)"
"float,title:(Pipewire)" "pin,class:(mpv)"
"move 66.1% 65.7%,class:(mpv)"
"size 854 480,class:(mpv)"
"float,title:(Disks)" "float,title:(Disks)"
"float,title:(Calculator)" "float,title:(Calculator)"
"float,title:(Bluetooth)" "float,title:(Bluetooth)"
"float,title:(Clocks)" "float,title:(Clocks)"
"size 854 480,title:(Clocks)"
"float,title:(Network Connections)" "float,title:(Network Connections)"
]; ];
gestures = { gestures = {
@ -90,7 +93,7 @@
"$mod+shift, B, exec, sh $sciPath/ags.sh" "$mod+shift, B, exec, sh $sciPath/ags.sh"
"$mod, up, exec, sh $sciPath/volume.sh -i" "$mod, up, exec, sh $sciPath/volume.sh -i"
"$mod, down, exec, sh $sciPath/volume.sh -d" "$mod, down, exec, sh $sciPath/volume.sh -d"
"$mod, P, exec, hyprctl dispatch togglefloating active; hyprctl dispatch pin active; hyprctl dispatch resizeactive -100000 -10000; hyprctl dispatch movewindowpixel exact 0 100%-600" "$mod, P, exec, hyprctl dispatch togglefloating active; hyprctl dispatch pin active"
# cmus # cmus
"$mod, D, exec, sh $sciPath/cmus.sh" "$mod, D, exec, sh $sciPath/cmus.sh"