From 6d717b946b3e5f99d31be8c0e46c19e03d83ce20 Mon Sep 17 00:00:00 2001 From: Benjamin Palko Date: Thu, 10 Apr 2025 15:35:58 -0400 Subject: [PATCH] switch to ags bar --- hypr/config/environments/nvidia.conf | 13 +++++++------ hypr/config/startup.conf | 5 +++-- hypr/scripts/run-ags.sh | 8 ++++++++ 3 files changed, 18 insertions(+), 8 deletions(-) create mode 100644 hypr/scripts/run-ags.sh diff --git a/hypr/config/environments/nvidia.conf b/hypr/config/environments/nvidia.conf index 8294e73..926b9e1 100644 --- a/hypr/config/environments/nvidia.conf +++ b/hypr/config/environments/nvidia.conf @@ -4,20 +4,21 @@ # ----------------------------------------------------- # https://wiki.hyprland.org/Nvidia/ + env = LIBVA_DRIVER_NAME,nvidia +env = __GLX_VENDOR_LIBRARY_NAME,nvidia + +env = NVD_BACKEND,direct + +env = ELECTRON_OZONE_PLATFORM_HINT,auto + env = XDG_SESSION_TYPE,wayland env = GBM_BACKEND,nvidia-drm -env = __GLX_VENDOR_LIBRARY_NAME,nvidia cursor { no_hardware_cursors = true } -env = NVD_BACKEND,direct - env = XCURSOR_SIZE,24 env = QT_QPA_PLATFORM,wayland env = WLR_NO_HARDWARE_CURSORS,1 env = __GL_VRR_ALLOWED,1 env = WLR_DRM_NO_ATOMIC,1 - -env = ELECTRON_OZONE_PLATFORM_HINT,auto - diff --git a/hypr/config/startup.conf b/hypr/config/startup.conf index 382e19c..cf57e24 100644 --- a/hypr/config/startup.conf +++ b/hypr/config/startup.conf @@ -3,7 +3,8 @@ exec-once = bash ~/.config/hypr/scripts/start-swaync.sh # Idle Daemon exec-once = hypridle # Status-bar -exec-once = bash ~/.config/hypr/scripts/start-waybar.sh +# exec-once = bash ~/.config/hypr/scripts/start-waybar.sh +exec-once = bash ~/dotfiles/hypr/scripts/run-ags.sh # Emotes exec-once = emote # Wallpaper Daemon @@ -16,5 +17,5 @@ exec-once = [workspace 2 silent] signal-desktop --password-store="gnome-libsecre exec-once = [workspace 3 silent] zen-browser exec-once = [workspace 4 silent] kitty exec-once = [workspace special:terminal silent] kitty -exec-once = [workspace special:music silent] deezer +exec-once = [workspace special:music silent] deezer --enable-features=UseOzonePlatform --ozone-platform=wayland diff --git a/hypr/scripts/run-ags.sh b/hypr/scripts/run-ags.sh new file mode 100644 index 0000000..e7ac9a6 --- /dev/null +++ b/hypr/scripts/run-ags.sh @@ -0,0 +1,8 @@ +#!/bin/sh +CONFIG_FILES="$HOME/dotfiles/ags" +while true; do + sleep 1.6 + ags run --gtk4 -d "$CONFIG_FILES" & + inotifywait -e create,modify -r "$CONFIG_FILES" + killall gjs +done