Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Black screen in Apex Legends game window when changing focus. #6815

Closed
CocoJamb0O opened this issue Jul 8, 2024 · 2 comments
Closed

Black screen in Apex Legends game window when changing focus. #6815

CocoJamb0O opened this issue Jul 8, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@CocoJamb0O
Copy link

Regression?

No

System Info and Version

System/Version info
Hyprland, built from branch  at commit 9e781040d9067c2711ec2e9f5b47b76ef70762b3  (props: bump version to 0.41.1).
Date: Thu Jun 13 09:54:06 2024
Tag: v0.41.1, commits: 4818

flags: (if any)


System Information:
System name: Linux
Node name: Sharp
Release: 6.9.8-2-cachyos
Version: #1 SMP PREEMPT_DYNAMIC Fri, 05 Jul 2024 11:36:36 +0000


GPU information: 
03:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Navi 10 [Radeon RX 5600 OEM/5600 XT / 5700/5700 XT] [1002:731f] (rev c1) (prog-if 00 [VGA controller])


os-release: NAME="CachyOS Linux"
PRETTY_NAME="CachyOS"
ID=cachyos
ID_LIKE=arch
BUILD_ID=rolling
ANSI_COLOR="38;2;23;147;209"
HOME_URL="https://cachyos.org/"
DOCUMENTATION_URL="https://wiki.cachyos.org/"
SUPPORT_URL="https://forum.cachyos.org/"
BUG_REPORT_URL="https://github.com/cachyos"
PRIVACY_POLICY_URL="https://terms.archlinux.org/docs/privacy-policy/"
LOGO=cachyos


plugins:

======Config-Start======


Config File: $HOME/.config/hypr/hyprland.conf: Read Succeeded
# --------------------------------------------------------------------- 
# Monitor Setup
# See https://wiki.hyprland.org/Configuring/Monitors/
# --------------------------------------------------------------------- 
source = $HOME/.config/hypr/hyprland.conf.d/monitors.conf # Use nwg-displays
source = $HOME/.config/hypr/hyprland.conf.d/workspaces.conf # Use nwg-displays


# ---------------------------------------------------------------------
# Environment variables
# See https://wiki.hyprland.org/Configuring/Environment-variables
# ---------------------------------------------------------------------
source = $HOME/.config/hypr/hyprland.conf.d/environment.conf


# --------------------------------------------------------------------- 
# Pywal16 (Use before the "General" section)
# --------------------------------------------------------------------- 
#source = $HOME/.cache/wal/colors-hyprland.conf
source = $HOME/.config/hypr/hyprland.conf.d/material-colors-hyprland.conf

# --------------------------------------------------------------------- 
# General
# See https://wiki.hyprland.org/Configuring/Variables/#general
# --------------------------------------------------------------------- 
source = $HOME/.config/hypr/hyprland.conf.d/general.conf


# --------------------------------------------------------------------- 
# Decoration
# See https://wiki.hyprland.org/Configuring/Variables/#decoration
# ---------------------------------------------------------------------
source = $HOME/.config/hypr/hyprland.conf.d/decoration.conf


# --------------------------------------------------------------------- 
# Animations 
# See https://wiki.hyprland.org/Configuring/Variables/#animations
# ---------------------------------------------------------------------
source = $HOME/.config/hypr/hyprland.conf.d/animations.conf


# ---------------------------------------------------------------------
# Input
# See https://wiki.hyprland.org/Configuring/Variables/#input
# ---------------------------------------------------------------------
source = $HOME/.config/hypr/hyprland.conf.d/input.conf


# --------------------------------------------------------------------- 
# Gestures
# See https://wiki.hyprland.org/Configuring/Variables/#gestures
# ---------------------------------------------------------------------
source = $HOME/.config/hypr/hyprland.conf.d/gestures.conf


# --------------------------------------------------------------------- 
# Group
# See https://wiki.hyprland.org/Configuring/Variables/#group
# ---------------------------------------------------------------------
source = $HOME/.config/hypr/hyprland.conf.d/group.conf


# --------------------------------------------------------------------- 
# Misc
# See https://wiki.hyprland.org/Configuring/Variables/#misc
# ---------------------------------------------------------------------
source = $HOME/.config/hypr/hyprland.conf.d/misc.conf


# --------------------------------------------------------------------- 
# Binds
# See https://wiki.hyprland.org/Configuring/Variables/#binds
# ---------------------------------------------------------------------
source = $HOME/.config/hypr/hyprland.conf.d/binds.conf


# --------------------------------------------------------------------- 
# XWayland
# See https://wiki.hyprland.org/Configuring/Variables/#xwayland
# ---------------------------------------------------------------------
source = $HOME/.config/hypr/hyprland.conf.d/xwayland.conf


# --------------------------------------------------------------------- 
# OpenGL 
# See https://wiki.hyprland.org/Configuring/Variables/#opengl
# ---------------------------------------------------------------------
source = $HOME/.config/hypr/hyprland.conf.d/opengl.conf


# --------------------------------------------------------------------- 
# Dwindle Layout 
# See https://wiki.hyprland.org/Configuring/Dwindle-Layout/
# ---------------------------------------------------------------------
source = $HOME/.config/hypr/hyprland.conf.d/dwindle-layout.conf


# ---------------------------------------------------------------------
# Master-Layout
# See https://wiki.hyprland.org/Configuring/Master-Layout
# ---------------------------------------------------------------------
source = $HOME/.config/hypr/hyprland.conf.d/master-layout.conf


# --------------------------------------------------------------------- 
# Cursor 
# See https://wiki.hyprland.org/Configuring/Variables/#cursor
# ---------------------------------------------------------------------
source = $HOME/.config/hypr/hyprland.conf.d/cursor.conf


# --------------------------------------------------------------------- 
# Debug 
# See https://wiki.hyprland.org/Configuring/Variables/#debug
# ---------------------------------------------------------------------
source = $HOME/.config/hypr/hyprland.conf.d/debug.conf


# --------------------------------------------------------------------- 
# Load configuration files
# Source a file (multi-file configs)
# ---------------------------------------------------------------------
source = $HOME/.config/hypr/hyprland.conf.d/autostart.conf
source = $HOME/.config/hypr/hyprland.conf.d/window_rules.conf # Import before "key_bindings.conf"
source = $HOME/.config/hypr/hyprland.conf.d/key_bindings.conf
source = $HOME/.config/hypr/hyprland.conf.d/layer_rules.conf 
source = $HOME/.config/hypr/hyprcursor.conf # Hyprcursor themes

Config File: $HOME/.config/hypr/hyprland.conf.d/monitors.conf: Read Succeeded
# --------------------------------------------------------------------- 
# Monitor Setup
# See https://wiki.hyprland.org/Configuring/Monitors/
# --------------------------------------------------------------------- 
#monitor=,preferred,auto,1
#monitor = HDMI-A-2,1920x1080@143.981003,1920x0,1,vrr,1,bitdepth,10
monitor = DP-1,1920x1080@143.981003,1920x0,1,vrr,2,bitdepth,10
monitor = HDMI-A-2,1920x1080@60.0,0x0,1,vrr,0,bitdepth,8

exec-once = xrandr --output DP-1 --primary

Config File: $HOME/.config/hypr/hyprland.conf.d/workspaces.conf: Read Succeeded
workspace=1,monitor:HDMI-A-2 #-- "1"
workspace=2,monitor:HDMI-A-2 #-- "2"
workspace=3,monitor:HDMI-A-2 #-- "3"
workspace=4,monitor:DP-1,default:true #- "4"
workspace=5,monitor:DP-1 #- "5"
workspace=6,monitor:DP-1 #- "6"
workspace=7,monitor:DP-1 #- "7"
workspace=8,monitor:HDMI-A-2 #-- "8"
workspace=9,monitor:HDMI-A-2 #-- "9"
workspace=10,monitor:HDMI-A-2 #-- "10"
#workspace=11,monitor: # "Q"
#workspace=12,monitor: # "W"
workspace=13,monitor:DP-1 #- "E"
#workspace=14,monitor: # "R"
workspace=15,monitor:HDMI-A-2 #-- "T"
#workspace=16,monitor: # "Y"
#workspace=17,monitor: # "U"
#workspace=18,monitor: # "I"
#workspace=19,monitor: # "O"
workspace=20,monitor:DP-1  #-- "P"
#workspace=21,monitor: # "A"
workspace=22,monitor:DP-1 #- "S"
workspace=23,monitor:HDMI-A-2 #-- "D"
workspace=24,monitor:DP-1 #- "F"
workspace=25,monitor:DP-1 #- "G"
#workspace=26,monitor: # "H"
#workspace=27,monitor: # "J"
workspace=28,monitor:HDMI-A-2 #-- "K"
workspace=29,monitor:DP-1 #- "L"
#workspace=30,monitor: # "Z"
#workspace=31,monitor: # "X"
#workspace=32,monitor: # "C"
#workspace=33,monitor: # "V"
workspace=34,monitor:HDMI-A-2 #-- "B"
#workspace=35,monitor: # "N"
workspace=36,monitor:HDMI-A-2 #-- "M"

