Edit laptop hyprland config
This commit is contained in:
parent
4664b1d999
commit
eeb70733b3
3 changed files with 215 additions and 205 deletions
6
flake.lock
generated
6
flake.lock
generated
|
|
@ -340,11 +340,11 @@
|
||||||
"rust-overlay": "rust-overlay"
|
"rust-overlay": "rust-overlay"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1775687254,
|
"lastModified": 1775688550,
|
||||||
"narHash": "sha256-7qI4HrcNp3k43mwFLwecMXzLs8HwLGyqs+uJDjKmVH8=",
|
"narHash": "sha256-HHgYDeJl6G8HCSruMxAGGPpR+NqobZibcJ8VuV+2Qw0=",
|
||||||
"owner": "JackMechem",
|
"owner": "JackMechem",
|
||||||
"repo": "rust-app-menu",
|
"repo": "rust-app-menu",
|
||||||
"rev": "d8ab0f945cb2315ec95b6649ac6b041e84f5bc97",
|
"rev": "f780a0e32f3c2bdee4051cd3f91d95387bf41e99",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
|
||||||
|
|
@ -46,7 +46,7 @@
|
||||||
# --- Variables ---
|
# --- Variables ---
|
||||||
"$terminal" = "ghostty";
|
"$terminal" = "ghostty";
|
||||||
"$fileManager" = "thunar";
|
"$fileManager" = "thunar";
|
||||||
"$menu" = "rust-app-menu -s";
|
"$menu" = "rust-app-menu -ds";
|
||||||
|
|
||||||
env = [
|
env = [
|
||||||
"XCURSOR_SIZE,24"
|
"XCURSOR_SIZE,24"
|
||||||
|
|
@ -82,6 +82,11 @@
|
||||||
"match:class ^(zoom)$, suppress_event maximize"
|
"match:class ^(zoom)$, suppress_event maximize"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
layerrule = [
|
||||||
|
"blur on, match:namespace Launcher"
|
||||||
|
"ignore_alpha 0.3, match:namespace Launcher"
|
||||||
|
];
|
||||||
|
|
||||||
# --- Decoration ---
|
# --- Decoration ---
|
||||||
decoration = {
|
decoration = {
|
||||||
rounding = 12;
|
rounding = 12;
|
||||||
|
|
@ -121,7 +126,7 @@
|
||||||
misc = {
|
misc = {
|
||||||
force_default_wallpaper = 0;
|
force_default_wallpaper = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
# --- Keybinds ---
|
# --- Keybinds ---
|
||||||
bind = [
|
bind = [
|
||||||
# System/Rice
|
# System/Rice
|
||||||
|
|
|
||||||
|
|
@ -1,229 +1,234 @@
|
||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
wayland.windowManager.hyprland = {
|
wayland.windowManager.hyprland = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
settings =
|
settings =
|
||||||
let
|
let
|
||||||
monitor1 = "eDP-1";
|
monitor1 = "eDP-1";
|
||||||
mainMod = "SUPER";
|
mainMod = "SUPER";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
# --- Monitor Configuration ---
|
# --- Monitor Configuration ---
|
||||||
monitor = [
|
monitor = [
|
||||||
"${monitor1},1920x1080@60,0x0,1,bitdepth,10"
|
"${monitor1},1920x1080@60,0x0,1,bitdepth,10"
|
||||||
];
|
];
|
||||||
|
|
||||||
# --- Workspaces ---
|
# --- Workspaces ---
|
||||||
workspace = [
|
workspace = [
|
||||||
"1,monitor:${monitor1}"
|
"1,monitor:${monitor1}"
|
||||||
"2,monitor:${monitor1}"
|
"2,monitor:${monitor1}"
|
||||||
"3,monitor:${monitor1}"
|
"3,monitor:${monitor1}"
|
||||||
"4,monitor:${monitor1}"
|
"4,monitor:${monitor1}"
|
||||||
"5,monitor:${monitor1}"
|
"5,monitor:${monitor1}"
|
||||||
"6,monitor:${monitor1}"
|
"6,monitor:${monitor1}"
|
||||||
"7,monitor:${monitor1}"
|
"7,monitor:${monitor1}"
|
||||||
"8,monitor:${monitor1}"
|
"8,monitor:${monitor1}"
|
||||||
"9,monitor:${monitor1}"
|
"9,monitor:${monitor1}"
|
||||||
"10,monitor:${monitor1}"
|
"10,monitor:${monitor1}"
|
||||||
];
|
];
|
||||||
|
|
||||||
# --- Exec Once ---
|
# --- Exec Once ---
|
||||||
exec-once = [
|
exec-once = [
|
||||||
"waypaper --restore"
|
"waypaper --restore"
|
||||||
"gtkbar"
|
"gtkbar"
|
||||||
"rust-app-menu"
|
"rust-app-menu -d"
|
||||||
"dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP"
|
"dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP"
|
||||||
"solaar -w hide"
|
"solaar -w hide"
|
||||||
];
|
];
|
||||||
|
|
||||||
# --- Variables ---
|
# --- Variables ---
|
||||||
"$terminal" = "ghostty";
|
"$terminal" = "ghostty";
|
||||||
"$fileManager" = "thunar";
|
"$fileManager" = "thunar";
|
||||||
"$menu" = "rust-app-menu";
|
"$menu" = "rust-app-menu -ds";
|
||||||
|
|
||||||
env = [
|
env = [
|
||||||
"XCURSOR_SIZE,24"
|
"XCURSOR_SIZE,24"
|
||||||
"QT_QPA_PLATFORMTHEME,qt5ct"
|
"QT_QPA_PLATFORMTHEME,qt5ct"
|
||||||
];
|
];
|
||||||
|
|
||||||
# --- Input ---
|
# --- Input ---
|
||||||
input = {
|
input = {
|
||||||
kb_layout = "us";
|
kb_layout = "us";
|
||||||
kb_options = "caps:escape";
|
kb_options = "caps:escape";
|
||||||
follow_mouse = 1;
|
follow_mouse = 1;
|
||||||
mouse_refocus = true;
|
mouse_refocus = true;
|
||||||
touchpad = {
|
touchpad = {
|
||||||
natural_scroll = "no";
|
natural_scroll = "no";
|
||||||
};
|
};
|
||||||
accel_profile = "flat";
|
accel_profile = "flat";
|
||||||
sensitivity = 1;
|
sensitivity = 1;
|
||||||
};
|
};
|
||||||
|
|
||||||
device = {
|
device = {
|
||||||
name = "synaptics-tm3276-022";
|
name = "synaptics-tm3276-022";
|
||||||
enabled = false;
|
enabled = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
# --- General ---
|
# --- General ---
|
||||||
general = {
|
general = {
|
||||||
gaps_in = 3;
|
gaps_in = 3;
|
||||||
gaps_out = "10,10,10,10";
|
gaps_out = "10,10,10,10";
|
||||||
border_size = 2;
|
border_size = 2;
|
||||||
"col.active_border" = "rgba(e4687690)";
|
"col.active_border" = "rgba(e4687690)";
|
||||||
"col.inactive_border" = "rgba(2c2b3180)";
|
"col.inactive_border" = "rgba(2c2b3180)";
|
||||||
layout = "dwindle";
|
layout = "dwindle";
|
||||||
allow_tearing = false;
|
allow_tearing = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
# --- Fix Zoom ---
|
# --- Fix Zoom ---
|
||||||
windowrule = [
|
windowrule = [
|
||||||
"match:class ^(zoom)$, no_follow_mouse 1"
|
"match:class ^(zoom)$, no_follow_mouse 1"
|
||||||
"match:class ^(zoom)$, suppress_event maximize"
|
"match:class ^(zoom)$, suppress_event maximize"
|
||||||
];
|
];
|
||||||
|
|
||||||
# --- Decoration ---
|
layerrule = [
|
||||||
decoration = {
|
"blur on, match:namespace Launcher"
|
||||||
rounding = 12;
|
"ignore_alpha 0.3, match:namespace Launcher"
|
||||||
blur = {
|
];
|
||||||
enabled = true;
|
|
||||||
new_optimizations = true;
|
|
||||||
size = 8;
|
|
||||||
passes = 2;
|
|
||||||
};
|
|
||||||
shadow = {
|
|
||||||
enabled = true;
|
|
||||||
range = 20;
|
|
||||||
render_power = 5;
|
|
||||||
color = "rgba(00000040)";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
# --- Animations ---
|
# --- Decoration ---
|
||||||
animations = {
|
decoration = {
|
||||||
enabled = false;
|
rounding = 12;
|
||||||
bezier = "myBezier, 0.05, 0.9, 0.1, 1";
|
blur = {
|
||||||
animation = [
|
enabled = true;
|
||||||
"windows, 1, 3, myBezier"
|
new_optimizations = true;
|
||||||
"windowsOut, 1, 7, default, popin 80%"
|
size = 8;
|
||||||
"border, 1, 10, default"
|
passes = 2;
|
||||||
"borderangle, 1, 8, default"
|
};
|
||||||
"fade, 1, 7, default"
|
shadow = {
|
||||||
"workspaces, 1, 6, default"
|
enabled = true;
|
||||||
];
|
range = 20;
|
||||||
};
|
render_power = 5;
|
||||||
|
color = "rgba(00000040)";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
dwindle = {
|
# --- Animations ---
|
||||||
pseudotile = "yes";
|
animations = {
|
||||||
preserve_split = "yes";
|
enabled = false;
|
||||||
};
|
bezier = "myBezier, 0.05, 0.9, 0.1, 1";
|
||||||
|
animation = [
|
||||||
|
"windows, 1, 3, myBezier"
|
||||||
|
"windowsOut, 1, 7, default, popin 80%"
|
||||||
|
"border, 1, 10, default"
|
||||||
|
"borderangle, 1, 8, default"
|
||||||
|
"fade, 1, 7, default"
|
||||||
|
"workspaces, 1, 6, default"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
misc = {
|
dwindle = {
|
||||||
force_default_wallpaper = 0;
|
pseudotile = "yes";
|
||||||
};
|
preserve_split = "yes";
|
||||||
|
};
|
||||||
|
|
||||||
# --- Keybinds ---
|
misc = {
|
||||||
bind = [
|
force_default_wallpaper = 0;
|
||||||
# System/Rice
|
};
|
||||||
"${mainMod}, grave, exec, rice-settings"
|
|
||||||
"${mainMod}, RETURN, exec, $terminal"
|
|
||||||
"${mainMod} SHIFT, RETURN, exec, [float] $terminal"
|
|
||||||
"${mainMod}, Q, killactive"
|
|
||||||
"${mainMod} SHIFT, M, exit"
|
|
||||||
"${mainMod}, E, exec, $fileManager"
|
|
||||||
"${mainMod} SHIFT, E, exec, [float] $fileManager"
|
|
||||||
"${mainMod}, W, exec, zen-browser"
|
|
||||||
"${mainMod}, TAB, togglefloating"
|
|
||||||
"${mainMod}, SPACE, exec, $menu"
|
|
||||||
"${mainMod}, P, pseudo"
|
|
||||||
"${mainMod}, V, togglesplit"
|
|
||||||
"${mainMod}, M, fullscreen, 1"
|
|
||||||
"${mainMod}, F, fullscreen, 0"
|
|
||||||
"${mainMod}, Escape, focuscurrentorlast"
|
|
||||||
"${mainMod} SHIFT, P, exec, killall ags || exec ags"
|
|
||||||
"${mainMod} SHIFT, S, exec, grimshot savecopy area"
|
|
||||||
"${mainMod}, HOME, exec, wofi-emoji"
|
|
||||||
|
|
||||||
# Focus
|
# --- Keybinds ---
|
||||||
"${mainMod}, h, movefocus, l"
|
bind = [
|
||||||
"${mainMod}, l, movefocus, r"
|
# System/Rice
|
||||||
"${mainMod}, k, movefocus, u"
|
"${mainMod}, grave, exec, rice-settings"
|
||||||
"${mainMod}, j, movefocus, d"
|
"${mainMod}, RETURN, exec, $terminal"
|
||||||
|
"${mainMod} SHIFT, RETURN, exec, [float] $terminal"
|
||||||
|
"${mainMod}, Q, killactive"
|
||||||
|
"${mainMod} SHIFT, M, exit"
|
||||||
|
"${mainMod}, E, exec, $fileManager"
|
||||||
|
"${mainMod} SHIFT, E, exec, [float] $fileManager"
|
||||||
|
"${mainMod}, W, exec, zen-browser"
|
||||||
|
"${mainMod}, TAB, togglefloating"
|
||||||
|
"${mainMod}, SPACE, exec, $menu"
|
||||||
|
"${mainMod}, P, pseudo"
|
||||||
|
"${mainMod}, V, togglesplit"
|
||||||
|
"${mainMod}, M, fullscreen, 1"
|
||||||
|
"${mainMod}, F, fullscreen, 0"
|
||||||
|
"${mainMod}, Escape, focuscurrentorlast"
|
||||||
|
"${mainMod} SHIFT, P, exec, killall ags || exec ags"
|
||||||
|
"${mainMod} SHIFT, S, exec, grimshot savecopy area"
|
||||||
|
"${mainMod}, HOME, exec, wofi-emoji"
|
||||||
|
|
||||||
# Move
|
# Focus
|
||||||
"${mainMod} SHIFT, h, movewindow, l"
|
"${mainMod}, h, movefocus, l"
|
||||||
"${mainMod} SHIFT, l, movewindow, r"
|
"${mainMod}, l, movefocus, r"
|
||||||
"${mainMod} SHIFT, k, movewindow, u"
|
"${mainMod}, k, movefocus, u"
|
||||||
"${mainMod} SHIFT, j, movewindow, d"
|
"${mainMod}, j, movefocus, d"
|
||||||
|
|
||||||
# Resize
|
# Move
|
||||||
"${mainMod} ALT, h, resizeactive, -160 0"
|
"${mainMod} SHIFT, h, movewindow, l"
|
||||||
"${mainMod} ALT, l, resizeactive, 160 0"
|
"${mainMod} SHIFT, l, movewindow, r"
|
||||||
"${mainMod} ALT, k, resizeactive, 0 -160"
|
"${mainMod} SHIFT, k, movewindow, u"
|
||||||
"${mainMod} ALT, j, resizeactive, 0 160"
|
"${mainMod} SHIFT, j, movewindow, d"
|
||||||
|
|
||||||
# Workspaces
|
# Resize
|
||||||
"${mainMod}, 1, workspace, 1"
|
"${mainMod} ALT, h, resizeactive, -160 0"
|
||||||
"${mainMod}, 2, workspace, 2"
|
"${mainMod} ALT, l, resizeactive, 160 0"
|
||||||
"${mainMod}, 3, workspace, 3"
|
"${mainMod} ALT, k, resizeactive, 0 -160"
|
||||||
"${mainMod}, 4, workspace, 4"
|
"${mainMod} ALT, j, resizeactive, 0 160"
|
||||||
"${mainMod}, 5, workspace, 5"
|
|
||||||
"${mainMod}, 6, workspace, 6"
|
|
||||||
"${mainMod}, 7, workspace, 7"
|
|
||||||
"${mainMod}, 8, workspace, 8"
|
|
||||||
"${mainMod}, 9, workspace, 9"
|
|
||||||
"${mainMod}, 0, workspace, 10"
|
|
||||||
"${mainMod} ALT, 1, workspace, 11"
|
|
||||||
"${mainMod} ALT, 2, workspace, 12"
|
|
||||||
|
|
||||||
# Move to Workspace
|
# Workspaces
|
||||||
"${mainMod} SHIFT, 1, movetoworkspace, 1"
|
"${mainMod}, 1, workspace, 1"
|
||||||
"${mainMod} SHIFT, 2, movetoworkspace, 2"
|
"${mainMod}, 2, workspace, 2"
|
||||||
"${mainMod} SHIFT, 3, movetoworkspace, 3"
|
"${mainMod}, 3, workspace, 3"
|
||||||
"${mainMod} SHIFT, 4, movetoworkspace, 4"
|
"${mainMod}, 4, workspace, 4"
|
||||||
"${mainMod} SHIFT, 5, movetoworkspace, 5"
|
"${mainMod}, 5, workspace, 5"
|
||||||
"${mainMod} SHIFT, 6, movetoworkspace, 6"
|
"${mainMod}, 6, workspace, 6"
|
||||||
"${mainMod} SHIFT, 7, movetoworkspace, 7"
|
"${mainMod}, 7, workspace, 7"
|
||||||
"${mainMod} SHIFT, 8, movetoworkspace, 8"
|
"${mainMod}, 8, workspace, 8"
|
||||||
"${mainMod} SHIFT, 9, movetoworkspace, 9"
|
"${mainMod}, 9, workspace, 9"
|
||||||
"${mainMod} SHIFT, 0, movetoworkspace, 10"
|
"${mainMod}, 0, workspace, 10"
|
||||||
"${mainMod} ALT SHIFT, 1, movetoworkspace, 11"
|
"${mainMod} ALT, 1, workspace, 11"
|
||||||
"${mainMod} ALT SHIFT, 2, movetoworkspace, 12"
|
"${mainMod} ALT, 2, workspace, 12"
|
||||||
|
|
||||||
# Special
|
# Move to Workspace
|
||||||
"${mainMod}, O, togglespecialworkspace, magic"
|
"${mainMod} SHIFT, 1, movetoworkspace, 1"
|
||||||
"${mainMod} SHIFT, O, movetoworkspace, special:magic"
|
"${mainMod} SHIFT, 2, movetoworkspace, 2"
|
||||||
|
"${mainMod} SHIFT, 3, movetoworkspace, 3"
|
||||||
|
"${mainMod} SHIFT, 4, movetoworkspace, 4"
|
||||||
|
"${mainMod} SHIFT, 5, movetoworkspace, 5"
|
||||||
|
"${mainMod} SHIFT, 6, movetoworkspace, 6"
|
||||||
|
"${mainMod} SHIFT, 7, movetoworkspace, 7"
|
||||||
|
"${mainMod} SHIFT, 8, movetoworkspace, 8"
|
||||||
|
"${mainMod} SHIFT, 9, movetoworkspace, 9"
|
||||||
|
"${mainMod} SHIFT, 0, movetoworkspace, 10"
|
||||||
|
"${mainMod} ALT SHIFT, 1, movetoworkspace, 11"
|
||||||
|
"${mainMod} ALT SHIFT, 2, movetoworkspace, 12"
|
||||||
|
|
||||||
# Multimedia
|
# Special
|
||||||
", XF86AudioPrev, exec, playerctl previous"
|
"${mainMod}, O, togglespecialworkspace, magic"
|
||||||
", XF86AudioPlay, exec, playerctl play-pause"
|
"${mainMod} SHIFT, O, movetoworkspace, special:magic"
|
||||||
", XF86AudioPause, exec, playerctl pause"
|
|
||||||
", XF86AudioNext, exec, playerctl next"
|
|
||||||
|
|
||||||
# Custom scripts
|
# Multimedia
|
||||||
"${mainMod}, b, exec, bash -c 'pgrep gtkbar &>/dev/null && killall gtkbar || gtkbar &'"
|
", XF86AudioPrev, exec, playerctl previous"
|
||||||
];
|
", XF86AudioPlay, exec, playerctl play-pause"
|
||||||
|
", XF86AudioPause, exec, playerctl pause"
|
||||||
|
", XF86AudioNext, exec, playerctl next"
|
||||||
|
|
||||||
bindle = [
|
# Custom scripts
|
||||||
", XF86AudioRaiseVolume, exec, pamixer -i 2"
|
"${mainMod}, b, exec, bash -c 'pgrep gtkbar &>/dev/null && killall gtkbar || gtkbar &'"
|
||||||
", XF86AudioLowerVolume, exec, pamixer -d 2"
|
];
|
||||||
];
|
|
||||||
|
|
||||||
bindl = [
|
bindle = [
|
||||||
", XF86AudioMute, exec, pamixer -t"
|
", XF86AudioRaiseVolume, exec, pamixer -i 2"
|
||||||
", XF86AudioMicMute, exec, pamixer --default-source -t"
|
", XF86AudioLowerVolume, exec, pamixer -d 2"
|
||||||
];
|
];
|
||||||
|
|
||||||
bindm = [
|
bindl = [
|
||||||
"${mainMod}, mouse:272, movewindow"
|
", XF86AudioMute, exec, pamixer -t"
|
||||||
"${mainMod}, mouse:273, resizewindow"
|
", XF86AudioMicMute, exec, pamixer --default-source -t"
|
||||||
];
|
];
|
||||||
|
|
||||||
# Mouse scroll workspaces
|
bindm = [
|
||||||
bindn = [
|
"${mainMod}, mouse:272, movewindow"
|
||||||
"${mainMod}, mouse_down, workspace, e+1"
|
"${mainMod}, mouse:273, resizewindow"
|
||||||
"${mainMod}, mouse_up, workspace, e-1"
|
];
|
||||||
];
|
|
||||||
};
|
# Mouse scroll workspaces
|
||||||
};
|
bindn = [
|
||||||
|
"${mainMod}, mouse_down, workspace, e+1"
|
||||||
|
"${mainMod}, mouse_up, workspace, e-1"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue