From 41e2007e91de1c99dd4637cf6e32b530fdca4441 Mon Sep 17 00:00:00 2001 From: Andre Ramnitz Date: Sun, 10 Dec 2023 17:24:50 +0100 Subject: [PATCH] hyprland: fix paths for GNU Stow --- hypr/{ => .config/hypr}/hyprland.conf | 8 ++++++++ hypr/{ => .config/hypr}/hyprpaper.conf | 2 +- hypr/{ => .config/hypr}/scripts/gamemode.sh | 0 hypr/{ => .config/hypr}/scripts/startup.sh | 1 - hypr/.config/hypr/scripts/xdg-desktop-portal.sh | 16 ++++++++++++++++ 5 files changed, 25 insertions(+), 2 deletions(-) rename hypr/{ => .config/hypr}/hyprland.conf (97%) rename hypr/{ => .config/hypr}/hyprpaper.conf (94%) rename hypr/{ => .config/hypr}/scripts/gamemode.sh (100%) rename hypr/{ => .config/hypr}/scripts/startup.sh (99%) create mode 100755 hypr/.config/hypr/scripts/xdg-desktop-portal.sh diff --git a/hypr/hyprland.conf b/hypr/.config/hypr/hyprland.conf similarity index 97% rename from hypr/hyprland.conf rename to hypr/.config/hypr/hyprland.conf index 177dd595..de1973b4 100644 --- a/hypr/hyprland.conf +++ b/hypr/.config/hypr/hyprland.conf @@ -8,6 +8,11 @@ autogenerated = 0 # remove this line to remove the warning #monitor=DP-3,preferred,auto,1.125,vrr,2 monitor=DP-3,preferred,auto,1,vrr,2 +# unscale XWayland +xwayland { + force_zero_scaling = true +} + # See https://wiki.hyprland.org/Configuring/Keywords/ for more env = VK_ICD_FILENAMES,/usr/share/vulkan/icd.d/radeon_icd.x86_64.json env = WLR_RENDERER,vulkan @@ -18,6 +23,8 @@ env = XDG_SESSION_DESKTOP, Hyprland # Execute your favorite apps at launch exec-once = ~/.config/hypr/scripts/startup.sh +exec-once = swww init +exec-once = swww img ~/Bilder/Wallpapers/default.jpg exec-once = qutebrowser exec-once = ~/.local/bin/foot @@ -25,6 +32,7 @@ exec-once = ~/.local/bin/foot # source = ~/.config/hypr/myColors.conf # Some default env vars. +env = GDK_SCALE=1 # scaling XWayland clients env = XCURSOR_SIZE,24 env = QT_QPA_PLATFORM,wayland env = QT_QPA_PLATFORMTHEME,qt6ct diff --git a/hypr/hyprpaper.conf b/hypr/.config/hypr/hyprpaper.conf similarity index 94% rename from hypr/hyprpaper.conf rename to hypr/.config/hypr/hyprpaper.conf index 5f20017e..dfc9e4c7 100644 --- a/hypr/hyprpaper.conf +++ b/hypr/.config/hypr/hyprpaper.conf @@ -1,5 +1,5 @@ preload = /mnt/multimedia/Wallpapers/wp10330139-5120x1440-star-wars-wallpapers.jpg wallpaper = DP-3,/mnt/multimedia/Wallpapers/wp10330139-5120x1440-star-wars-wallpapers.jpg -ipc = off +ipc = on diff --git a/hypr/scripts/gamemode.sh b/hypr/.config/hypr/scripts/gamemode.sh similarity index 100% rename from hypr/scripts/gamemode.sh rename to hypr/.config/hypr/scripts/gamemode.sh diff --git a/hypr/scripts/startup.sh b/hypr/.config/hypr/scripts/startup.sh similarity index 99% rename from hypr/scripts/startup.sh rename to hypr/.config/hypr/scripts/startup.sh index de07e8f6..a12b0e78 100755 --- a/hypr/scripts/startup.sh +++ b/hypr/.config/hypr/scripts/startup.sh @@ -49,7 +49,6 @@ else logger 'gentoo-pipewire-launcher (re-)started' fi -hyprpaper & openrgb -p simple.orp & if [[ ! $(pidof waybar) ]]; then diff --git a/hypr/.config/hypr/scripts/xdg-desktop-portal.sh b/hypr/.config/hypr/scripts/xdg-desktop-portal.sh new file mode 100755 index 00000000..e43434b1 --- /dev/null +++ b/hypr/.config/hypr/scripts/xdg-desktop-portal.sh @@ -0,0 +1,16 @@ +#!/bin/bash +killall xdg-desktop-portal-hyprland +killall xdg-desktop-portal-gnome +killall xdg-desktop-portal-kde +killall xdg-desktop-portal-wlr +killall xdg-desktop-portal +logger 'killed all xdg-desktop' +sleep 1 +/usr/libexec/xdg-desktop-portal-kde & +logger 'xdg-desktop-portal-kde started' +sleep 1 +/usr/libexec/xdg-desktop-portal-hyprland & +logger 'xdg-desktop-portal-hyprland started' +sleep 2 +/usr/libexec/xdg-desktop-portal & +logger 'xdg-desktop-portal started' -- 2.51.2