Add hy3 plugin to hyprland

This commit is contained in:
Kiana Sheibani 2024-05-11 20:16:58 -04:00
parent d3b14d2698
commit f410f3a20e
2 changed files with 46 additions and 25 deletions

View file

@ -16,6 +16,8 @@ in {
systemd.enable = true; systemd.enable = true;
xwayland.enable = true; xwayland.enable = true;
plugins = with pkgs.hyprlandPlugins; [ hy3 ];
settings = { settings = {
"$mod" = modifier; "$mod" = modifier;
"$terminal" = terminal; "$terminal" = terminal;
@ -26,6 +28,8 @@ in {
]; ];
general = { general = {
layout = "hy3";
border_size = 3; border_size = 3;
gaps_in = 8; gaps_in = 8;
gaps_out = 8; gaps_out = 8;
@ -39,6 +43,15 @@ in {
"col.nogroup_border_active" = "rgb(d5556f)"; "col.nogroup_border_active" = "rgb(d5556f)";
}; };
plugin.hy3 = {
tab_first_window = false;
tabs = {
height = 6;
render_text = false;
};
};
decoration = { decoration = {
rounding = 10; rounding = 10;
@ -51,7 +64,6 @@ in {
}; };
windowrulev2 = [ windowrulev2 = [
"float, initialTitle:(emacs-everywhere)"
"bordercolor rgb(e0af68), fullscreen:1" "bordercolor rgb(e0af68), fullscreen:1"
]; ];
layerrule = [ layerrule = [
@ -71,41 +83,46 @@ in {
misc.disable_hyprland_logo = true; misc.disable_hyprland_logo = true;
# Bindings
bind = [ bind = [
"$mod, Return, exec, $terminal" "$mod, Return, exec, $terminal"
"$mod, D, exec, $menu" "$mod, D, exec, $menu"
"$mod, E, exec, ${scripts}/exit" "$mod Shift, E, exec, ${scripts}/exit"
"$mod Shift, E, exit,"
"$mod, M, exec, swaylock" "$mod, M, exec, swaylock"
# Emacs Everywhere # Emacs Everywhere
"$mod, Q, exec, $HOME/.config/emacs/bin/doom +everywhere" # "$mod, Q, exec, $HOME/.config/emacs/bin/doom +everywhere"
# Windows # Windows
"$mod, Left, movefocus, l" "$mod, Left, hy3:movefocus, l"
"$mod, Right, movefocus, r" "$mod, Right, hy3:movefocus, r"
"$mod, Up, movefocus, u" "$mod, Up, hy3:movefocus, u"
"$mod, Down, movefocus, d" "$mod, Down, hy3:movefocus, d"
"$mod, H, movefocus, l" "$mod, H, hy3:movefocus, l"
"$mod, L, movefocus, r" "$mod, L, hy3:movefocus, r"
"$mod, K, movefocus, u" "$mod, K, hy3:movefocus, u"
"$mod, J, movefocus, d" "$mod, J, hy3:movefocus, d"
"$mod Shift, Left, movewindow, l" "$mod Shift, Left, hy3:movewindow, l"
"$mod Shift, Right, movewindow, r" "$mod Shift, Right, hy3:movewindow, r"
"$mod Shift, Up, movewindow, u" "$mod Shift, Up, hy3:movewindow, u"
"$mod Shift, Down, movewindow, d" "$mod Shift, Down, hy3:movewindow, d"
"$mod Shift, H, movewindow, l" "$mod Shift, H, hy3:movewindow, l"
"$mod Shift, L, movewindow, r" "$mod Shift, L, hy3:movewindow, r"
"$mod Shift, K, movewindow, u" "$mod Shift, K, hy3:movewindow, u"
"$mod Shift, J, movewindow, d" "$mod Shift, J, hy3:movewindow, d"
"$mod, F, fullscreen, 1" "$mod, F, fullscreen, 1"
"$mod Shift, F, fullscreen, 0" "$mod Shift, F, fullscreen, 0"
"$mod Shift, Q, killactive," "$mod Shift, Q, hy3:killactive,"
"$mod, G, togglegroup,"
"$mod, Tab, changegroupactive, f" "$mod, V, hy3:makegroup, v, ephemeral"
"$mod Shift, Tab, changegroupactive, b" "$mod, B, hy3:makegroup, h, ephemeral"
"$mod, T, hy3:makegroup, tab"
"$mod Shift, T, hy3:changegroup, toggletab"
"$mod, E, hy3:changegroup, opposite"
"$mod, A, hy3:changefocus, raise"
# Workspaces # Workspaces
"$mod, 1, workspace, 1" "$mod, 1, workspace, 1"
@ -132,6 +149,10 @@ in {
"$mod Shift, 0, movetoworkspace, 10" "$mod Shift, 0, movetoworkspace, 10"
]; ];
bindn = [
", mouse:272, hy3:focustab, mouse"
];
bindl = [ bindl = [
# XF86 key bindings # XF86 key bindings
", XF86AudioMute, exec, pamixer --toggle-mute" ", XF86AudioMute, exec, pamixer --toggle-mute"

View file

@ -1,7 +1,7 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
{ {
programs.waybar = { programs.waybar = {
enable = true; enable = false;
settings = settings =
let spanfa = "<span font=\"Font Awesome 5 Regular 11\">"; let spanfa = "<span font=\"Font Awesome 5 Regular 11\">";