home: hyprland: cleanup

This commit is contained in:
Guanran Wang 2024-01-30 13:08:18 +08:00
parent 9248aeb338
commit b167d7c831
Signed by: nyancat
SSH key fingerprint: SHA256:8oWGKciPALWut/6WA27oFKofX+6Wtc0gQnsefXLQx/8
5 changed files with 100 additions and 168 deletions

View file

@ -23,7 +23,6 @@
wayland.windowManager.hyprland = {
enable = true;
enableNvidiaPatches = true;
#plugins = with inputs.hyprland-plugins.packages.${pkgs.stdenv.hostPlatform.system}; [
# csgo-vulkan-fix
#];

View file

@ -1,7 +1,2 @@
#
# Hyprland autostart config
# $HOME/.config/hypr/autostart.conf
#
exec-once = swww init # wallpaper (not working on nixos somehow)
exec-once = waybar # status bar (bro why would nixos autostart waybar itself)
exec-once = swww init
exec-once = waybar

View file

@ -1,21 +1,15 @@
#
# Hyprland keybinds config
# ~/.config/hypr/keybinds.conf
#
# bind vars
$wp = ~/.local/bin/wrapped-swww
$dwp = ~/.local/bin/wrapped-mpvpaper
$changevolume = ~/.local/bin/wrapped-pamixer # use swayosd instead
$changevolume = ~/.local/bin/wrapped-pamixer
$changebrightness = ~/.local/bin/wrapped-brightnessctl
$screenshot = ~/.local/bin/screenshot
$video_path = ~/.var/app/com.valvesoftware.Steam/data/Steam/steamapps/workshop/content/431960
# binds
bind = SUPER, return, exec, alacritty
#bind = SUPER, Q, exec, alacritty
bind = SUPER, E, exec, xdg-open ~
bind = SUPER, W, exec, xdg-open https: # why is this working
bind = SUPER, W, exec, xdg-open http:
bind = CONTROL SHIFT, Escape, exec, gnome-system-monitor
bind = ALT, R, exec, zenity --width 500 --entry | wl-copy
@ -31,7 +25,6 @@ bind = CONTROL ALT, delete, exit,
# rofi / application launcher
bind = SUPER, D, exec, rofi -show drun -show-icons -icon-theme Tela-dracula-dark
#bind = SUPER, D, exec, anyrun
bind = SUPER SHIFT, D, exec, cliphist list | rofi -dmenu | cliphist decode | wl-copy
bind = SUPER, Period, exec, rofi -modi emoji -show emoji
bind = SUPER SHIFT, L, exec, rofi -modi "power-menu:rofi-power-menu --confirm=reboot/shutdown" -show power-menu
@ -66,12 +59,6 @@ binde = ,XF86AudioRaiseVolume, exec, $changevolume up
binde = ,XF86AudioLowerVolume, exec, $changevolume down
bind = ,XF86AudioMute, exec, $changevolume mute
#binde = ,XF86MonBrightnessUp, exec, swayosd --brightness raise
#binde = ,XF86MonBrightnessDown, exec, swayosd --brightness lower
#binde = ,XF86AudioRaiseVolume, exec, swayosd --output-volume raise
#binde = ,XF86AudioLowerVolume, exec, swayosd --output-volume lower
#bind = ,XF86AudioMute, exec, swayosd --output-volume mute-toggle
bind = ,XF86AudioPlay, exec, playerctl play-pause
bind = ,XF86AudioPrev, exec, playerctl previous
bind = ,XF86AudioNext, exec, playerctl next

View file

@ -1,14 +1,7 @@
#
# Hyprland main config
# ~/.config/hypr/hyprland.conf
# wiki: https://wiki.hyprland.org/
#
# Display settings
monitor = ,preferred, auto, 1
#monitor= ,addreserved, 28, 0, 0, 0 # eww bar
monitor = eDP-1, 1920x1080@60, 0x0, 1.25 # laptop screen eDP-1
# Multi GPU
#env = WLR_DRM_DEVICES, /dev/dri/card1:/dev/dri/card0
# General settings
general {
gaps_in = 4
@ -16,6 +9,7 @@ general {
border_size = 2
layout = dwindle
}
# Decorations
decoration {
blur {
@ -28,18 +22,18 @@ decoration {
col.shadow = 0x88000000
col.shadow_inactive = 0x44000000
}
# Animations
# animation=NAME,ONOFF,SPEED,CURVE,STYLE or
# animation=NAME,ONOFF,SPEED,CURVE
animations {
bezier = easeOutExpo, 0.16, 1, 0.3, 1
bezier = easeOutQuint, 0.22, 1, 0.36, 1
animation = windows, 1, 6, default, popin # slide or popin
animation = windows, 1, 6, default, popin
animation = fade, 1, 8, default
animation = border, 1, 8, default
animation = borderangle, 1, 8, default
animation = workspaces, 1, 4, default
}
# Input settings
input {
accel_profile = flat
@ -51,38 +45,35 @@ input {
drag_lock = true
}
}
# idk
dwindle {
pseudotile = true
preserve_split = true
}
# Touchpad gestures
gestures {
workspace_swipe = true # touchpad swipe to switch workspaces
workspace_swipe_distance = 600 # doubles gesture distance
}
# XWayland
XWayland {
use_nearest_neighbor = false
#use_nearest_neighbor = false
force_zero_scaling = true
}
misc {
disable_hyprland_logo = true
disable_splash_rendering = true
animate_manual_resizes = true
}
# Windows rules
windowrule = float, ^(pavucontrol)$
windowrule = float, ^(blueberry)$
windowrule = float, ^(gnome-system-monitor)$
windowrule = float, ^(org.gnome.Calculator)$
windowrule = float, ^(org.gnome.Weather)$
windowrule = float, ^(zenity)$ # popups, input boxes, etc...
windowrule = float, title:^(Friends List)$ # steam friend list
windowrule = float, title:^(File Conflict)$ # nautilus
windowrule = float, title:^(Merge Folder)$ # another nautilus
windowrule = noblur, ^(xdg-desktop-portal-gtk)$ # i dont really know why did i add this
windowrule = noborder, ^(wechat-uos)$
# Layer rules
layerrule = blur, notifications
layerrule = blur, rofi

View file

@ -1,40 +0,0 @@
# need to be absolute path
#plugin = $HOME/.config/hypr/plugins/csgo-vulkan-fix.so
plugin = $HOME/.config/hypr/plugins/hyprfocus.so
plugin {
csgo-vulkan-fix {
res_w = 1440
res_h = 1080
}
hyprfocus {
enabled = false
keyboard_focus_animation = flash
mouse_focus_animation = flash
bezier = bezIn, 0.5,0.0,1.0,0.5
bezier = bezOut, 0.0,0.5,0.5,1.0
}
flash {
flash_opacity = 0.7
in_bezier = bezIn
in_speed = 0.5
out_bezier = bezOut
out_speed = 3
}
shrink {
shrink_percentage = 0.99
in_bezier = bezIn
in_speed = 0.5
out_bezier = bezOut
out_speed = 3
}
}