From a4e2cf06e9be2fee16cbd4db1348bee382cb8c00 Mon Sep 17 00:00:00 2001 From: kenji Date: Thu, 17 Jul 2025 14:44:11 -0500 Subject: [PATCH] changed gaming special workspace to steam --- packages/hypridle/home.nix | 38 +++++++++++++++--------------- packages/hyprland/config/env.nix | 18 ++++++++++++++ packages/hyprland/config/execs.nix | 8 ++++--- packages/hyprland/config/rules.nix | 8 ++++++- 4 files changed, 49 insertions(+), 23 deletions(-) diff --git a/packages/hypridle/home.nix b/packages/hypridle/home.nix index 27f8489..01ea574 100644 --- a/packages/hypridle/home.nix +++ b/packages/hypridle/home.nix @@ -9,25 +9,25 @@ }; listener = [ - { - timeout = 150; - on-timeout = "brightnessctl -s set 10"; # set monitor backlight to minimum, avoid 0 on OLED monitor. - on-resume = "brightnessctl -r"; # restore monitor backlight. - } - { - timeout = 150; - on-timeout = "brightnessctl -sd rgb:kbd_backlight set 0"; # turn off keyboard backlight. - on-resume = "brightnessctl -rd rgb:kbd_backlight"; # turn on keyboard backlight. - } - { - timeout = 300; - on-timeout = "loginctl lock-session"; # lock screen when timeout has passed. - } - { - timeout = 330; - on-timeout = "hyprctl dispatch dpms off"; # screen off after 5.5min. - on-resume = "hyprctl dispatch dpms on && brightnessctl -r"; # screen on and restore brightness on resume. - } + # { + # timeout = 150; + # on-timeout = "brightnessctl -s set 10"; # set monitor backlight to minimum, avoid 0 on OLED monitor. + # on-resume = "brightnessctl -r"; # restore monitor backlight. + # } + # { + # timeout = 150; + # on-timeout = "brightnessctl -sd rgb:kbd_backlight set 0"; # turn off keyboard backlight. + # on-resume = "brightnessctl -rd rgb:kbd_backlight"; # turn on keyboard backlight. + # } + # { + # timeout = 300; + # on-timeout = "loginctl lock-session"; # lock screen when timeout has passed. + # } + # { + # timeout = 330; + # on-timeout = "hyprctl dispatch dpms off"; # screen off after 5.5min. + # on-resume = "hyprctl dispatch dpms on && brightnessctl -r"; # screen on and restore brightness on resume. + # } { timeout = 500; on-timeout = "systemctl suspend"; # suspend PC after 30min. diff --git a/packages/hyprland/config/env.nix b/packages/hyprland/config/env.nix index ce98f35..263343a 100644 --- a/packages/hyprland/config/env.nix +++ b/packages/hyprland/config/env.nix @@ -8,6 +8,24 @@ env = [ "HYPRCURSOR_THEME, Bibata-Original-Classic" "HYPRCURSOR_SIZE, 24" + + "QT_QPA_PLATFORMTHEME, qt5ct" + "QT_WAYLAND_DISABLE_WINDOWDECORATION, 1" + "QT_AUTO_SCREEN_SCALE_FACTOR, 1" + "XCURSOR_THEME, sweet-rainbow" + "XCURSOR_SIZE, 24" + + "GDK_BACKEND, wayland,x11" + "QT_QPA_PLATFORM, wayland;xcb" + "SDL_VIDEODRIVER, wayland,x11" + "CLUTTER_BACKEND, wayland" + "ELECTRON_OZONE_PLATFORM_HINT, auto" + + "XDG_CURRENT_DESKTOP, Hyprland" + "XDG_SESSION_TYPE, wayland" + "XDG_SESSION_DESKTOP, Hyprland" + + "_JAVA_AWT_WM_NONREPARENTING, 1" ]; }; } diff --git a/packages/hyprland/config/execs.nix b/packages/hyprland/config/execs.nix index dc918b3..5e33252 100644 --- a/packages/hyprland/config/execs.nix +++ b/packages/hyprland/config/execs.nix @@ -6,9 +6,10 @@ }: { wayland.windowManager.hyprland.settings = { exec-once = [ + # "[workspace special:communication silent] discord" "[workspace special:steam silent] steam -start steam://open/bigpicture" - "[workspace 20 silent] kitty --single-instance --hold fastfetch" - "[workspace 20 silent] firefox" + "[workspace special:preload silent] kitty --single-instance --hold fastfetch" + "[workspace special:preload silent] firefox" "[workspace 1] kitty --single-instance --hold -e fish -C fastfetch" "hyprctl setcursor Bibata-Modern-Ice 24" @@ -16,10 +17,11 @@ "solaar -w hide" # "sunshine" # "moondeck-buddy" - "caelestia shell" "wl-paste --type text --watch cliphist store" "wl-paste --type image --watch cliphist store" + + "sleep 3 && caelestia shell" ]; }; } diff --git a/packages/hyprland/config/rules.nix b/packages/hyprland/config/rules.nix index 9684b5e..c9a38fe 100644 --- a/packages/hyprland/config/rules.nix +++ b/packages/hyprland/config/rules.nix @@ -44,7 +44,13 @@ "workspace special:music, initialTitle:Spotify( Free)?" "workspace special:communication, class:discord|equibop|vesktop|whatsapp" "workspace special:todo, class:Todoist" - "workspace special:gaming, class:^(steam_app_.*)$" + "workspace special:steam, class:^(steam_app_.*)$" + + "noinitialfocus, class:discord" + "focusonactivate 0, class:discord" + + # Always full screen + # "fullscreen, title:^(Steam Big Picture Mode)$" # Dialogs "float, title:(Select|Open)( a)? (File|Folder)(s)?"