mirror of
https://github.com/szymon-jozef/amazing-dotfiles.git
synced 2026-10-27 19:20:43 +01:00
fix: hyprland
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
wayland.windowManager.hyprland = {
|
wayland.windowManager.hyprland = {
|
||||||
|
settings = {
|
||||||
windowrule = [
|
windowrule = [
|
||||||
"match:class ^(chrome-facebook.com__-Default)$, workspace 1"
|
"match:class ^(chrome-facebook.com__-Default)$, workspace 1"
|
||||||
"match:class ^(zen)$, workspace 2"
|
"match:class ^(zen)$, workspace 2"
|
||||||
@@ -22,6 +23,7 @@
|
|||||||
"$mainMod Control_L, x, exec, uwsm app -- ~/.nix-profile/share/applications/x.desktop"
|
"$mainMod Control_L, x, exec, uwsm app -- ~/.nix-profile/share/applications/x.desktop"
|
||||||
"$mainMod Control_L, x, focuswindow, class:^(chrome-x.com__-Default)$"
|
"$mainMod Control_L, x, focuswindow, class:^(chrome-x.com__-Default)$"
|
||||||
];
|
];
|
||||||
|
};
|
||||||
|
|
||||||
extraConfig =
|
extraConfig =
|
||||||
#hyprlang
|
#hyprlang
|
||||||
|
|||||||
@@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
wayland.windowManager.hyprland = {
|
wayland.windowManager.hyprland = {
|
||||||
|
settings = {
|
||||||
|
|
||||||
windowrule = [
|
windowrule = [
|
||||||
# general rules
|
# general rules
|
||||||
"match:class ^(signal)$, workspace 1"
|
"match:class ^(signal)$, workspace 1"
|
||||||
@@ -16,6 +18,8 @@
|
|||||||
"$mainMod Control_L, v, exec, uwsm app -- vesktop"
|
"$mainMod Control_L, v, exec, uwsm app -- vesktop"
|
||||||
"$mainMod Control_L, v, focuswindow, class:^(vesktop)$"
|
"$mainMod Control_L, v, focuswindow, class:^(vesktop)$"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
};
|
||||||
extraConfig =
|
extraConfig =
|
||||||
#hyprlang
|
#hyprlang
|
||||||
''
|
''
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
wayland.windowManager.hyprland = {
|
wayland.windowManager.hyprland = {
|
||||||
|
settings = {
|
||||||
windowrule = [
|
windowrule = [
|
||||||
"match:class ^(steam)$, workspace 3 silent"
|
"match:class ^(steam)$, workspace 3 silent"
|
||||||
"match:class ^(heroic)$, workspace 3"
|
"match:class ^(heroic)$, workspace 3"
|
||||||
@@ -13,6 +14,7 @@
|
|||||||
"$mainMod Control_L, g, exec, uwsm app -- steam"
|
"$mainMod Control_L, g, exec, uwsm app -- steam"
|
||||||
"$mainMod Control_L, g, focuswindow, class:^(steam)$"
|
"$mainMod Control_L, g, focuswindow, class:^(steam)$"
|
||||||
];
|
];
|
||||||
|
};
|
||||||
extraConfig =
|
extraConfig =
|
||||||
#hyprlang
|
#hyprlang
|
||||||
''
|
''
|
||||||
@@ -37,5 +39,4 @@
|
|||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
wayland.windowManager.hyprland = {
|
wayland.windowManager.hyprland = {
|
||||||
|
settings = {
|
||||||
|
|
||||||
windowrule = [
|
windowrule = [
|
||||||
# general rules
|
# general rules
|
||||||
"match:class ^(winboat)$, workspace 5"
|
"match:class ^(winboat)$, workspace 5"
|
||||||
@@ -23,6 +25,7 @@
|
|||||||
"$mainMod Control_L, m, exec, [workspace 9] uwsm app -- $music_player"
|
"$mainMod Control_L, m, exec, [workspace 9] uwsm app -- $music_player"
|
||||||
"$mainMod CONTROL_L L_SHIFT, B, exec, killall ashell && uwsm app -- ashell"
|
"$mainMod CONTROL_L L_SHIFT, B, exec, killall ashell && uwsm app -- ashell"
|
||||||
];
|
];
|
||||||
|
};
|
||||||
|
|
||||||
extraConfig =
|
extraConfig =
|
||||||
#hyprlang
|
#hyprlang
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ let
|
|||||||
uwsm_run = "${pkgs.uwsm}/bin/uwsm";
|
uwsm_run = "${pkgs.uwsm}/bin/uwsm";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
wayland.windowManager.hyprland = {
|
wayland.windowManager.hyprland.settings = {
|
||||||
"exec-once" = [
|
"exec-once" = [
|
||||||
"wl-paste --type text --watch cliphist store"
|
"wl-paste --type text --watch cliphist store"
|
||||||
"wl-paste --type image --watch cliphist store"
|
"wl-paste --type image --watch cliphist store"
|
||||||
|
|||||||
@@ -4,7 +4,6 @@
|
|||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
uwsm_run = "${pkgs.uwsm}/bin/uwsm";
|
|
||||||
exe = pkg: bin: if userConfig.isNixOS then "${pkg}/bin/${bin}" else "/usr/bin/${bin}";
|
exe = pkg: bin: if userConfig.isNixOS then "${pkg}/bin/${bin}" else "/usr/bin/${bin}";
|
||||||
jq = exe pkgs.jq "jq";
|
jq = exe pkgs.jq "jq";
|
||||||
grim = exe pkgs.grim "grim";
|
grim = exe pkgs.grim "grim";
|
||||||
@@ -26,6 +25,8 @@ in
|
|||||||
#portalPackage = lib.mkIf (userConfig.isNixOS
|
#portalPackage = lib.mkIf (userConfig.isNixOS
|
||||||
#) inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.xdg-desktop-portal-hyprland;
|
#) inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.xdg-desktop-portal-hyprland;
|
||||||
|
|
||||||
|
settings = {
|
||||||
|
|
||||||
xwayland.enable = true;
|
xwayland.enable = true;
|
||||||
general = {
|
general = {
|
||||||
gaps_in = 4;
|
gaps_in = 4;
|
||||||
@@ -102,4 +103,5 @@ in
|
|||||||
"$mainMod, PAUSE, exec, ${playerctl} play-pause --player spotify"
|
"$mainMod, PAUSE, exec, ${playerctl} play-pause --player spotify"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
wayland.windowManager.hyprland = {
|
wayland.windowManager.hyprland = {
|
||||||
|
settings = {
|
||||||
input = {
|
input = {
|
||||||
kb_layout = "pl";
|
kb_layout = "pl";
|
||||||
kb_variant = "";
|
kb_variant = "";
|
||||||
@@ -36,6 +37,7 @@
|
|||||||
", XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%- && ~/.local/bin/wp-vol.sh && paplay /usr/share/sounds/freedesktop/stereo/bell.oga"
|
", XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%- && ~/.local/bin/wp-vol.sh && paplay /usr/share/sounds/freedesktop/stereo/bell.oga"
|
||||||
", XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_SOURCE@ toggle"
|
", XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_SOURCE@ toggle"
|
||||||
];
|
];
|
||||||
|
};
|
||||||
|
|
||||||
extraConfig =
|
extraConfig =
|
||||||
#hyprlang
|
#hyprlang
|
||||||
|
|||||||
@@ -2,7 +2,8 @@
|
|||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
wayland.windowManager.hyprland = {
|
wayland.windowManager.hyprland.settings = {
|
||||||
|
|
||||||
dwindle = {
|
dwindle = {
|
||||||
preserve_split = true;
|
preserve_split = true;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -4,6 +4,8 @@
|
|||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
wayland.windowManager.hyprland = {
|
wayland.windowManager.hyprland = {
|
||||||
|
settings = {
|
||||||
|
|
||||||
animations = {
|
animations = {
|
||||||
enabled = userConfig.animations;
|
enabled = userConfig.animations;
|
||||||
bezier = [
|
bezier = [
|
||||||
@@ -52,4 +54,5 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{ ... }:
|
{ ... }:
|
||||||
{
|
{
|
||||||
|
|
||||||
wayland.windowManager.hyprland = {
|
wayland.windowManager.hyprland.settings = {
|
||||||
workspace = [
|
workspace = [
|
||||||
"1, monitor:DP-2"
|
"1, monitor:DP-2"
|
||||||
"1, layout: dwindle"
|
"1, layout: dwindle"
|
||||||
|
|||||||
Reference in New Issue
Block a user