
# This config is a STUB! This should never be generated.
# Use the default lua config from https://github.com/hyprwm/Hyprland/blob/main/example/hyprland.lua

exec-once = hyprswitch init --show-title

windowrule = match:fullscreen 1, border_size 0

env = QT_QPA_PLATFORMTHEME, qt6ct
env = JAVA_AWT_WM_NONPARENTING, 1


xwayland {
    force_zero_scaling = true
}

$mainMod = SUPER
$secMod = SUPER SHIFT
$terminal = kitty
$fileManager = dolphin
$menu = rofi
$menuLauncher = ~/.config/rofi/launchers/type-2/launcher.sh

bind = $mainMod, Q, exec, $terminal
bind = $mainMod, C, killactive,
bind = $mainMod, M, exec, command -v hyprshutdown >/dev/null 2>&1 && hyprshutdown || hyprctl dispatch exit
bind = $mainMod, E, exec, $fileManager
bind = $mainMod, V, togglefloating,
bind = ALT, SPACE, exec, bash $menuLauncher
bind = $secMod, right, movewindow, r
bind = $secMod, left, movewindow, l
bind = $secMod, up, movewindow, u
bind = $secMod, down, movewindow, d
bind = $mainMod, F11, fullscreen, 1
bind = $mainMod, F, exec, firefox
bind = ALT, Tab, exec, hyprswitch gui --mod-key=alt --key=tab --close=mod-key-release --reverse-key=mod=shift
bind = , XF86AudioPlay, exec, playerctl play-pause
bind = $secMod, S, exec, hyprshot -m region

# Pin workspaces to monitors
workspace = 1, monitor:DP-1
workspace = 2, monitor:DP-1
workspace = 3, monitor:DP-1
workspace = 4, monitor:eDP-1
workspace = 5, monitor:eDP-1
workspace = 6, monitor:eDP-1

# Switch to workspace
bind = $mainMod, 1, workspace, 1
bind = $mainMod, 2, workspace, 2
bind = $mainMod, 3, workspace, 3
bind = $mainMod, 4, workspace, 4
bind = $mainMod, 5, workspace, 5
bind = $mainMod, 6, workspace, 6

# Move window to workspace
bind = $secMod, 1, movetoworkspace, 1
bind = $secMod, 2, movetoworkspace, 2
bind = $secMod, 3, movetoworkspace, 3
bind = $secMod, 4, movetoworkspace, 4
bind = $secMod, 5, movetoworkspace, 5
bind = $secMod, 6, movetoworkspace, 6

# Next/previous workspace on focused monitor
bind = $mainMod, mouse_down, workspace, m+1
bind = $mainMod, mouse_up, workspace, m-1
bind = $mainMod, bracketright, workspace, m+1
bind = $mainMod, bracketleft, workspace, m-1

monitor = DP-1, 1920x1080@60, 0x0, 1
monitor = eDP-1, 2560x1600@144, 1920x0, 1.67

workspace = 1, monitor:DP-1
workspace = 2, monitor:DP-1
workspace = 3, monitor:DP-1
workspace = 4, monitor:eDP-1
workspace = 5, monitor:eDP-1
workspace = 6, monitor:eDP-1
