hyprland: updated config

This commit is contained in:
Aly Raffauf 2024-04-01 00:02:02 -04:00
parent b83f337bec
commit 698033be56

View file

@ -63,13 +63,14 @@
wayland.windowManager.hyprland.enable = true; wayland.windowManager.hyprland.enable = true;
wayland.windowManager.hyprland.extraConfig = let wayland.windowManager.hyprland.extraConfig = let
modifier = "SUPER"; modifier = "SUPER";
# Default apps # Default apps
browser = pkgs.firefox + "/bin/firefox"; browser = pkgs.firefox + "/bin/firefox";
fileManager = pkgs.xfce.thunar + "/bin/thunar"; fileManager = pkgs.xfce.thunar + "/bin/thunar";
editor = pkgs.vscodium + "/bin/codium"; editor = pkgs.vscodium + "/bin/codium";
terminal = pkgs.alacritty + "/bin/alacritty"; terminal = pkgs.alacritty + "/bin/alacritty";
# Hyprland shell utilities # Hyprland desktop utilities
bar = pkgs.waybar + "/bin/waybar"; bar = pkgs.waybar + "/bin/waybar";
launcher = pkgs.fuzzel + "/bin/fuzzel"; launcher = pkgs.fuzzel + "/bin/fuzzel";
notifyd = pkgs.mako + "/bin/mako"; notifyd = pkgs.mako + "/bin/mako";
@ -81,13 +82,13 @@
hyprshade = pkgs.hyprshade + "/bin/hyprshade"; hyprshade = pkgs.hyprshade + "/bin/hyprshade";
# Media/hardware commands # Media/hardware commands
brightness = "${pkgs.brightnessctl}/bin/brightnessctl "; brightness = "${pkgs.brightnessctl}/bin/brightnessctl";
brightness_up = "${brightness} set 5%+"; brightness_up = "${brightness} set 5%+";
brightness_down = "${brightness} set 5%-"; brightness_down = "${brightness} set 5%-";
volume = "${pkgs.wireplumber}/bin/wpctl"; volume = "${pkgs.wireplumber}/bin/wpctl";
volume_up = "${volume} set-volume -l 1.0 @DEFAULT_SINK@ 5%+"; volume_up = "${volume} set-volume -l 1.0 @DEFAULT_SINK@ 5%+";
volume_down = "${volume} set-volume -l 1.0 @DEFAULT_SINK@ 5%-"; volume_down = "${volume} set-volume -l 1.0 @DEFAULT_SINK@ 5%-";
mute = "${volume} set-mute @DEFAULT_SINK@ toggle"; volume_mute = "${volume} set-mute @DEFAULT_SINK@ toggle";
media = "${pkgs.playerctl}/bin/playerctl"; media = "${pkgs.playerctl}/bin/playerctl";
media_play = "${media} play-pause"; media_play = "${media} play-pause";
media_next = "${media} next"; media_next = "${media} next";
@ -106,12 +107,12 @@
qt_platform_theme = "gtk"; qt_platform_theme = "gtk";
in '' in ''
monitor=desc:BOE 0x0BCA,preferred,auto,1.566667 # lavaridge fw13 matte display monitor = desc:BOE 0x0BCA,preferred,auto,1.566667 # lavaridge fw13 matte display
monitor=desc:BOE 0x095F,preferred,auto,1.566667# lavaridge fw13 glossy display monitor = desc:BOE 0x095F,preferred,auto,1.566667# lavaridge fw13 glossy display
monitor=desc:LG Electronics LG ULTRAWIDE 311NTAB5M720,preferred,auto,1.25,vrr,2 # mauville monitor = desc:LG Electronics LG ULTRAWIDE 311NTAB5M720,preferred,auto,1.25,vrr,2 # mauville
monitor=desc:LG Display 0x0569,preferred,auto,1.2 # rustboro monitor = desc:LG Display 0x0569,preferred,auto,1.2 # rustboro
monitor=desc:Samsung Display Corp. 0x4152,preferred,auto,2 # petalburg monitor = desc:Samsung Display Corp. 0x4152,preferred,auto,2 # petalburg
monitor=desc:Guangxi Century Innovation Display Electronics Co. Ltd 27C1U-D 0000000000001,preferred,-2560x0,1.5 # workshop monitor = desc:Guangxi Century Innovation Display Electronics Co. Ltd 27C1U-D 0000000000001,preferred,-2560x0,1.5 # workshop
# Use best settings for all other monitors. # Use best settings for all other monitors.
monitor=,preferred,auto,auto monitor=,preferred,auto,auto
@ -193,41 +194,40 @@
enabled = yes enabled = yes
bezier = myBezier, 0.05, 0.9, 0.1, 1.05 bezier = myBezier, 0.05, 0.9, 0.1, 1.05
animation = windows, 1, 7, myBezier
animation = windowsOut, 1, 7, default, popin 80%
animation = border, 1, 10, default animation = border, 1, 10, default
animation = borderangle, 1, 8, default animation = borderangle, 1, 8, default
animation = fade, 1, 7, default animation = fade, 1, 7, default
animation = workspaces, 1, 6, default
animation = specialWorkspace, 1, 6, default, slidevert animation = specialWorkspace, 1, 6, default, slidevert
animation = windows, 1, 7, myBezier
animation = windowsOut, 1, 7, default, popin 80%
animation = workspaces, 1, 6, default
} }
dwindle { dwindle {
pseudotile = yes # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
preserve_split = yes # you probably want this preserve_split = yes # you probably want this
pseudotile = yes # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
} }
master { master {
new_is_master = false
always_center_master = true always_center_master = true
new_is_master = false
} }
misc { misc {
disable_splash_rendering = true
disable_hyprland_logo = true disable_hyprland_logo = true
vfr = true disable_splash_rendering = true
focus_on_activate = true focus_on_activate = true
vfr = true
} }
windowrulev2 = suppressevent maximize, class:.* # You'll probably like this. # Window Rules
# PavuControl, nmtui, and blueberry float.
windowrulev2 = float,class:(pavucontrol)
windowrulev2 = center(1),class:(pavucontrol)
windowrulev2 = float,class:(nmtui)
windowrulev2 = center(1),class:(nmtui)
windowrulev2 = float,class:(blueberry.py)
windowrulev2 = center(1),class:(blueberry.py) windowrulev2 = center(1),class:(blueberry.py)
windowrulev2 = center(1),class:(nmtui)
windowrulev2 = center(1),class:(pavucontrol)
windowrulev2 = float,class:(blueberry.py)
windowrulev2 = float,class:(nmtui)
windowrulev2 = float,class:(pavucontrol)
windowrulev2 = suppressevent maximize, class:.*
# See https://wiki.hyprland.org/Configuring/Keywords/ for more # See https://wiki.hyprland.org/Configuring/Keywords/ for more
$mainMod = ${modifier} $mainMod = ${modifier}
@ -306,7 +306,7 @@
# Adjust volume and play/pause. # Adjust volume and play/pause.
bindle = , xf86audioraisevolume, exec, ${volume_up}; bindle = , xf86audioraisevolume, exec, ${volume_up};
bindle = , xf86audiolowervolume, exec, ${volume_down}; bindle = , xf86audiolowervolume, exec, ${volume_down};
bindl = , xf86audiomute, exec, ${mute} bindl = , xf86audiomute, exec, ${volume_mute}
bindl = , xf86audioplay, exec, ${media_play} bindl = , xf86audioplay, exec, ${media_play}
bindl = , xf86audioprev, exec, ${media_previous} bindl = , xf86audioprev, exec, ${media_previous}
bindl = , xf86audionext, exec, ${media_next} bindl = , xf86audionext, exec, ${media_next}