Config File: $HOME/.config/hypr/hyprland.conf.d/environment.conf: Read Succeeded
# ---------------------------------------------------------------------
# Environment variables
# See https://wiki.hyprland.org/Configuring/Environment-variables/
# ---------------------------------------------------------------------

# Where hyprshot saves screenshots
env = HYPRSHOT_DIR, $HOME/Pictures/Screenshots


# Sane default programs
env = SHELL, /usr/bin/zsh
env = TERM, /usr/bin/kitty
env = TERMINAL, /usr/bin/kitty
env = EDITOR, /usr/bin/nvim
env = SUDO_EDITOR, /usr/bin/vim
env = VISUAL, /usr/bin/nvim
env = BROWSER, /usr/bin/vivaldi-stable


# Xdg specification stuff
env = XDG_CURRENT_DESKTOP,Hyprland
env = XDG_SESSION_DESKTOP,Hyprland
env = XDG_SESSION_TYPE,wayland


# Application specific vars
env = ANKI_WAYLAND,1
env = OBSIDIAN_USE_WAYLAND,1
env = MOZ_ENABLE_WAYLAND,1
env = ELECTRON_OZONE_PLATFORM_HINT,auto # Electron 28 and higher


# Toolkit Backend Variables
env = GDK_BACKEND,wayland,x11,*
env = GDK_SCALE,1
env = CLUTTER_BACKEND,wayland # CLUTTER
env = SDL_VIDEODRIVER,wayland # SDL2


# QT
env = QT_AUTO_SCREEN_SCALE_FACTOR,1
env = QT_QPA_PLATFORM,wayland;xcb
env = QT_WAYLAND_DISABLE_WINDOWDECORATION,1
env = QT_QPA_PLATFORMTHEME,gtk2



# NVIDIA
#env = GBM_BACKEND,nvidia-drm
#env = __GLX_VENDOR_LIBRARY_NAME,nvidia
#env = LIBVA_DRIVER_NAME,nvidia
#env = __GL_GSYNC_ALLOWD,1
#env = __GL_VRR_ALLOWED,1
#env = WLR_NO_HARDWARE_CURSORS,1
#env = NVD_BACKEND,direct
# glfw-wayland (https://github.com/BoyOrigin/glfw-wayland)
#env = __GL_THREADED_OPTIMIZATIONS,0

Config File: $HOME/.config/hypr/hyprland.conf.d/material-colors-hyprland.conf: Read Succeeded
$primary = rgb(b5d086)
$on_primary = rgb(233600)

$primary_fixed = rgb(d1eca0)
$primary_fixed_dim = rgb(b5d086)
$on_primary_fixed = rgb(131f00)
$on_primary_fixed_variant = rgb(384d12)

$background = rgb(12140e)
$on_background = rgb(e3e3d8)

$shadow = rgb(000000)

Config File: $HOME/.config/hypr/hyprland.conf.d/general.conf: Read Succeeded
# --------------------------------------------------------------------- 
# General
# See https://wiki.hyprland.org/Configuring/Variables/#general
# ---------------------------------------------------------------------
general {
    border_size = 1
    no_border_on_floating = false
    gaps_in = 3
    gaps_out = 4
    gaps_workspaces = 0
    col.active_border = $primary_fixed 45deg
    col.inactive_border = rgba(59595900)
    col.nogroup_border = 
    col.nogroup_border_active = 
    layout = dwindle
    no_focus_fallback = false
    apply_sens_to_raw = false
    resize_on_border = true
    extend_border_grab_area = 15
    hover_icon_on_border = true
    allow_tearing = false
    resize_corner = 0
}

Config File: $HOME/.config/hypr/hyprland.conf.d/decoration.conf: Read Succeeded
# --------------------------------------------------------------------- 
# Decoration
# See https://wiki.hyprland.org/Configuring/Variables/#decoration
# ---------------------------------------------------------------------
decoration {
    rounding = 12
    active_opacity = 0.88
    inactive_opacity = 0.88
    fullscreen_opacity = 1.0
    drop_shadow = false
    shadow_range = 300
    shadow_render_power = 4
    shadow_ignore_window = false
    col.shadow = $shadow
    shadow_offset = 0 40
    shadow_scale = 0.9
    dim_inactive = false
    dim_strength = 0.5
    dim_special = 0.2
    dim_around = 0.4
    screen_shader = 
    
    blur {
        enabled = true
        size = 8
        passes = 1
        ignore_opacity = false
        new_optimizations = true
        xray = true
        noise = 0.0117
        contrast = 0.8916
        brightness = 0.8172
        vibrancy = 0.1696
        vibrancy_darkness = 0.0
        special = false
        popups = false
        popups_ignorealpha = 0.2
    }
}

Config File: $HOME/.config/hypr/hyprland.conf.d/animations.conf: Read Succeeded
# ---------------------------------------------------------------------
# Animations
# See https://wiki.hyprland.org/Configuring/Variables/#animations
# ---------------------------------------------------------------------
animations {
    enabled = yes
    first_launch_animation = true

    bezier = wind, 0.16, 1, 0.3, 1
    bezier = winIn, 0.16, 1, 0.3, 1
    bezier = winOut, 0.16, 1, 0.3, 1
    bezier = liner, 1, 1, 1, 1
    bezier = myBezier, 0.05, 0.9, 0.1, 1.0
    bezier = menu_decel, 0.1, 1, 0, 1
    bezier = menu_accel, 0.38, 0.04, 1, 0.07


    # windows
    animation = windows, 1, 6, winIn, slide
    animation = windowsOut, 1, 5, winOut, slide
    animation = windowsMove, 1, 5, wind, slide

    # layers
    animation = layersIn, 1, 6, menu_decel, slide
    animation = layersOut, 1, 6, winIn, slide

    # fade
    animation = fade, 1, 7, default
    #animation = fadeIn, 1, 6, wind, slide
    #animation = fadeOut, 1, 6, winIn, slide
    #animation = fadeSwitch, 1, 6, winIn, slide
    #animation = fadeShadow, 1, 6, winIn, slide
    #animation = fadeDim, 1, 6, winIn, slide
    #animation = fadeLayers, 1, 6, winIn, slide
    #animation = fadeLayersIn, 1, 6, winIn, slide
    #animation = fadeLayersOut, 1, 6, winIn, slide

    #animation = border, 1, 1, liner
    #animation = borderangle, 0, 8, default
    
    # workspaces
    animation = workspaces, 1, 6, wind, slidevert
    #animation = specialWorkspace, 1, 5, wind, slidevert
}

Config File: $HOME/.config/hypr/hyprland.conf.d/input.conf: Read Succeeded
# ---------------------------------------------------------------------
# Input
# See https://wiki.hyprland.org/Configuring/Variables/#input
# ---------------------------------------------------------------------
input {
    # KEYBOARD
    kb_model =
    kb_variant =
    kb_layout = us, ru, ua
    kb_options = grp:lalt_lshift_toggle
    kb_rules =
    kb_file =
    numlock_by_default = false
    resolve_binds_by_sym = false
    repeat_rate	= 25
    repeat_delay = 600
    
    # MOUSE
    sensitivity = 0.9
    accel_profile = flat
    force_no_accel = false
    left_handed = false
    scroll_points =
    scroll_method =
    scroll_button = 0
    scroll_button_lock = 0
    scroll_factor = 1.0
    natural_scroll = false
    follow_mouse = 1
    mouse_refocus = true
    float_switch_override_focus = 1
    special_fallthrough = false

    touchpad {
        disable_while_typing = true
        natural_scroll = no
        scroll_factor = 1.0
        middle_button_emulation	= false
        tap_button_map = 
        clickfinger_behavior = false
        tap-to-click = true
        drag_lock = false
        tap-and-drag = false
    }

    touchdevice {
        transform = 0
        output = 
        enabled = true
    }

    tablet {
        transform = 0
        output =
        relative_input = false
        left_handed = false
    }
}

