feat(hypr): use xf86 binds, add nvidia configuration as optional

This commit is contained in:
João Dias
2024-09-23 13:19:06 -03:00
parent e837e9f3c6
commit 316fc60546
8 changed files with 39 additions and 12 deletions
+1 -1
View File
@@ -56,7 +56,7 @@ animations {
animation = borderangle, 1, 8, default animation = borderangle, 1, 8, default
animation = fade, 1, 3.5, default animation = fade, 1, 3.5, default
animation = fadeLayers, 1, 7, amazingBezier animation = fadeLayers, 1, 7, amazingBezier
animation = workspaces, 1, 5.5, amazingBezier, slidefade animation = workspaces, 1, 5.5, amazingBezier, slide
} }
dwindle { dwindle {
+12 -9
View File
@@ -13,7 +13,7 @@ $lockscreen = hyprlock
$screenshotDir = $HOME/Screenshots $screenshotDir = $HOME/Screenshots
$screenshotFull = hyprshot -m output -o $screenshotDir $screenshotFull = hyprshot -m output -o $screenshotDir
$screenshotSelect = hyprshot -m region -o $screenshotDir $screenshotSelect = hyprshot -m region -o $screenshotDir
$media = spotify-launcher
input { input {
kb_layout = br kb_layout = br
@@ -49,14 +49,17 @@ bind = $mainMod, N, exec, swaync-client -t
bind = $mainMod, L, exec, $lockscreen bind = $mainMod, L, exec, $lockscreen
# Media keys # Media keys
bind = , code:121, exec, pamixer --mute # Mute bind = , XF86AudioMedia, exec, $media
bind = , code:122, exec, pamixer -d 5 # Decrease volume bind = , XF86AudioLowerVolume, exec, pamixer -d 5 # Decrease volume
bind = , code:123, exec, pamixer -i 5 # Increase volume bind = , XF86AudioRaiseVolume, exec, pamixer -i 5 # Increase volume
bind = , code:173, exec, playerctl previous # Previous media bind = , XF86AudioMute, exec, pamixer --toggle-mute # Mute
bind = , code:172, exec, playerctl play-pause # Toggle Play/Pause media bind = , XF86AudioPrevious, exec, playerctl previous # Previous media
bind = , code:171, exec, playerctl next # Next media bind = , XF86AudioNext, exec, playerctl next # Next media
bind = , code:232, exec, brightnessctl s 5%- # Lower monitor brightness bind = , XF86AudioPlay, exec, playerctl play-pause # Toggle Play/Pause media
bind = , code:233, exec, brightnessctl s +5% # Increase monitor brightness
# Brightness Keys
bind = , XF86MonBrightnessDown, exec, brightnessctl s 5%- # Lower monitor brightness
bind = , XF86MonBrightnessUp, exec, brightnessctl s +5% # Increase monitor brightness
# Screenshot # Screenshot
bind = , Print, exec, $screenshotSelect bind = , Print, exec, $screenshotSelect
+1
View File
@@ -3,6 +3,7 @@
## ENVIRONMENT ## ## ENVIRONMENT ##
################# #################
# Others
env = XCURSOR_THEME, Adwaita env = XCURSOR_THEME, Adwaita
env = XCURSOR_SIZE, 24 env = XCURSOR_SIZE, 24
env = HYPRCURSOR_THEME, Adwaita env = HYPRCURSOR_THEME, Adwaita
+3
View File
@@ -3,6 +3,9 @@
## Retrozinndev's Hyprland Configurations! ## ## Retrozinndev's Hyprland Configurations! ##
############################################# #############################################
# Nvidia Settings
# source = ~/.config/hypr/nvidia.conf
# Environment # Environment
source = ~/.config/hypr/environment.conf source = ~/.config/hypr/environment.conf
+1 -1
View File
@@ -1,5 +1,5 @@
$wallpaper = /home/joaov/wallpapers/Ryo Yamada.png $wallpaper = /home/joaov/wallpapers/Kessoku Band Reunited.jpg
splash = true splash = true
preload = $wallpaper preload = $wallpaper
+1 -1
View File
@@ -13,5 +13,5 @@
# 5 -> variable refresh rate; # 5 -> variable refresh rate;
# 6 -> 1: vrr enabled, 0: no vrr. # 6 -> 1: vrr enabled, 0: no vrr.
monitor = VGA-1, 1920x1080@60, 0x0, 1, vrr, 1 monitor = HDMI-A-1, 1920x1080@75, 0x0, 1, vrr, 1
+19
View File
@@ -0,0 +1,19 @@
#####################
## NVIDIA SETTINGS ##
#####################
env = LIBVA_DRIVER_NAME, nvidia
env = XDG_SESSION_TYPE, wayland
env = GBM_BACKEND, nvidia-drm
env = __GLX_VENDOR_LIBRARY_NAME, nvidia
env = _VK_LAYER_NV_optimus, NVIDIA_only
env = __NV_PRIME_RENDER_OFFLOAD, 1
cursor {
no_hardware_cursors = true
}
render {
explicit_sync = true
}
+1
View File
@@ -19,6 +19,7 @@ windowrulev2 = size 50% 50%, class:org.pulseaudio.pavucontrol
# Moving # Moving
windowrulev2 = move 49.27% 7.28%, class:org.pulseaudio.pavucontrol windowrulev2 = move 49.27% 7.28%, class:org.pulseaudio.pavucontrol
windowrulev2 = movetoworkspace e, class:org.pulseaudio.pavucontrol
# Maximize # Maximize
windowrulev2 = tile, title:^(Resources)$ windowrulev2 = tile, title:^(Resources)$