#monitor = DP-2, disable
monitor = DP-2, 3840x2160@60, 0x0, 1.5
#monitor = DP-1, highres, auto, 1 # Work - Lab 1440p Dell 
#monitor = DP-1, 1920x1080@60, auto, 1 # Portable Monitor 1080p
#monitor = eDP-1, 2048x1280@60, auto, 1
monitor = eDP-1, disable
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
# Personal config, learning as I go

# Start hyprpaper
#exec=hyprpaper

# Start apps on logon
exec-once=waybar

# Start hyprpm plugins
exec-once = hyprpm reload -n

# Enable wifi manager indicator on waybar
exec-once=nm-applet --indicator & disown

exec-once=/usr/lib/polkit-kde-authentication-agent-1

# Wallpaper
# exec-once = hyprpaper

# Idle and Locking Screen
# Screensaver and lock screen
#$lock = swaylock -f --color 1e1e2eFF
#exec-once = swayidle -w timeout 300 '$lock' timeout 300 'hyprctl dispatch dpms off' resume 'hyprctl dispatch dpms on' before-sleep '$lock'

# Hyprlock variable
$lock = hyprlock

# Screenlock
bind = SUPER, L, exec, $lock

# Trackpad Gestures
gestures {
    workspace_swipe = true
    workspace_swipe_fingers = 3
}

# #######################################################################################
# AUTOGENERATED HYPR CONFIG.
# PLEASE USE THE CONFIG PROVIDED IN THE GIT REPO /examples/hypr.conf AND EDIT IT,
# OR EDIT THIS ONE ACCORDING TO THE WIKI INSTRUCTIONS.
# #######################################################################################

#
# Please note not all available settings / options are set here.
# For a full list, see the wiki
#


# See https://wiki.hyprland.org/Configuring/Monitors/
# monitor=,preferred,auto,auto


# See https://wiki.hyprland.org/Configuring/Keywords/ for more

# Execute your favorite apps at launch
# exec-once = waybar & hyprpaper & firefox

# Source a file (multi-file configs)
# source = ~/.config/hypr/myColors.conf

# Some default env vars.
env = QT_QPA_PLATFORMTHEME,qt5ct # change to qt6ct if you have that

# For all categories, see https://wiki.hyprland.org/Configuring/Variables/
general {
    # See https://wiki.hyprland.org/Configuring/Variables/ for more

    gaps_in = 2
    gaps_out = 10
    border_size = 2
    col.active_border = rgba(FE8019aa) # Orange
# col.active_border = rgba(ffffffff)
# col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg
    col.inactive_border = rgba(595959aa) # Grey

    layout = dwindle

    # Please see https://wiki.hyprland.org/Configuring/Tearing/ before you turn this on
    allow_tearing = false
}

decoration {
    # See https://wiki.hyprland.org/Configuring/Variables/ for more

    rounding = 0
    
    blur {
        enabled = false
        size = 3
        passes = 1
    }
}

animations {
    enabled = yes
    bezier = myBezier, 0.05, 0.9, 0.1, 1.05

    animation = windows, 1, 7, myBezier
    animation = windowsOut, 1, 7, default, popin 80%
    animation = border, 1, 10, default
    animation = borderangle, 1, 8, default
    animation = fade, 1, 7, default
    animation = workspaces, 1, 6, default

}

dwindle {
    # See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more
    pseudotile = yes # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
    preserve_split = yes # you probably want this
}

#master {
    # See https://wiki.hyprland.org/Configuring/Master-Layout/ for more
#    new_is_master = true
#}

gestures {
    # See https://wiki.hyprland.org/Configuring/Variables/ for more
    workspace_swipe = on
    workspace_swipe_fingers = 3
    workspace_swipe_distance = 500
    workspace_swipe_invert = false
    workspace_swipe_create_new = true
}

misc {
    # See https://wiki.hyprland.org/Configuring/Variables/ for more
    force_default_wallpaper = 1 # Set to 0 or 1 to disable the anime mascot wallpapers
    disable_hyprland_logo = true
    disable_splash_rendering = true
    font_family = "Maple Mono"
    focus_on_activate = false
}

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

# USB Receiver Logitech (this controls all mouses sycned with the USB controller)
device {
    name = logitech-usb-receiver-mouse
    sensitivity = -0.7
}

device {
    name = cirq1080:00-0488:1054-touchpad
    sensitivity = 0.0
}

device {
    name = logitech-mx-ergo-1
    sensitivity = -2.0
}

# Swap Caps-lock to ESC
input {
    kb_options = caps:swapescape

    touchpad {
    	scroll_factor = 0.2
    }

}

xwayland {
	enabled = true
	force_zero_scaling = true
}

# Multi-GPU
env = AQ_DRM_DEVICES,/dev/dri/card2:/dev/dri/card1