# ---------------------------------------------------------------------
# Example per-device config
# See https://wiki.hyprland.org/Configuring/Keywords/#executing for more
# ---------------------------------------------------------------------
device {

}

Config File: $HOME/.config/hypr/hyprland.conf.d/gestures.conf: Read Succeeded
# --------------------------------------------------------------------- 
# Gestures
# See https://wiki.hyprland.org/Configuring/Variables/#gestures
# ---------------------------------------------------------------------
gestures {
    workspace_swipe = false
    workspace_swipe_fingers = 3
    workspace_swipe_distance = 300
    workspace_swipe_touch = false
    workspace_swipe_invert = true
    workspace_swipe_min_speed_to_force = 30
    workspace_swipe_cancel_ratio = 0.5
    workspace_swipe_create_new = true
    workspace_swipe_direction_lock = true
    workspace_swipe_direction_lock_threshold = 10
    workspace_swipe_forever = false
    workspace_swipe_use_r = false
}

Config File: $HOME/.config/hypr/hyprland.conf.d/group.conf: Read Succeeded
# --------------------------------------------------------------------- 
# Group
# See https://wiki.hyprland.org/Configuring/Variables/#group
# ---------------------------------------------------------------------
group {
    col.border_active = $primary_fixed
    col.border_inactive =
    col.border_locked_active = $primary_fixed
    col.border_locked_inactive =

    groupbar {
        enabled = true
        font_family = Cantarell
        font_size = 10
        gradients = true
        height = 12
        priority = 3
        render_titles = true
        scrolling = true
        text_color = $on_primary_fixed
        col.active = $primary_fixed
        col.inactive = $surface
        col.locked_active = $primary_fixed_dim
        col.locked_inactive =
    }
}

Config File: $HOME/.config/hypr/hyprland.conf.d/misc.conf: Read Succeeded
# --------------------------------------------------------------------- 
# Misc
# See https://wiki.hyprland.org/Configuring/Variables/#misc
# ---------------------------------------------------------------------
misc {
    disable_hyprland_logo = true
    disable_splash_rendering= false
    col.splash = 0xffffffff
    splash_font_family = Cantarell
    force_default_wallpaper = -1
    vfr = true
    vrr = 2
    mouse_move_enables_dpms = true
    key_press_enables_dpms = false
    always_follow_on_dnd = true
    layers_hog_keyboard_focus = true
    animate_manual_resizes = false
    animate_mouse_windowdragging = false
    disable_autoreload = true
    enable_swallow = false
    swallow_regex =
    swallow_exception_regex =
    focus_on_activate = false
    no_direct_scanout = false
    mouse_move_focuses_monitor = true
    render_ahead_of_time = false
    render_ahead_safezone = 1
    allow_session_lock_restore = true
    background_color = $background
    close_special_on_empty = true
    new_window_takes_over_fullscreen = 0
    initial_workspace_tracking	= 1
}


Config File: $HOME/.config/hypr/hyprland.conf.d/binds.conf: Read Succeeded
# --------------------------------------------------------------------- 
# Binds
# See https://wiki.hyprland.org/Configuring/Variables/#binds
# ---------------------------------------------------------------------
binds {
    pass_mouse_when_bound = true
    scroll_event_delay = 300
    workspace_back_and_forth = false
    allow_workspace_cycles = false
    workspace_center_on = 0
    focus_preferred_method = 0
    ignore_group_lock =	false
    movefocus_cycles_fullscreen = true
    disable_keybind_grabbing = false
}

Config File: $HOME/.config/hypr/hyprland.conf.d/xwayland.conf: Read Succeeded
# --------------------------------------------------------------------- 
# XWayland
# See https://wiki.hyprland.org/Configuring/Variables/#xwayland
# ---------------------------------------------------------------------
xwayland {
    use_nearest_neighbor = true
    force_zero_scaling = false
}

Config File: $HOME/.config/hypr/hyprland.conf.d/opengl.conf: Read Succeeded
# --------------------------------------------------------------------- 
# OpenGL 
# See https://wiki.hyprland.org/Configuring/Variables/#opengl
# ---------------------------------------------------------------------
opengl {
    nvidia_anti_flicker = false
    force_introspection = 2
}

Config File: $HOME/.config/hypr/hyprland.conf.d/dwindle-layout.conf: Read Succeeded
# --------------------------------------------------------------------- 
# Dwindle Layout 
# See https://wiki.hyprland.org/Configuring/Dwindle-Layout/
# ---------------------------------------------------------------------
dwindle {
    pseudotile = false
    force_split =  1
    preserve_split = false
    smart_split = false
    smart_resizing = true
    permanent_direction_override = false
    special_scale_factor = 1
    split_width_multiplier = 1.0
    no_gaps_when_only = 0
    use_active_for_splits = true
    default_split_ratio = 0.8
}

Config File: $HOME/.config/hypr/hyprland.conf.d/master-layout.conf: Read Succeeded
# ---------------------------------------------------------------------
# Master-Layout
# See https://wiki.hyprland.org/Configuring/Master-Layout
# ---------------------------------------------------------------------
master {
    allow_small_split = true
    special_scale_factor = 1
    mfact = 0.5
    new_on_top = false
    orientation = left
    inherit_fullscreen = false
    always_center_master = true
    drop_at_cursor = false
}

Config File: $HOME/.config/hypr/hyprland.conf.d/cursor.conf: Read Succeeded
# --------------------------------------------------------------------- 
# Cursor 
# See https://wiki.hyprland.org/Configuring/Variables/#cursor
# ---------------------------------------------------------------------
cursor {
    no_hardware_cursors = true
#    no_break_fs_vrr = true
#    min_refresh_rate = 0
    enable_hyprcursor = true
}

Config File: $HOME/.config/hypr/hyprland.conf.d/debug.conf: Read Succeeded
# --------------------------------------------------------------------- 
# Debug 
# See https://wiki.hyprland.org/Configuring/Variables/#debug
# ---------------------------------------------------------------------
debug {
    overlay = false
    damage_blink = false
    disable_logs = true
    disable_time = true
    damage_tracking = 2
    enable_stdout_logs = false
    manual_crash = 0
    suppress_errors = false
    watchdog_timeout = 5
    disable_scale_checks = false
    error_limit = 5
    colored_stdout_logs	= true
}

Config File: $HOME/.config/hypr/hyprland.conf.d/autostart.conf: Read Succeeded
# ---------------------------------------------------------------------
# Executing
# See https://wiki.hyprland.org/Configuring/Keywords/#executing
# ---------------------------------------------------------------------
exec-once = $HOME/.config/hypr/hyprland/scripts/resetxdgportal.sh # reset XDPH for screenshare
exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP # for XDPH
exec-once = dbus-update-activation-environment --systemd --all # for XDPH
exec-once = systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP # for XDPH
exec-once = /usr/lib/polkit-kde-authentication-agent-1 # authentication dialogue for GUI apps
exec-once = /usr/bin/hyprland-per-window-layout # yay -Sy hyprland-per-window-layout
#exec-once = RUST_LOG='debug' /usr/bin/hyprland-per-window-layout > /tmp/hyprland-per-window-layout.log 2>&1
exec-once = waybar # launch the system panel
exec-once = $HOME/.config/swww/scripts/swww_wallpaper.sh -a # start wallpaper daemon
exec-once = $HOME/.config/hypr/hyprland/scripts/batterynotify.sh # battery notification
exec-once = hypridle # hypridle is hyprland’s idle management daemon.
exec-once = swaync # start notification demon
exec-once = wl-paste --watch cliphist store # clipboard store


