aboutsummaryrefslogtreecommitdiffstats
path: root/config/hypr
diff options
context:
space:
mode:
authorinstaller <installer@gmail.com>2025-02-15 17:41:55 +0900
committerinstaller <installer@gmail.com>2025-02-15 17:41:55 +0900
commit0b00425dc338e739404bd200a1e2078237df71a9 (patch)
tree1cec0222d9a50c035d1d2547c44f571d80fcf559 /config/hypr
parentb478eef5f63d237eda06256bd4508c545bc6bcbe (diff)
Updated rofi stuff
Diffstat (limited to 'config/hypr')
-rw-r--r--config/hypr/UserConfigs/ENVariables.conf33
-rwxr-xr-xconfig/hypr/scripts/Animations.sh4
-rwxr-xr-xconfig/hypr/scripts/RofiThemeSelector-modified.sh2
-rwxr-xr-xconfig/hypr/scripts/RofiThemeSelector.sh2
4 files changed, 27 insertions, 14 deletions
diff --git a/config/hypr/UserConfigs/ENVariables.conf b/config/hypr/UserConfigs/ENVariables.conf
index e5e5ab42..7dde28c4 100644
--- a/config/hypr/UserConfigs/ENVariables.conf
+++ b/config/hypr/UserConfigs/ENVariables.conf
@@ -4,30 +4,39 @@
# Set your defaults here
#env = EDITOR,vim #default editor
-#environment-variables
-env = CLUTTER_BACKEND,wayland
+# environment-variables
+# Toolkit Backend Variables
env = GDK_BACKEND,wayland,x11
-env = QT_AUTO_SCREEN_SCALE_FACTOR,1
env = QT_QPA_PLATFORM,wayland;xcb
-env = QT_QPA_PLATFORMTHEME,qt5ct
-env = QT_QPA_PLATFORMTHEME,qt6ct
-env = QT_SCALE_FACTOR,1
-env = QT_WAYLAND_DISABLE_WINDOWDECORATION,1
+env = CLUTTER_BACKEND,wayland
+
+#Run SDL2 applications on Wayland.
+#Remove or set to x11 if games that provide older versions of SDL cause compatibility issues
+#env = SDL_VIDEODRIVER,wayland
+
+# xdg Specifications
env = XDG_CURRENT_DESKTOP,Hyprland
env = XDG_SESSION_DESKTOP,Hyprland
env = XDG_SESSION_TYPE,wayland
+# QT Variables
+env = QT_AUTO_SCREEN_SCALE_FACTOR,1
+env = QT_WAYLAND_DISABLE_WINDOWDECORATION,1
+env = QT_QPA_PLATFORMTHEME,qt5ct
+env = QT_QPA_PLATFORMTHEME,qt6ct
+
# hyprland-qt-support
env = QT_QUICK_CONTROLS_STYLE,org.hyprland.style
-# xwayland apps scale fix (useful if you are use monitor scaling)
+# xwayland apps scale fix (useful if you are use monitor scaling).
+# Set same value if you use scaling in Monitors.conf
+# 1 is 100% 1.5 is 150%
# see https://wiki.hyprland.org/Configuring/XWayland/
-# toolkit-specific scale
env = GDK_SCALE,1
+env = QT_SCALE_FACTOR,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
@@ -41,6 +50,7 @@ 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
@@ -49,9 +59,12 @@ env = ELECTRON_OZONE_PLATFORM_HINT,auto
#env = AQ_DRM_DEVICES,/dev/dri/card1 (nvidia)
#env = AQ_DRM_DEVICES,/dev/dri/card0
+#env = AQ_NO_ATOMIC,1 #use legacy DRM interface
+
# additional ENV's for nvidia. Caution, activate with care
#env = GBM_BACKEND,nvidia-drm
+#env = __GL_GSYNC_ALLOWED,1 #adaptive Vsync
#env = __NV_PRIME_RENDER_OFFLOAD,1
#env = __VK_LAYER_NV_optimus,NVIDIA_only
#env = WLR_DRM_NO_ATOMIC,1
diff --git a/config/hypr/scripts/Animations.sh b/config/hypr/scripts/Animations.sh
index 62c32257..4f49d47a 100755
--- a/config/hypr/scripts/Animations.sh
+++ b/config/hypr/scripts/Animations.sh
@@ -13,12 +13,12 @@ SCRIPTSDIR="$HOME/.config/hypr/scripts"
animations_dir="$HOME/.config/hypr/animations"
UserConfigs="$HOME/.config/hypr/UserConfigs"
rofi_theme="~/.config/rofi/config-Animations.rasi"
-
+msg='❗NOTE:❗ This will copy animations into UserAnimations.conf'
# list of animation files, sorted alphabetically with numbers first
animations_list=$(find -L "$animations_dir" -maxdepth 1 -type f | sed 's/.*\///' | sed 's/\.conf$//' | sort -V)
# Rofi Menu
-chosen_file=$(echo "$animations_list" | rofi -i -dmenu -config $rofi_theme)
+chosen_file=$(echo "$animations_list" | rofi -i -dmenu -config $rofi_theme -mesg "$msg")
# Check if a file was selected
if [[ -n "$chosen_file" ]]; then
diff --git a/config/hypr/scripts/RofiThemeSelector-modified.sh b/config/hypr/scripts/RofiThemeSelector-modified.sh
index 2af75a73..2cfc2d24 100755
--- a/config/hypr/scripts/RofiThemeSelector-modified.sh
+++ b/config/hypr/scripts/RofiThemeSelector-modified.sh
@@ -219,7 +219,7 @@ then
# Send notification with the selected theme name
selection="${theme_names[${SELECTED}]}"
if [ -n "$NOTIFY_SEND" ]; then
- notify-send -u low -i "$iDIR/ja.png" "Rofi Theme" "applied: $selection"
+ notify-send -u low -i "$iDIR/ja.png" "Rofi Theme applied:" "$selection"
fi
fi
diff --git a/config/hypr/scripts/RofiThemeSelector.sh b/config/hypr/scripts/RofiThemeSelector.sh
index 968d1f30..2e840ea1 100755
--- a/config/hypr/scripts/RofiThemeSelector.sh
+++ b/config/hypr/scripts/RofiThemeSelector.sh
@@ -65,7 +65,7 @@ main() {
exit 0
fi
add_theme_to_config "$choice"
- notify-send -i "$iDIR/ja.png" -u low 'Rofi Theme' "$choice applied."
+ notify-send -i "$iDIR/ja.png" -u low 'Rofi Theme applied:' "$choice"
}
if pgrep -x "rofi" >/dev/null; then
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage