♻️ refactor(hypr): separate configs in multiple files, add more blur, fix media binds

This commit is contained in:
retrozinndev
2024-11-10 12:58:59 -03:00
parent eb977b568e
commit 4c684f9c14
11 changed files with 81 additions and 71 deletions
+5 -5
View File
@@ -3,11 +3,11 @@
## AUTOSTART ##
###############
exec-once = /usr/lib/polkit-kde-authentication-agent-1 # exec kde auth agent if app asks for sudo
exec-once = waybar
exec-once = swaync # Run notification center / daemon
exec-once = hyprpaper
exec-once = hypridle # Idle daemon for Hyprland
exec-once = /usr/lib/hyprpolkitagent # Experimental Hyprland Polkit Agent
exec-once = waybar # Status Bar
exec-once = GTK_THEME=Adwaita swaync # Run Control Center with Adwaita theme to prevent issues
exec-once = hyprpaper # Wallpaper
exec-once = hypridle # Idle daemon
# Re-run pywal
exec-once = wal -R
+1 -1
View File
@@ -34,7 +34,7 @@ bind = , XF86AudioMedia, exec, $media
bind = , XF86AudioLowerVolume, exec, pamixer -d 5 # Decrease volume
bind = , XF86AudioRaiseVolume, exec, pamixer -i 5 # Increase volume
bind = , XF86AudioMute, exec, pamixer --toggle-mute # Mute
bind = , XF86AudioPrevious, exec, playerctl previous # Previous media
bind = , XF86AudioPrev, exec, playerctl previous # Previous media
bind = , XF86AudioNext, exec, playerctl next # Next media
bind = , XF86AudioPlay, exec, playerctl play-pause # Toggle Play/Pause media
+7 -11
View File
@@ -1,6 +1,6 @@
################
## APPEARANCE ##
## DECORATION ##
################
# See https://wiki.hyprland.org/Configuring/Variables for more information on how to configure appearance
@@ -26,18 +26,20 @@ general {
decoration {
rounding = 12
# Active Window Opacity
active_opacity = 1.0
inactive_opacity = 0.98
# Inactive Window Opacity
inactive_opacity = 0.95
drop_shadow = true
shadow_range = 4
shadow_render_power = 3
col.shadow = rgba(1a1a1aee)
col.shadow = $background
blur {
enabled = true
size = 3
passes = 1
size = 6
passes = 2
vibrancy = 0.9
}
}
@@ -58,9 +60,3 @@ animations {
animation = fadeLayers, 1, 7, amazingBezier
animation = workspaces, 1, 5.5, amazingBezier, slide
}
dwindle {
pseudotile = true
preserve_split = true
}
+4 -4
View File
@@ -8,9 +8,9 @@ env = XCURSOR_THEME, Adwaita
env = XCURSOR_SIZE, 24
env = HYPRCURSOR_THEME, Adwaita
env = HYPRCURSOR_SIZE, 24
env = QT_QPA_PLATFORM, wayland
env = QT_QPA_PLATFORMTHEME, qt6ct
env = QT_QPA_PLATFORM, wayland;xcb
env = QT_QPA_PLATFORMTHEME, qt6ct;qt5ct
env = QT_AUTO_SCREEN_SCALE_FACTOR, 1
env = XDG_CURRENT_DESKTOP, Hyprland
env = ADW_DISABLE_PORTAL, 1
env = WALLPAPER, $wallpaper
env = MOZ_ENABLE_WAYLAND, 1
+4 -1
View File
@@ -12,6 +12,9 @@ source = ~/.config/hypr/environment.conf
# Monitors
source = ~/.config/hypr/monitors.conf
# Layout
source = ~/.config/hypr/layout.conf
# Input
source = ~/.config/hypr/input.conf
@@ -22,7 +25,7 @@ source = ~/.config/hypr/input.conf
source = ~/.config/hypr/plugins.conf
# Appearance
source = ~/.config/hypr/appearance.conf
source = ~/.config/hypr/decorations.conf
# Autostart
source = ~/.config/hypr/autostart.conf
+1 -1
View File
@@ -1,5 +1,5 @@
$wallpaper = /home/joaov/wallpapers/Ryo Yamada Maid Dress.png
$wallpaper = /home/joaov/wallpapers/Linux Anime Girl.png
splash = true
preload = $wallpaper
+4
View File
@@ -0,0 +1,4 @@
dwindle {
pseudotile = true
preserve_split = true
}
+6 -6
View File
@@ -6,12 +6,12 @@
# Configure yout monitor(s) here! See https://wiki.hyprland.org/Configuring/Monitors for more information on how to do that!
# Monitor Arguments
# 1 -> monitor name;
# 2 -> resolution@hertz;
# 3 -> positioning from the top-left corner;
# 4 -> scaling;
# 5 -> variable refresh rate;
# 6 -> 1: vrr enabled, 0: no vrr.
# arg0 -> monitor name(you can get monitor names with `hyprctl monitors`);
# arg1 -> resolution@hertz;
# arg2 -> positioning from the top-left corner;
# arg3 -> scaling;
# arg4 -> variable refresh rate for games(optional);
# arg5 -> 1: vrr enabled, 0: no vrr.
monitor = VGA-1, 1920x1080@60, 0x0, 1, vrr, 1
+2 -1
View File
@@ -11,7 +11,8 @@ env = _VK_LAYER_NV_optimus, NVIDIA_only
env = __NV_PRIME_RENDER_OFFLOAD, 1
cursor {
no_hardware_cursors = true
# Set to true if you have issues
no_hardware_cursors = false
}
render {
+6 -7
View File
@@ -2,14 +2,13 @@
# HYPRLAND PLUGINS #
####################
# You can add your preferred plugins here. Get help on how to do so: https://wiki.hyprland.org/Plugins/Using-Plugins/
plugin {
# Example plugin configuration
hyprbars {
bar_height = 24
hyprbars-button = rgb(ff4040), 16, 󰖭, hyprctl dispatch killactive
hyprbars-button = rgb(eeee11), 16, , hyprctl dispatch fullscreen 1
}
#hyprbars {
# bar_height = 24
# hyprbars-button = rgb(ff4040), 16, 󰖭, hyprctl dispatch killactive
# hyprbars-button = rgb(eeee11), 16, , hyprctl dispatch fullscreen 1
#}
}
+11 -4
View File
@@ -1,7 +1,7 @@
#############
## RULES ##
#############
############################
## WINDOW / LAYER RULES ##
############################
# See https://wiki.hyprland.org/Configuring/Window-Rules/ and https://wiki.hyprland.org/Configuring/Workspace-Rules/ for information on how to configure this
@@ -10,6 +10,7 @@
windowrulev2 = float, class:com.github.rafostar.Clapper
windowrulev2 = float, class:xdg-desktop-portal*
windowrulev2 = float, class:org.pulseaudio.pavucontrol
windowrulev2 = float, class:blueberry.py
windowrulev2 = float, class:org.gnome.Loupe
windowrulev2 = float, class:mcpelauncher-webview
windowrulev2 = float, class:org.gnome.Calculator
@@ -17,10 +18,12 @@
# Resize
windowrulev2 = size 50% 50%, class:org.pulseaudio.pavucontrol
windowrulev2 = size 50% 50%, class:blueberry.py
windowrulev2 = size 70% 70%, class:io.mrarm.mcpelauncher-ui-qt
# Moving
windowrulev2 = move 49.27% 7.28%, class:org.pulseaudio.pavucontrol
windowrulev2 = move 49.27% 7.28%, class:blueberry.py
windowrulev2 = movetoworkspace e, class:org.pulseaudio.pavucontrol
# Maximize
@@ -28,6 +31,7 @@
# Animations
windowrulev2 = animation slide right, class:org.pulseaudio.pavucontrol
windowrulev2 = animation slide right, class:blueberry.py
layerrule = animation slide right, swaync-control-center
layerrule = animation fade, selection
layerrule = animation fade, logout_dialog
@@ -39,6 +43,7 @@
# Opacity
windowrulev2 = opacity .95 .95, class:kitty
windowrulev2 = opacity .88 .88, class:spotify
windowrulev2 = opacity .88 .88, class:hyprpolkitagent
# Blur
windowrulev2 = noblur, class:^()$, title:^()$
@@ -49,7 +54,9 @@
# Layer Blur list
layerrule = blur, waybar
layerrule = ignorezero, waybar
layerrule = ignorealpha .5, waybar
# layerrule = blur, swaync-control-center
# layerrule = ignorealpha .56, swaync-control-center
# Suppress maximize event from windows
windowrulev2 = suppressevent maximize, class:.*