Config File: $HOME/.config/hypr/hyprland.conf.d/window_rules.conf: Read Succeeded
# Example windowrule v1
# windowrule = float, ^(kitty)$
# Example windowrule v2
# windowrulev2 = float,class:^(kitty)$,title:^(kitty)$
# See https://wiki.hyprland.org/Configuring/Window-Rules/ for more
# ---------------------------------------------------------------------


# ---------------------------------------------------------------------
# GTK/QT
# ---------------------------------------------------------------------

# Nwg-Look (GTK3 settings editor)
windowrulev2 = float,class:^(nwg-look)$

# Qt5 Configuration Tool
windowrulev2 = float,class:^(qt5ct)$


# ---------------------------------------------------------------------
# File manager
# ---------------------------------------------------------------------
$files_w = workspace 24 # workspace "F"

# Dolphin
$Dolphin = class:^(org.kde.dolphin)&
windowrulev2 = float,title:^(Moving.*)$,$Dolphin
windowrulev2 = $files_w, $Dolphin

# ARK (KDE Archiving tool)
windowrulev2 = float,class:^(org.kde.ark)$

# Nautilus
$Nautilus = class:^(org.gnome.Nautilus)$
windowrulev2 = $files_w, $Nautilus


# ---------------------------------------------------------------------
# Editors
# ---------------------------------------------------------------------
$editors_w = workspace 13 # workspace "E"

# VSCODE
$VSCODE = class:^(code-url-handler)$
windowrulev2 = $editors_w, $VSCODE

# ---------------------------------------------------------------------
# Torrent
# ---------------------------------------------------------------------

# qBittorrent
$torrent = class:^(org.qbittorrent.qBittorrent)$
windowrulev2 = float,title:^(Magnet link)$,$torrent
#windowrulev2 = size 80%,title:^(Magnet link)$,$torrent 


# ---------------------------------------------------------------------
# NETWORK
# ---------------------------------------------------------------------

# NETWORKMANAGER (nmcli status)
$nmcli=title:^(nmcli)$

windowrulev2 = float,$nmcli,class:^(kitty)$
windowrulev2 = center,$nmcli,class:^(kitty)$
#windowrulev2 = size 75% 92%,$nmcli,class:^(kitty)$

# NETWORKMANAGER applet
windowrulev2 = float,class:^(nm-.*)$


# ---------------------------------------------------------------------
# Mixer and Bluetooth
# ---------------------------------------------------------------------

# Pavucontrol (Simple GTK volume control tool ("mixer") for PulseAudio.)
$mixer=class:^(pavucontrol)$

windowrulev2 = float,$mixer
windowrulev2 = center,$mixer
#windowrulev2 = size 75% 92%,$mixer

# Blueman (GTK+ Bluetooth Manager)
$bluetooth=class:^(blueman-manager)$

windowrulev2 = float,$bluetooth
windowrulev2 = center,$bluetooth
#windowrulev2 = size 75% 92%,$bluetooth
# Bluetoothctl
$bluetoothctl=title:^(bluetoothctl)$

windowrulev2 = float,$bluetoothctl,class:^(kitty)$
windowrulev2 = center,$bluetoothctl,class:^(kitty)$
#windowrulev2 = size 75% 92%,$bluetoothctl,class:^(kitty)$


# ---------------------------------------------------------------------
# Download manager
# ---------------------------------------------------------------------

# uGet
windowrulev2 = float,title:^(uGet - New Download)$,class:^(.*uget.*)$
#windowrulev2 = size 60% 50%,title:^(uGet - New Download)$,class:^(.*uget.*)$


# ---------------------------------------------------------------------
# xdg-desktop-portal-gtk
# ---------------------------------------------------------------------
$xdg-gtk = class:^(xdg-desktop-portal-gtk)$
windowrulev2 = float,$xdg-gtk 


# ---------------------------------------------------------------------
# AUTH AGENT
# ---------------------------------------------------------------------

# KDE Authentication Agent
$autag = class:^(org.kde.polkit-kde-authentication-agent-1)$
windowrulev2 = float,$autag 
windowrulev2 = center,$autag 
windowrulev2 = size 40%,$autag 


# ---------------------------------------------------------------------
# Password manager
# ---------------------------------------------------------------------
$passmanager_w = workspace 28 # workspace "K"

# KeepassXC
$keepassxc = class:^(org.keepassxc.KeePassXC|keepassxc)$

windowrulev2 = $passmanager_w,$keepassxc
windowrulev2 = workspace,title:^(KeePassXC - Browser Access Request)$,$keepassxc


# ---------------------------------------------------------------------
# Messengers
# ---------------------------------------------------------------------
$messenger_w = workspace 15 # workspace "T"

# Telegram
$Telegram = class:^(com.ayugram.desktop|org.telegram.desktop|com.telegram.desktop)$
windowrulev2 = $messenger_w,$Telegram


# ---------------------------------------------------------------------
# Music
# ---------------------------------------------------------------------
$music_w = workspace 36 # workspace "M"

# SPOTUBE
$spotube = class:^(spotube)$
windowrulev2 = $music_w,$spotube


# ---------------------------------------------------------------------
# BROWSERS
# ---------------------------------------------------------------------
$browsers_workspace = workspace 34 # workspace "B"
$browsers_opacity = opacity 0.95 override 0.95 override 1
$browsers_private = workspace 20 # workspace "P" 

# PIP SETTINGS
$PIP_size = size 35% 35%
$PIP_position = move 100%-38% 100%-40%
$PIP_opacity = opacity 1 override 1 override 1
$PIP_monitor = monitor 1


# Firefox
$firefox = class:^(.*firefox.*)$
windowrulev2 = $browsers_workspace,$firefox
windowrulev2 = $browsers_opacity,$firefox
# Firefox PIP
$PIPFT = title:^(Firefox|Picture-in-Picture)$
windowrulev2 = fakefullscreen,$PIPFT,$firefox
windowrulev2 = $PIP_monitor,$PIPFT,$firefox
windowrulev2 = noinitialfocus,$PIPFT,$firefox
windowrulev2 = $PIP_size,$PIPFT,$firefox
windowrulev2 = float,$PIPFT,$firefox
windowrulev2 = $PIP_position,$PIPFT,$firefox
windowrulev2 = $PIP_opacity,$PIPFT,$firefox
windowrulev2 = pin,$PIPFT,$firefox


# Vivaldi
$vivaldi = class:^(vivaldi-stable)$
$vivaldi_other = title:^(Vivaldi Settings.*|.*Vivaldi:.*|Vivaldi-Einstellungen.*)$
windowrulev2 = $browsers_workspace,$vivaldi
windowrulev2 = tile,$vivaldi
windowrulev2 = $browsers_opacity,$vivaldi
windowrulev2 = float,$vivaldi_other,$vivaldi
windowrulev2 = center,$vivaldi_other,$vivaldi
# Vivaldi incognito
#$vivaldi_incognito = title:^()$
#windowrulev2 = $browsers_private, $vivaldi_incognito

# PIP
$PIPV = title:^(Picture in picture|Картинка в картинке|Bild-in-Bild)$
windowrulev2 = $PIP_monitor,$PIPV
windowrulev2 = noinitialfocus,$PIPV
windowrulev2 = $PIP_size,$PIPV
windowrulev2 = float,$PIPV
windowrulev2 = $PIP_position,$PIPV
windowrulev2 = $PIP_opacity,$PIPV
windowrulev2 = pin,$PIPV


# ---------------------------------------------------------------------
# Video Players
# ---------------------------------------------------------------------
$mpv = class:^(mpv)$

#windowrulev2 = fakefullscreen,title:^(svp)$,$mpv
windowrulev2 = $PIP_monitor,title:^(svp)$,$mpv
windowrulev2 = $PIP_size,title:^(svp)$,$mpv
windowrulev2 = float,title:^(svp)$,$mpv
windowrulev2 = $PIP_position,title:^(svp)$,$mpv


windowrulev2 = float,class:^(eog)$ #Imageviewer-Gtk


# ---------------------------------------------------------------------
# Discord
# ---------------------------------------------------------------------
$discord_w = workspace 23 # workspace "D"

$Discord = class:^(vesktop|discord)$
windowrulev2 = $discord_w,$Discord


