$mainMod = SUPER

bindd = $mainMod, Return,            Run terminal,               exec, $terminal
bindd = $mainMod, Q,                 Kill active window,         killactive, 
bindd = $mainMod + Shift, Q,         Exit Hyprland,              exit, 
bindd = $mainMod, E,                 File manager,               exec, $fileManager
bindd = $mainMod, B,                 Browser,                    exec, $browser
bindd = $mainMod, P,                 Open e-mail client,         exec, $email
bindd = $mainMod, J,                 Toggle split,               togglesplit, 

bindd = $mainMod + Shift, V,         Toggle floating state,      togglefloating, 
bindd = $mainMod, F,                 Toggle fullscreen,          fullscreen, 
bindd = $mainMod + Shift, F,         Toggle fullscreen (bars),   fullscreen, 1

bindd = $mainMod, Left,              Move focus left,            movefocus, l
bindd = $mainMod, Right,             Move focus right,           movefocus, r
bindd = $mainMod, Up,                Move focus up,              movefocus, u
bindd = $mainMod, Down,              Move focus down,            movefocus, d

bindd = Alt, Tab,                    Go to next window,          cyclenext
bindd = Alt + Shift, Tab,            Go to previous window,      cyclenext, prev
bind  = Alt, Tab,         bringactivetotop
bind  = Alt + Shift, Tab, bringactivetotop

bindd = $mainMod, 1,                 Switch to workspace 1,      workspace, 1
bindd = $mainMod, 2,                 Switch to workspace 2,      workspace, 2
bindd = $mainMod, 3,                 Switch to workspace 3,      workspace, 3
bindd = $mainMod, 4,                 Switch to workspace 4,      workspace, 4
bindd = $mainMod, 5,                 Switch to workspace 5,      workspace, 5
bindd = $mainMod, 6,                 Switch to workspace 6,      workspace, 6
bindd = $mainMod, 7,                 Switch to workspace 7,      workspace, 7
bindd = $mainMod, 8,                 Switch to workspace 8,      workspace, 8
bindd = $mainMod, 9,                 Switch to workspace 9,      workspace, 9
bindd = $mainMod, 0,                 Switch to workspace 10,     workspace, 10

bindd = $mainMod + Shift, 1,         Move to workspace 1,        movetoworkspace, 1
bindd = $mainMod + Shift, 2,         Move to workspace 2,        movetoworkspace, 2
bindd = $mainMod + Shift, 3,         Move to workspace 3,        movetoworkspace, 3
bindd = $mainMod + Shift, 4,         Move to workspace 4,        movetoworkspace, 4
bindd = $mainMod + Shift, 5,         Move to workspace 5,        movetoworkspace, 5
bindd = $mainMod + Shift, 6,         Move to workspace 6,        movetoworkspace, 6
bindd = $mainMod + Shift, 7,         Move to workspace 7,        movetoworkspace, 7
bindd = $mainMod + Shift, 8,         Move to workspace 8,        movetoworkspace, 8
bindd = $mainMod + Shift, 9,         Move to workspace 9,        movetoworkspace, 9
bindd = $mainMod + Shift, 0,         Move to workspace 10,       movetoworkspace, 10

bindd = $mainMod, Tab,      		 		 Toggle workspace overview,  overview:toggle
bindd = $mainMod, S,                 Toggle special workspace,   togglespecialworkspace, magic
bindd = $mainMod + Shift, S,         Move to special workspace,  movetoworkspace, special:magic

bindd = $mainMod, mouse_down,        Switch to next workspace,   workspace, e+1
bindd = $mainMod, mouse_up,          Switch to prev workspace,   workspace, e-1

bindmd = $mainMod, mouse:272,        Move window,                movewindow
bindmd = $mainMod, mouse:273,        Resize window,              resizewindow

bindd = , PRINT,                     Take partial screenshot,    exec, hyprshot -zm region -o $screenshot_dir
bindd = $mainMod, PRINT,             Take fullscreen screenshot, exec, hyprshot -zm output -o $screenshot_dir

bindd = $mainMod, Space,             Open app launcher,		       exec, ags toggle launcher
bindd = $mainMod, Slash,             Open cheatsheet,            exec, ags toggle shortcuts
bindd = $mainMod, V, 								 Open clipboard history,     exec, ags toggle clipboard
bindd = $mainMod + Shift, T,         Toggle bar,                 exec, ~/.config/hypr/scripts/toggle-bar-visibility.sh
bindd = $mainMod, SUPER_L,           Open quick settings,        exec, ags toggle quick_settings
bindd = Ctrl+Shift, R,               Reload AGS,                 exec, ags quit; ags run --gtk4 &

bindd = , XF86AudioRaiseVolume,      Raise volume,               exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+
bindd = , XF86AudioLowerVolume,      Lower volume,               exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-
bindd = , XF86AudioMute,             Mute audio,                 exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
bindd = , XF86AudioMicMute,          Mute mic,                   exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle
bindd = , XF86MonBrightnessUp,       Increase brightness,        exec, light -A 15
bindd = , XF86MonBrightnessDown,     Decrease brightness,        exec, light -U 15

bindd = , XF86AudioNext,             Next track,                 exec, playerctl next
bindd = , XF86AudioPause,            Play/pause track,           exec, playerctl play-pause
bindd = , XF86AudioPlay,             Play/pause track,           exec, playerctl play-pause
bindd = , XF86AudioPrev,             Previous track,             exec, playerctl previous

bindd = , XF86RFKill,                Toggle wireless,            exec, nmcli radio all toggle
bindd = , XF86Bluetooth,             Toggle Bluetooth,           exec, bluetoothctl power toggle