home: hyprland: cleanup

This commit is contained in:
Guanran Wang 2023-12-19 02:20:08 +08:00
parent 455cfb9b89
commit bc7ac2df55
Signed by: nyancat
SSH key fingerprint: SHA256:8oWGKciPALWut/6WA27oFKofX+6Wtc0gQnsefXLQx/8
3 changed files with 11 additions and 51 deletions

View file

@ -13,26 +13,19 @@
../waybar ../waybar
]; ];
wayland.windowManager = { wayland.windowManager.hyprland = {
hyprland = {
enable = true; enable = true;
enableNvidiaPatches = true; enableNvidiaPatches = true;
xwayland.enable = true; #plugins = with inputs.hyprland-plugins.packages.${pkgs.system}; [
plugins = [ # csgo-vulkan-fix
#inputs.hyprland-plugins.packages.${pkgs.system}.csgo-vulkan-fix #];
];
extraConfig = '' extraConfig = ''
#source = ~/.config/hypr/themes/mocha.conf
#source = ~/.config/hypr/themes/colors.conf
#source = ~/.config/hypr/plugins.conf
source = ~/.config/hypr/main.conf source = ~/.config/hypr/main.conf
source = ~/.config/hypr/keybinds.conf source = ~/.config/hypr/keybinds.conf
source = ~/.config/hypr/autostart.conf source = ~/.config/hypr/autostart.conf
source = ~/.config/hypr/env.conf
''; '';
}; };
};
xdg.configFile."hypr" = { xdg.configFile."hypr" = {
source = ./hypr; source = ./hypr;

View file

@ -3,26 +3,5 @@
# $HOME/.config/hypr/autostart.conf # $HOME/.config/hypr/autostart.conf
# #
#exec-once = $HOME/.local/share/hyprload/hyprload.sh # hyprload
#exec-once = /usr/bin/dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
#exec-once = dbus-update-activation-environment --all
#exec-once = /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 # authentication prompt
#exec-once = gnome-keyring-daemon --start --components=secrets # keyring
exec-once = swww init # wallpaper (not working on nixos somehow) exec-once = swww init # wallpaper (not working on nixos somehow)
#exec-once = hyprpaper # wallpaper but for factional scaling
exec-once = waybar # status bar (bro why would nixos autostart waybar itself) exec-once = waybar # status bar (bro why would nixos autostart waybar itself)
#exec-once = eww open bar # status bar but better
#exec-once = fcitx5 # input method
#exec-once = swayosd
#exec-once = dunst # notification
#exec-once = udiskie -t # auto disk mount (with tray)
#exec-once = nm-applet # wifi tray
exec-once = wl-paste --watch cliphist store # clipboard manager
#exec-once = wl-clip-persist --clipboard both # clipboard persist data, breaks text selection in gtk apps (https://github.com/hyprwm/Hyprland/issues/2619)
#exec-once = hyprctl setcursor Bibata-Modern-Classic 24 # set cursor
#exec-once = clash-verge # proxy tool
#exec-once = /usr/lib/kdeconnectd # kdeconnect
#exec-once = flatpak run org.qbittorrent.qBittorrent
#exec-once = $HOME/.local/bin/hyprland-autostart

View file

@ -1,12 +0,0 @@
#
# Hyprland environment varibles config
# ~/.config/hypr/env.conf
#
# Nvidia
#env = LIBVA_DRIVER_NAME, nvidia
#env = XDG_SESSION_TYPE, wayland
#env = GBM_BACKEND, nvidia-drm # crashes for me
#env = __GLX_VENDOR_LIBRARY_NAME
#env = WLR_NO_HARDWARE_CURSORS, 1
#env = __GL_THREADED_OPTIMIZATIONS, 0 # workround for minecraft glitch on nvidia 535.xx driver, https://github.com/NVIDIA/open-gpu-kernel-modules/issues/522