# ---------------------------------------------------------------------
# XWayland Screensharing
# ---------------------------------------------------------------------
windowrulev2 = opacity 0.0 override 0.0 override,class:^(xwaylandvideobridge)$
windowrulev2 = noanim,class:^(xwaylandvideobridge)$
windowrulev2 = noinitialfocus,class:^(xwaylandvideobridge)$
windowrulev2 = maxsize 1 1,class:^(xwaylandvideobridge)$
windowrulev2 = noblur,class:^(xwaylandvideobridge)$


# ---------------------------------------------------------------------
# GAMES
# ---------------------------------------------------------------------
$steam_w = workspace 22 silent # workspace "S"
$egs_w = workspace 22 silent # workspace "S"
$lutris_w = workspace 29 silent # workspace "L"
$games_w = workspace 25 # workspace "G"

# WIN
$games = class:^(.*exe)$
windowrulev2 = $games_w,$games

# STEAM
$steam = class:^(steam)$
windowrulev2 = $steam_w,$steam
#windowrulev2 = tile,title:^(Friends List)$,$steam
#windowrulev2 = minsize 1 1,$steam
windowrulev2 = $games_w,class:^(.*steam_app.*)$ # and windows apps
#windowrulev2 = stayfocused, title:^()$,class:^(steam)$
windowrulev2 = minsize 1 1, title:^()$,$steam

# STEAM (WIN)
$steam_win = class:^(steamwebhelper.exe)$
$steam_win2 = class:^(Steam.exe)$
windowrulev2 = unset,$steam_win
windowrulev2 = unset,$steam_win2
windowrulev2 = unset,$steam_win
windowrulev2 = unset,$steam_win2

# Lutris
$lutris = class:^(lutris)
windowrulev2 = $lutris_w,$lutris

# GAMESCOPE 
$gamescope = class:^(gamescope)$
windowrulev2 = $games_w,$gamescope
windowrulev2 = fullscreen,$gamescope

# EGS
$EGS = class:^(epicgameslauncher.exe)$
windowrulev2 = $egs_w,$EGS
windowrulev2 = tile,$EGS

# OTHER (NATIVE)
windowrulev2 = $games_w,class:^(Loading.*)$
windowrulev2 = $games_w,class:^(cs2)$
windowrulev2 = $games_w,class:^(hl_linux)$
windowrulev2 = fullscreen,class:^(hl_linux)$
windowrulev2 = fullscreen,class:^(steam_app_1238860)$
windowrulev2 = fullscreen,class:^(Terraria.bin.x86_64)$

Config File: $HOME/.config/hypr/hyprland.conf.d/key_bindings.conf: Read Succeeded
# -----------------------------------------------------------
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
#
#
# APPS VAR
#
# check $HOME/.config/hypr/hyprland.conf.d/environment.conf
# -----------------------------------------------------------


# Switch focus to an existing program instance, otherwise create a program instance.
$appFocus = $HOME/.config/hypr/hyprland.conf.d/scripts/appFocus.sh 
$screenShot = $HOME/.config/hypr/hyprland.conf.d/scripts/screenshot.sh # Used: $windowManMod, $windowManMod3, $systemAppMod


$mainMod = SUPER

# -----------------------------------------------------------
# Window management
# -----------------------------------------------------------
$windowManMod = $mainMod

#bind = $windowManMod, ESCAPE, exec, #
#bind = $windowManMod, F1, exec,  #
#bind = $windowManMod, F2, exec,  #
#bind = $windowManMod, F3, exec,  #
#bind = $windowManMod, F4, exec,  #
#bind = $windowManMod, F5, exec,  #
#bind = $windowManMod, F6, exec,  #
#bind = $windowManMod, F7, exec,  #
#bind = $windowManMod, F8, exec,  #
#bind = $windowManMod, F9, exec,  #
#bind = $windowManMod, F10, exec,  #
#bind = $windowManMod, F11, exec,  #
#bind = $windowManMod, F12, exec,  #
#bind = $windowManMod, F12, exec,  #
bind = $windowManMod, Print, exec, $screenShot p # print current screen
#bind = $windowManMod, Scroll_Lock, exec,  #
#bind = $windowManMod, Pause, exec,  #
#bind = $windowManMod, `, exec,  #
bind = $windowManMod, 1, workspace, 1 #------ Switch workspace
bind = $windowManMod, 2, workspace, 2 #------ Switch workspace
bind = $windowManMod, 3, workspace, 3 #------ Switch workspace
bind = $windowManMod, 4, workspace, 4 #------ Switch workspace
bind = $windowManMod, 5, workspace, 5 #------ Switch workspace
bind = $windowManMod, 6, workspace, 6 #------ Switch workspace
bind = $windowManMod, 7, workspace, 7 #------ Switch workspace
bind = $windowManMod, 8, workspace, 8 #------ Switch workspace
bind = $windowManMod, 9, workspace, 9 #------ Switch workspace
bind = $windowManMod, 0, workspace, 10 #------ Switch workspace
#bind = $windowManMod, -, exec,  #
#bind = $windowManMod, =, exec,  #
#bind = $windowManMod, BackSpace, exec,  #
#bind = $windowManMod, Insert, exec,  #
#bind = $windowManMod, Home, exec,  #
#bind = $windowManMod, Prior, exec,  #
#bind = $windowManMod, Tab, exec,  #
bind = $windowManMod, Q, workspace, 11 #------ Switch workspace
bind = $windowManMod, W, workspace, 12 #------ Switch workspace
bind = $windowManMod, E, workspace, 13 #------ Switch workspace
bind = $windowManMod, R, workspace, 14 #------ Switch workspace
bind = $windowManMod, T, workspace, 15 #------ Switch workspace
bind = $windowManMod, Y, workspace, 16 #------ Switch workspace
bind = $windowManMod, U, workspace, 17 #------ Switch workspace
bind = $windowManMod, I, workspace, 18 #------ Switch workspace
bind = $windowManMod, O, workspace, 10 #------ Switch workspace
bind = $windowManMod, P, workspace, 20 #------ Switch workspace
#bind = $windowManMod, bracketleft, exec,  #
#bind = $windowManMod, bracketright, exec,  #
#bind = $windowManMod, backslash, exec,  #
#bind = $windowManMod, Delete, exec,  #
#bind = $windowManMod, End, exec,  #
#bind = $windowManMod, Next, exec,  #
#bind = $windowManMod, Caps_Lock, exec,  #
bind = $windowManMod, A, workspace, 21 #------ Switch workspace
bind = $windowManMod, S, workspace, 22 #------ Switch workspace
bind = $windowManMod, D, workspace, 23 #------ Switch workspace
bind = $windowManMod, F, workspace, 24 #------ Switch workspace
bind = $windowManMod, G, workspace, 25 #------ Switch workspace
bind = $windowManMod, H, workspace, 26 #------ Switch workspace
bind = $windowManMod, J, workspace, 27 #------ Switch workspace
bind = $windowManMod, K, workspace, 28 #------ Switch workspace
bind = $windowManMod, L, workspace, 29 #------ Switch workspace
#bind = $windowManMod, semicolon, exec,  #
#bind = $windowManMod, apostrophe, exec,  #
#bind = $windowManMod, Return, exec,  #
#bind = $windowManMod, Super_L, exec,  #
#bind = $windowManMod, Shift_L, exec,  #
bind = $windowManMod, Z, workspace, 30 #------ Switch workspace
bind = $windowManMod, X, workspace, 31 #------ Switch workspace
bind = $windowManMod, C, workspace, 32 #------ Switch workspace
bind = $windowManMod, V, workspace, 33 #------ Switch workspace
bind = $windowManMod, B, workspace, 34 #------ Switch workspace
bind = $windowManMod, N, workspace, 35 #------ Switch workspace
bind = $windowManMod, M, workspace, 36 #------ Switch workspace
#bind = $windowManMod, comma, exec,  #
#bind = $windowManMod, period, exec,  #
#bind = $windowManMod, slash, exec,  #
#bind = $windowManMod, Shift_R, exec,  #
bind = $windowManMod, Up, movefocus, u #------ Move focus
bind = $windowManMod, Left, movefocus, l #------ Move focus
bind = $windowManMod, Down, movefocus, d #------ Move focus
bind = $windowManMod, Right, movefocus, r #------ Move focus
bind = ALT_L, Tab, movefocus, d #------ Move focus
bindm = $windowManMod, mouse:272, movewindow # Move/Resize windows with mainMod + LMB/RMB and dragging
bindm = $windowManMod, mouse:273, resizewindow # Move/Resize windows with mainMod + LMB/RMB and dragging


