mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-04-24 17:58:30 +02:00
fix: flameshot on hyprland
This commit is contained in:
@@ -40,5 +40,10 @@
|
|||||||
|
|
||||||
services = {
|
services = {
|
||||||
playerctld.enable = true;
|
playerctld.enable = true;
|
||||||
|
|
||||||
|
flameshot = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs.flameshot.override {enableWlrSupport = true;};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,9 +17,6 @@
|
|||||||
remmina
|
remmina
|
||||||
freerdp # required by remmina
|
freerdp # required by remmina
|
||||||
|
|
||||||
# misc
|
|
||||||
flameshot
|
|
||||||
|
|
||||||
# my custom hardened packages
|
# my custom hardened packages
|
||||||
pkgs.nixpaks.qq
|
pkgs.nixpaks.qq
|
||||||
pkgs.nixpaks.qq-desktop-item
|
pkgs.nixpaks.qq-desktop-item
|
||||||
|
|||||||
@@ -70,16 +70,29 @@ dwindle {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#-- Window Rules ----------------------------------------------------
|
#-- Window Rules ----------------------------------------------------
|
||||||
windowrule=float, class:^(foot-float)$
|
|
||||||
windowrule=float, class:^(yad|nm-connection-editor|pavucontrolk)$
|
windowrule=float, class:^(yad|nm-connection-editor|pavucontrolk)$
|
||||||
windowrule=float, class:^(xfce-polkit|kvantummanager|qt5ct)$
|
windowrule=float, class:^(xfce-polkit|kvantummanager|qt5ct)$
|
||||||
windowrule=float, class:^(feh|imv|Gpicview|Gimp|nomacs)$
|
windowrule=float, class:^(feh|imv|Gpicview|Gimp|nomacs)$
|
||||||
windowrule=float, class:^(VirtualBox Manager|qemu|Qemu-system-x86_64)$
|
windowrule=float, class:^(VirtualBox Manager|qemu|Qemu-system-x86_64)$
|
||||||
windowrule=float, class:^(xfce4-appfinder)$
|
windowrule=float, class:^(xfce4-appfinder)$
|
||||||
|
|
||||||
|
# foot
|
||||||
|
windowrule=float, class:^(foot-float)$
|
||||||
windowrule=float, class:^(foot-full)$
|
windowrule=float, class:^(foot-full)$
|
||||||
windowrule=move 0 0, class:^(foot-full)$
|
windowrule=move 0 0, class:^(foot-full)$
|
||||||
windowrule=size 100% 100%,class:^(foot-full)$
|
windowrule=size 100% 100%,class:^(foot-full)$
|
||||||
|
|
||||||
|
# flameshot
|
||||||
|
windowrule = move 0 0,class:(flameshot)
|
||||||
|
windowrule = pin,class:(flameshot)
|
||||||
|
windowrule = noborder,class:(flameshot)
|
||||||
|
windowrule = stayfocused,class:(flameshot)
|
||||||
|
windowrule = float,class:(flameshot)
|
||||||
|
|
||||||
|
# avoid transparency
|
||||||
|
windowrule = opaque,class:(flameshot)
|
||||||
|
|
||||||
|
# wlogout
|
||||||
windowrule=float,class:^(wlogout)$
|
windowrule=float,class:^(wlogout)$
|
||||||
windowrule=move 0 0,class:^(wlogout)$
|
windowrule=move 0 0,class:^(wlogout)$
|
||||||
windowrule=size 100% 100%,class:^(wlogout)$
|
windowrule=size 100% 100%,class:^(wlogout)$
|
||||||
@@ -134,9 +147,7 @@ bind=,XF86AudioStop,exec,mpc stop
|
|||||||
# -- Screenshots --
|
# -- Screenshots --
|
||||||
bind=,Print,exec,hyprshot -m output -o ~/Pictures/Screenshots -- imv
|
bind=,Print,exec,hyprshot -m output -o ~/Pictures/Screenshots -- imv
|
||||||
bind=SUPER,Print,exec,hyprshot -m window -o ~/Pictures/Screenshots -- imv
|
bind=SUPER,Print,exec,hyprshot -m window -o ~/Pictures/Screenshots -- imv
|
||||||
# flameshot do not recognize hyprland as a wayland compositor, so we set it to sway here
|
bind=CTRL,Print,exec,flameshot gui --raw -p ~/Pictures/Screenshots | wl-copy
|
||||||
bind=CTRL,Print,exec,XDG_CURRENT_DESKTOP=sway flameshot gui --raw -p ~/Pictures/Screenshots | wl-copy
|
|
||||||
# bind=CTRL,Print,exec,hyprshot -m region -o ~/Pictures/Screenshots -- imv
|
|
||||||
|
|
||||||
# Focus
|
# Focus
|
||||||
bind=SUPER,left,movefocus,l
|
bind=SUPER,left,movefocus,l
|
||||||
|
|||||||
Reference in New Issue
Block a user