diff options
| -rw-r--r-- | config/hypr/UserConfigs/ENVariables.conf | 19 | ||||
| -rwxr-xr-x | copy.sh | 9 |
2 files changed, 24 insertions, 4 deletions
diff --git a/config/hypr/UserConfigs/ENVariables.conf b/config/hypr/UserConfigs/ENVariables.conf index abbf6a60..a1214d54 100644 --- a/config/hypr/UserConfigs/ENVariables.conf +++ b/config/hypr/UserConfigs/ENVariables.conf @@ -2,7 +2,7 @@ # Environment variables. See https://wiki.hyprland.org/Configuring/Environment-variables/ # Set your defaults here -#env = EDITOR,vim #default editor +env = EDITOR,vim #default editor #environment-variables env = CLUTTER_BACKEND,wayland @@ -22,6 +22,13 @@ env = XDG_SESSION_TYPE,wayland # toolkit-specific scale env = GDK_SCALE,1 +# Bibata-Modern-Ice-Cursor +# NOTE! You must have the hyprcursor version to activate this. +# If you installed from 26-Dec-2024 and choose GTK theme, then you have it. +# https://wiki.hyprland.org/Hypr-Ecosystem/hyprcursor/ +#env = HYPRCURSOR_THEME,Bibata-Modern-Ice +#env = HYPRCURSOR_SIZE,24 + # firefox env = MOZ_ENABLE_WAYLAND,1 @@ -31,9 +38,13 @@ env = ELECTRON_OZONE_PLATFORM_HINT,auto # NVIDIA # This is from Hyprland Wiki. Below will be activated nvidia gpu detected # See hyprland wiki https://wiki.hyprland.org/Nvidia/#environment-variables -#env = LIBVA_DRIVER_NAME,nvidia -#env = __GLX_VENDOR_LIBRARY_NAME,nvidia -#env = NVD_BACKEND,direct +env = LIBVA_DRIVER_NAME,nvidia +env = __GLX_VENDOR_LIBRARY_NAME,nvidia +env = NVD_BACKEND,direct + +# to use nvidia as primary renderer (need hyprland >0.45) +#env = AQ_DRM_DEVICES,/dev/dri/card1 (nvidia) +#env = AQ_DRM_DEVICES,/dev/dri/card0 # additional ENV's for nvidia. Caution, activate with care #env = GBM_BACKEND,nvidia-drm @@ -83,6 +83,15 @@ if command -v dpkg &> /dev/null; then sed -i '/^exec-once = pypr &/ s/^/#/' config/hypr/UserConfigs/Startup_Apps.conf fi +# activating hyprcursor on env by checking if the directory ~/.icons/Bibata-Modern-Ice/hyprcursors exists +if [ -d "$HOME/.icons/Bibata-Modern-Ice/hyprcursors" ]; then + # Define the config file path + HYPRCURSOR_ENV_FILE="config/hypr/UserConfigs/ENVariables.conf" + + sed -i 's/^#env = HYPRCURSOR_THEME,Bibata-Modern-Ice/env = HYPRCURSOR_THEME,Bibata-Modern-Ice/' "$HYPRCURSOR_ENV_FILE" + sed -i 's/^#env = HYPRCURSOR_SIZE,24/env = HYPRCURSOR_SIZE,24/' "$HYPRCURSOR_ENV_FILE" +fi + # Function to detect keyboard layout using localectl or setxkbmap detect_layout() { if command -v localectl >/dev/null 2>&1; then |