# -----------------------------------------------------------
# Window management 2
# -----------------------------------------------------------
$windowManMod2 = $mainMod Control_L

#bind = $windowManMod2, ESCAPE, exec, #
#bind = $windowManMod2, F1, exec,  #
#bind = $windowManMod2, F2, exec,  #
#bind = $windowManMod2, F3, exec,  #
#bind = $windowManMod2, F4, exec,  #
#bind = $windowManMod2, F5, exec,  #
#bind = $windowManMod2, F6, exec,  #
#bind = $windowManMod2, F7, exec,  #
#bind = $windowManMod2, F8, exec,  #
#bind = $windowManMod2, F9, exec,  #
#bind = $windowManMod2, F10, exec,  #
#bind = $windowManMod2, F11, exec,  #
#bind = $windowManMod2, F12, exec,  #
#bind = $windowManMod2, F12, exec,  #
#bind = $windowManMod2, Print, exec,  #
#bind = $windowManMod2, Scroll_Lock, exec,  #
#bind = $windowManMod2, Pause, exec,  #
#bind = $windowManMod2, `, exec,  #
bind = $windowManMod2, 1, movetoworkspace, 1 #------ Move active window to a workspace
bind = $windowManMod2, 2, movetoworkspace, 2 #------ Move active window to a workspace
bind = $windowManMod2, 3, movetoworkspace, 3 #------ Move active window to a workspace
bind = $windowManMod2, 4, movetoworkspace, 4 #------ Move active window to a workspace
bind = $windowManMod2, 5, movetoworkspace, 5 #------ Move active window to a workspace
bind = $windowManMod2, 6, movetoworkspace, 6 #------ Move active window to a workspace
bind = $windowManMod2, 7, movetoworkspace, 7 #------ Move active window to a workspace
bind = $windowManMod2, 8, movetoworkspace, 8 #------ Move active window to a workspace
bind = $windowManMod2, 9, movetoworkspace, 9 #------ Move active window to a workspace
bind = $windowManMod2, 0, movetoworkspace, 10 #------ Move active window to a workspace
#bind = $windowManMod2, -, exec,  #
#bind = $windowManMod2, =, exec,  #
#bind = $windowManMod2, BackSpace, exec,  #
#bind = $windowManMod2, Insert, exec,  #
#bind = $windowManMod2, Home, exec,  #
#bind = $windowManMod2, Prior, exec,  #
#bind = $windowManMod2, Tab, exec,  #
bind = $windowManMod2, Q, movetoworkspace, 11 #------ Move active window to a workspace
bind = $windowManMod2, W, movetoworkspace, 12 #------ Move active window to a workspace
bind = $windowManMod2, E, movetoworkspace, 13 #------ Move active window to a workspace
bind = $windowManMod2, R, movetoworkspace, 14 #------ Move active window to a workspace
bind = $windowManMod2, T, movetoworkspace, 15 #------ Move active window to a workspace
bind = $windowManMod2, Y, movetoworkspace, 16 #------ Move active window to a workspace
bind = $windowManMod2, U, movetoworkspace, 17 #------ Move active window to a workspace
bind = $windowManMod2, I, movetoworkspace, 18 #------ Move active window to a workspace
bind = $windowManMod2, O, movetoworkspace, 10 #------ Move active window to a workspace
bind = $windowManMod2, P, movetoworkspace, 20 #------ Move active window to a workspace
#bind = $windowManMod2, bracketleft, exec,  #
#bind = $windowManMod2, bracketright, exec,  #
#bind = $windowManMod2, backslash, exec,  #
#bind = $windowManMod2, Delete, exec,  #
#bind = $windowManMod2, End, exec,  #
#bind = $windowManMod2, Next, exec,  #
#bind = $windowManMod2, Caps_Lock, exec,  #
bind = $windowManMod2, A, movetoworkspace, 21 #------ Move active window to a workspace
bind = $windowManMod2, S, movetoworkspace, 22 #------ Move active window to a workspace
bind = $windowManMod2, D, movetoworkspace, 23 #------ Move active window to a workspace
bind = $windowManMod2, F, movetoworkspace, 24 #------ Move active window to a workspace
bind = $windowManMod2, G, movetoworkspace, 25 #------ Move active window to a workspace
bind = $windowManMod2, H, movetoworkspace, 26 #------ Move active window to a workspace
bind = $windowManMod2, J, movetoworkspace, 27 #------ Move active window to a workspace
bind = $windowManMod2, K, movetoworkspace, 28 #------ Move active window to a workspace
bind = $windowManMod2, L, movetoworkspace, 29 #------ Move active window to a workspace
#bind = $windowManMod2, semicolon, exec,  #
#bind = $windowManMod2, apostrophe, exec,  #
#bind = $windowManMod2, Return, exec,  #
#bind = $windowManMod2, Super_L, exec,  #
#bind = $windowManMod2, Shift_L, exec,  #
bind = $windowManMod2, Z, movetoworkspace, 30 #------ Move active window to a workspace
bind = $windowManMod2, X, movetoworkspace, 31 #------ Move active window to a workspace
bind = $windowManMod2, C, movetoworkspace, 32 #------ Move active window to a workspace
bind = $windowManMod2, V, movetoworkspace, 33 #------ Move active window to a workspace
bind = $windowManMod2, B, movetoworkspace, 34 #------ Move active window to a workspace
bind = $windowManMod2, N, movetoworkspace, 35 #------ Move active window to a workspace
bind = $windowManMod2, M, movetoworkspace, 36 #------ Move active window to a workspace
#bind = $windowManMod2, comma, exec,  #
#bind = $windowManMod2, period, exec,  #
#bind = $windowManMod2, slash, exec,  #
#bind = $windowManMod2, Shift_R, exec,  #
#bind = $windowManMod2, Up, exec, #
#bind = $windowManMod2, Left, exec, #
#bind = $windowManMod2, Down, exec, #
#bind = $windowManMod2, Right, exec, #


# -----------------------------------------------------------
# Window management 3
# -----------------------------------------------------------
$windowManMod3 = $mainMod Shift_L

#bind = $windowManMod3, ESCAPE, exec, #
#bind = $windowManMod3, F1, exec,  #
#bind = $windowManMod3, F2, exec,  #
#bind = $windowManMod3, F3, exec,  #
#bind = $windowManMod3, F4, exec,  #
#bind = $windowManMod3, F5, exec,  #
#bind = $windowManMod3, F6, exec,  #
#bind = $windowManMod3, F7, exec,  #
#bind = $windowManMod3, F8, exec,  #
#bind = $windowManMod3, F9, exec,  #
#bind = $windowManMod3, F10, exec,  #
#bind = $windowManMod3, F11, exec,  #
#bind = $windowManMod3, F12, exec,  #
#bind = $windowManMod3, F12, exec,  #
#bind = $windowManMod3, Print, exec,  #
#bind = $windowManMod3, Scroll_Lock, exec,  #
#bind = $windowManMod3, Pause, exec,  #
#bind = $windowManMod3, `, exec,  #
#bind = $windowManMod3, 1, exec #
#bind = $windowManMod3, 2, exec #
#bind = $windowManMod3, 3, exec #
#bind = $windowManMod3, 4, exec #
#bind = $windowManMod3, 5, exec, #
#bind = $windowManMod3, 6, exec,  #
#bind = $windowManMod3, 7, exec,  #
#bind = $windowManMod3, 8, exec,  #
#bind = $windowManMod3, 9, exec, #
#bind = $windowManMod3, 0, exec, #
#bind = $windowManMod3, -, exec,  #
#bind = $windowManMod3, =, exec,  #
#bind = $windowManMod3, BackSpace, exec,  #
#bind = $windowManMod3, Insert, exec,  #
#bind = $windowManMod3, Home, exec,  #
#bind = $windowManMod3, Prior, exec,  #
bind = $windowManMod3, Tab, exec, pkill rofi || $HOME/.config/rofi/scripts/rofilaunch.sh w # Switch between desktop applications
bind = $windowManMod3, Q, killactive # Killactive, kill the window on focus
bind = $windowManMod3, W, exec, pkill rofi || $HOME/.config/rofi/scripts/rofi_swww_wallselect.sh # Rofi wall select menu
#bind = $windowManMod3, E, exec,  #
bind = $windowManMod3, R, exec, pkill rofi || $HOME/.config/rofi/scripts/rofiselect.sh # Rofi style select menu
#bind = $windowManMod3, T, exec,  #
#bind = $windowManMod3, Y, exec,  #
#bind = $windowManMod3, U, exec,  #
#bind = $windowManMod3, I, exec,  #
#bind = $windowManMod3, O, exec,  #
#bind = $windowManMod3, P, exec,  #
#bind = $windowManMod3, bracketleft, exec,  #
#bind = $windowManMod3, bracketright, exec,  #
#bind = $windowManMod3, backslash, exec,  #
#bind = $windowManMod3, Delete, exec,  #
#bind = $windowManMod3, End, exec,  #
#bind = $windowManMod3, Next, exec,  #
#bind = $windowManMod3, Caps_Lock, exec,  #
bind = $windowManMod3, A, exec, pkill rofi || $HOME/.config/rofi/scripts/rofilaunch.sh d # Launch desktop applications
bind = $windowManMod3, S, exec, $screenShot s # Screenshot snip
bind = $windowManMod3, D, exec, $screenShot m  # print current screen 
#bind = $wwindowManMod3 D, exec #
bind = $windowManMod3, F, togglefloating, # Toggle the window on focus to float
bind = $windowManMod3, G, togglegroup, # Toggle the window on focus to float
#bind = $windowManMod3, H, exec,  #
#bind = $windowManMod3, J, exec,  #
#bind = $windowManMod3, K, exec,  #
bind = $windowManMod3, L, exec, hyprlock # Lock screen
#bind = $windowManMod3, semicolon, exec,  #
#bind = $windowManMod3, apostrophe, exec,  #
#bind = $windowManMod3, Return, exec,  #
#bind = $windowManMod3, Super_L, exec,  #
#bind = $windowManMod3, Shift_L, exec,  #
#bind = $windowManMod3, Z, exec #
#bind = $windowManMod3, X, exec #
#bind = $windowManMod3, C, exec #
#bind = $windowManMod3, V, exec #
#bind = $windowManMod3, B, exec #
#bind = $windowManMod3, N, exec, #
#bind = $windowManMod3, M, exec,  #
#bind = $windowManMod3, comma, exec,  #
#bind = $windowManMod3, period, exec,  #
#bind = $windowManMod3, slash, exec,  #
#bind = $windowManMod3, Shift_R, exec,  #
binde = $windowManMod3, Up, resizeactive, 0 -80 #------ Resize windows
binde = $windowManMod3, Left, resizeactive, -80 0 #------ Resize windows
binde = $windowManMod3, Down, resizeactive, 0 80 #------ Resize windows
binde = $windowManMod3, Right, resizeactive, 80 0 #------ Resize windows
bind = ALT_L, return, fullscreen, # toggle the window on focus to fullscreen


# -----------------------------------------------------------
# System application shortcuts
# -----------------------------------------------------------
$systemAppMod = Alt_R


$waybar_confgen = $HOME/.config/waybar/scripts/waybar_confgen.sh
$swww_wallpaper = $HOME/.config/swww/scripts/swww_wallpaper.sh
$brightnesscontrol = $HOME/.config/hypr/hyprland.conf.d/scripts/brightnesscontrol.sh
$volumeCtl = $HOME/.config/waybar/modules/pulseaudio.sh
$Bluetooth = $TERM --hold bluetoothctl

$resource_monitor = $TERM btop
$net_status = $TERM --hold nmcli


#binds = $systemAppMod, ESCAPE, exec, #
#binds = $systemAppMod, F1, exec,  #
#binds = $systemAppMod, F2, exec,  #
#binds = $systemAppMod, F3, exec,  #
#binds = $systemAppMod, F4, exec,  #
#binds = $systemAppMod, F5, exec,  #
#binds = $systemAppMod, F6, exec,  #
#binds = $systemAppMod, F7, exec,  #
#binds = $systemAppMod, F8, exec,  #
#binds = $systemAppMod, F9, exec,  #
#binds = $systemAppMod, F10, exec,  #
#binds = $systemAppMod, F11, exec,  #
#binds = $systemAppMod, F12, exec,  #
#binds = $systemAppMod, F12, exec,  #
#binds = $systemAppMod, Print, exec,  #
#binds = $systemAppMod, Scroll_Lock, exec,  #
#binds = $systemAppMod, Pause, exec,  #
#binds = $systemAppMod, `, exec,  #
#binds = $systemAppMod, 1, exec,  #
#binds = $systemAppMod, 2, exec,  #
#binds = $systemAppMod, 3, exec,  #
#binds = $systemAppMod, 4, exec,  #
#binds = $systemAppMod, 5, exec, #
#binds = $systemAppMod, 6, exec,  #
#binds = $systemAppMod, 7, exec,  #
#binds = $systemAppMod, 8, exec,  #
#binds = $systemAppMod, 9, exec, #
#binds = $systemAppMod, 0, exec, #
#binds = $systemAppMod, -, exec,  #
#binds = $systemAppMod, =, exec,  #
#binds = $systemAppMod, BackSpace, exec,  #
#binds = $systemAppMod, Insert, exec,  #
#binds = $systemAppMod, Home, exec,  #
#binds = $systemAppMod, Prior, exec,  #
#binds = $systemAppMod, Tab, exec,  #
#binds = $systemAppMod, Q, exec,  #
#binds = $systemAppMod, W, exec,  #
#binds = $systemAppMod, E, exec,  #
binds = $systemAppMod, R, exec,  $resource_monitor # open resource monitor
binds = $systemAppMod, T, exec, $TERM  # open terminal
#binds = $systemAppMod, Y, exec,  #
#binds = $systemAppMod, U, exec,  #
#binds = $systemAppMod, I, exec,  #
#binds = $systemAppMod, O, exec,  #
#binds = $systemAppMod, P, exec,  #
#binds = $systemAppMod, bracketleft, exec,  #
#binds = $systemAppMod, bracketright, exec,  #
#binds = $systemAppMod, backslash, exec,  #
#binds = $systemAppMod, Delete, exec,  #
#binds = $systemAppMod, End, exec,  #
#binds = $systemAppMod, Next, exec,  #
#binds = $systemAppMod, Caps_Lock, exec,  #
#binds = $systemAppMod, A, exec,  #
#binds = $systemAppMod, S, exec,  #
#binds = $systemAppMod, D, exec,  #
#binds = $systemAppMod, F, exec,  #
binds = $systemAppMod, G, exec, $HOME/.config/hypr/hyprland.conf.d/scripts/gamelock.sh # Motion blocking outside the main monitor (Unsuccessful native games)
#binds = $systemAppMod, H, exec,  #
#binds = $systemAppMod, J, exec,  #
#binds = $systemAppMod, K, exec,  #
#binds = $systemAppMod, L, exec,  #
#binds = $systemAppMod, semicolon, exec,  #
#binds = $systemAppMod, apostrophe, exec,  #
#binds = $systemAppMod, Return, exec,  #
#binds = $systemAppMod, Super_L, exec,  #
#binds = $systemAppMod, Shift_L, exec,  #
#binds = $systemAppMod, Z, exec,  #
#binds = $systemAppMod, X, exec,  #
binds = $systemAppMod, C, exec, pkill rofi || $HOME/.config/rofi/scripts/cliphist.sh c  # open Pasteboard in screen center
binds = $systemAppMod, V, exec, pavucontrol -t 3 # open volume manager
binds = $systemAppMod, B, exec, $Bluetooth #
binds = $systemAppMod, N, exec, $net_status # open network manager
#binds = $systemAppMod, M, exec,  #
#binds = $systemAppMod, comma, exec,  #
#binds = $systemAppMod, period, exec,  #
#binds = $systemAppMod, slash, exec,  #
#binds = $systemAppMod, Shift_R, exec,  #
binds = $systemAppMod, Up, exec, $waybar_confgen n # next waybar mode
binds = $systemAppMod, Left, exec, $swww_wallpaper -p # previous wallpaper
binds = $systemAppMod, Down, exec, $waybar_confgen p # previous waybar mode
binds = $systemAppMod, Right, exec, $swww_wallpaper -n # next wallpaper
binds = , XF86AudioMute, exec, $volumeCtl -o m # Toggle audio mute
binds = , XF86AudioMicMute, exec, $volumeCtl -i m # Toggle microphone mute
binds = , XF86AudioLowerVolume, exec, $volumeCtl -o d # Decrease volume
binds = , XF86AudioRaiseVolume, exec, $volumeCtl -o i # Increase volume
binds = , XF86AudioPlay, exec, playerctl play-pause
binds = , XF86AudioPause, exec, playerctl play-pause
binds = , XF86AudioNext, exec, playerctl next
binds = , XF86AudioPrev, exec, playerctl previous
binds = , XF86MonBrightnessUp, exec, $brightnesscontrol i # Increase brightness
binds = , XF86MonBrightnessDown, exec, $brightnesscontrol d # Decrease brightness


# -----------------------------------------------------------
# Application shortcuts
# -----------------------------------------------------------
$appMod = $mainMod Alt_R


$EDITOR = code --enable-features=UseOzonePlatform,WaylandWindowDecorations --ozone-platform=wayland
$FILES = nautilus
$pass_manager = org.keepassxc.KeePassXC
$music = spotube
$messenger1 = ayugram-desktop
$discord = vesktop --enable-features=UseOzonePlatform,WaylandWindowDecorations --ozone-platform=wayland


#bind = $appMod, ESCAPE, exec,  #
#bind = $appMod, F1, exec,  #
#bind = $appMod, F2, exec,  #
#bind = $appMod, F3, exec,  #
#bind = $appMod, F4, exec,  #
#bind = $appMod, F5, exec,  #
#bind = $appMod, F6, exec,  #
#bind = $appMod, F7, exec,  #
#bind = $appMod, F8, exec,  #
#bind = $appMod, F9, exec,  #
#bind = $appMod, F10, exec,  #
#bind = $appMod, F11, exec,  #
#bind = $appMod, F12, exec,  #
#bind = $appMod, F12, exec,  #
#bind = $appMod, Print, exec,  #
#bind = $appMod, Scroll_Lock, exec,  #
#bind = $appMod, Pause, exec,  #
#bind = $appMod, `, exec,  #
#bind = $appMod, 1, exec,  #
#bind = $appMod, 2, exec,  #
#bind = $appMod, 3, exec,  #
#bind = $appMod, 4, exec,  #
#bind = $appMod, 5, exec, #
#bind = $appMod, 6, exec,  #
#bind = $appMod, 7, exec,  #
#bind = $appMod, 8, exec,  #
#bind = $appMod, 9, exec, #
#bind = $appMod, 0, exec, #
#bind = $appMod, -, exec,  #
#bind = $appMod, =, exec,  #
#bind = $appMod, BackSpace, exec,  #
#bind = $appMod, Insert, exec,  #
#bind = $appMod, Home, exec,  #
#bind = $appMod, Prior, exec,  #
#bind = $appMod, Tab, exec,  #
#bind = $appMod, Q, exec,  #
#bind = $appMod, W, exec,  #
bind = $appMod, E, exec, $appFocus "$EDITOR" "$VSCODE" # open editor
#bind = $appMod, R, exec,  #
bind = $appMod, T, exec, $appFocus "$messenger1" "$Telegram" # open telegram-desktop
#bind = $appMod, Y, exec,  #
#bind = $appMod, U, exec,  #
#bind = $appMod, I, exec,  #
#bind = $appMod, O, exec,  #
bind = $appMod, P, exec, $BROWSER --incognito # open incognito browser
#bind = $appMod, bracketleft, exec,  #
#bind = $appMod, bracketright, exec,  #
#bind = $appMod, backslash, exec,  #
#bind = $appMod, Delete, exec,  #
#bind = $appMod, End, exec,  #
#bind = $appMod, Next, exec,  #
#bind = $appMod, Caps_Lock, exec,  #
#bind = $appMod, A, exec,  #
bind = $appMod, S, exec, $appFocus "steam-native" "$steam" # Game client 
bind = $appMod, D, exec, $appFocus "$discord" "$Discord" # open discord
bind = $appMod, F, exec, $appFocus "$FILES" "$Nautilus" # open file manager
#bind = $appMod, G, exec,  #
#bind = $appMod, H, exec,  #
#bind = $appMod, J, exec,  #
bind = $appMod, K, exec, $appFocus "$pass_manager" "$keepassxc" # open password manager
bind = $appMod, L, exec, $appFocus "lutris" "$lutris" # Game client
#bind = $appMod, semicolon, exec,  #
#bind = $appMod, apostrophe, exec,  #
#bind = $appMod, Return, exec,  #
#bind = $appMod, Super_L, exec,  #
#bind = $appMod, Shift_L, exec,  #
#bind = $appMod, Z, exec,  #
#bind = $appMod, X, exec,  #
#bind = $appMod, C, exec,  #
#bind = $appMod, V, exec,  #
bind = $appMod, B, exec, $appFocus "$BROWSER" "$vivaldi" # open browser
#bind = $appMod, N, exec,  #
bind = $appMod, M, exec, $appFocus "$music" "$spotube" # open music app
#bind = $appMod, comma, exec,  #
#bind = $appMod, period, exec,  #
#bind = $appMod, slash, exec,  #
#bind = $appMod, Shift_R, exec,  #
#bind = $appMod, Up, exec,  #
#bind = $appMod, Left, exec,  #
#bind = $appMod, Down, exec,  #
#bind = $appMod, Right, exec,  #

Config File: $HOME/.config/hypr/hyprland.conf.d/layer_rules.conf: Read Succeeded
# ---------------------------------------------------------------------
# Layer Rules
# See https://wiki.hyprland.org/Configuring/Window-Rules/#rules-1
# ---------------------------------------------------------------------

#layerrule = blur, waybar
layerrule = animation popin, rofi

Config File: $HOME/.config/hypr/hyprcursor.conf: Read Succeeded
# ---------------------------------------------------------------------
# Hyprcursor
# See https://wiki.hyprland.org/Hypr-Ecosystem/hyprcursor/
# ---------------------------------------------------------------------
exec-once = $HOME/.config/hypr/hyprland.conf.d/scripts/userThemes.sh && sleep 1
source = $HOME/.config/hypr/hyprland.conf.d/scripts/userThemes.conf

env = HYPRCURSOR_THEME,$cursorTheme
env = HYPRCURSOR_SIZE,$cursorSize

Config File: $HOME/.config/hypr/hyprland.conf.d/scripts/userThemes.conf: Read Succeeded
$cursorTheme=Bibata-Modern-Ice
$cursorSize=20

======Config-End========

Description

I have two main monitors, in version 0.41.1, when changing focus from one window on the first monitor (Apex Legends game) to another window on the second monitor - everything is fine, but it is worth changing the virtual desktop on the monitor in which the game Apex Legends is running, and return to the virtual desktop to the game, you get a black screen (game window). In newer versions of hyprland, as soon as you take the focus away from the Apex Legends game window, you will get a black screen of the game window.

How to reproduce

  1. Start Apex Legends. Steam parm: "unset SDL_VIDEODRIVER; PROTON_USE_WINESYNC=1 mangohud %command% -eac_launcher_settings=SettingsDX12.json -novid +fps_max 180"
  2. Take the focus to another window (on newer versions of hyprland). Hyprland v0.41.1 - change the virutal desktop to a different one.
  3. Return to the window with the Apex Legends game.

Crash reports, logs, images, videos

No response

@CocoJamb0O CocoJamb0O added the bug Something isn't working label Jul 8, 2024
@UjinT34
Copy link
Contributor

UjinT34 commented Jul 8, 2024

Probably same as #6375
Try borderless fullscreen mode

@vaxerski
Copy link
Member

vaxerski commented Jul 9, 2024

dupe

@vaxerski vaxerski closed this as not planned Won't fix, can't repro, duplicate, stale Jul 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants