#
# Please note not all available settings / options are set here.
# For a full list, see the wiki
#
monitor=,preferred,auto,auto
# Slow app launch fix
exec-once = systemctl --user import-environment &
exec-once = hash dbus-update-activation-environment 2>/dev/null &
exec-once = dbus-update-activation-environment --systemd &
#exec-once = xdg-desktop-portal-hyprland &
# ## Idle configuration
#
exec-once = swayidle -w timeout 300 'swaylock -f -c 000000' before-sleep 'swaylock -f -c 000000'
# Source a file (multi-file configs)
# source = ~/.config/hypr/myColors.conf
# ## Input configuration
#
input {
#kb_layout = us,ru
kb_layout = tr
kb_variant =
kb_model =
#kb_options = grp:caps_toggle,grp_led:caps,altwin:swap_alt_win,ctrl:rctrl_ralt
kb_options =
kb_rules =
follow_mouse = 2 # 0|1|2|3
float_switch_override_focus = 2
touchpad {
natural_scroll = no
}
sensitivity = -0.8 # -1.0 - 1.0, 0 means no modification.
}
general {
gaps_in = 3
gaps_out = 5
border_size = 3
col.active_border = rgba(ff5e81ac)
#col.inactive_border = rgba(66333333)
col.inactive_border = rgba(595959aa)
layout = dwindle # master|dwindle
}
decoration {
active_opacity = 0.98
inactive_opacity = 1.0
fullscreen_opacity = 1.0
rounding = 4
blur {
enabled = true
size = 15
passes = 2 # more passes = more resource intensive.
new_optimizations = true
xray = true
ignore_opacity = false
}
}
# Blur for waybar
#blurls = waybar
animations {
enabled = yes
# Some default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more
#bezier = myBezier, 0.05, 0.9, 0.1, 1.05
bezier = overshot, 0.13, 0.99, 0.29, 1.1
animation = windows, 1, 4, overshot, slide
animation = windowsOut, 1, 5, default, popin 80%
animation = border, 1, 5, default
animation = fade, 1, 8, default
animation = workspaces, 1, 6, overshot, slide
#animation = windows, 1, 7, myBezier
#animation = windowsOut, 1, 7, default, popin 80%
#animation = fade, 1, 7, default
#animation = border, 1, 10, default
#animation = workspaces, 1, 6, default
}
# See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more
dwindle {
force_split = 0
special_scale_factor = 0.8
split_width_multiplier = 1.0
use_active_for_splits = true
pseudotile = yes # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
preserve_split = yes
}
# See https://wiki.hyprland.org/Configuring/Master-Layout/ for more
master {
new_status = master
special_scale_factor = 0.8
}
misc {
#disable_autoreload = true
disable_hyprland_logo = true
always_follow_on_dnd = true
layers_hog_keyboard_focus = true
animate_manual_resizes = false
enable_swallow = true
swallow_regex =
focus_on_activate = true
vfr = 1
}
gestures {
workspace_swipe = true
workspace_swipe_fingers = 4
workspace_swipe_distance = 250
workspace_swipe_invert = true
workspace_swipe_min_speed_to_force = 15
workspace_swipe_cancel_ratio = 0.5
workspace_swipe_create_new = false
}
device {
name = epic-mouse-v1
sensitivity = -0.5
}
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
$mainMod = SUPER
#benim tuşlarım
bind = $mainMod, T, exec, tilix
bind = $mainMod, K, killactive,
bind = $mainMod, A, exec, wofi --show drun
bind = $mainMod, Z, exec, flatpak run io.github.zen_browser.zen
bind = $mainMod, F, exec, pcmanfm
bind = $mainMod, B, exec, blueman-manager
bind = $mainMod, V, exec, pavucontrol
bind = $mainMod, F11, fullscreen
bind = $mainMod S, 1, exec, hyprshot -m window
bind = $mainMod S, 2, exec, hyprshot -m region
bind = $mainMod, P, exec, hyprpicker -a
# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
#bind = $mainMod, A, exec, grim -g "$(slurp)" - | swappy -f -
bind = $mainMod SHIFT, M, exit,
#bind = $mainMod, V, togglefloating,
bind = CTRL, SPACE, exec, rofi -show combi -modi window,run,combi -combi-modi window,run
bind = CTRL, SPACE, exec, wofi
#bind = $mainMod, F, fullscreen
bind = $mainMod, Y, pin
#bind = $mainMod, P, pseudo, # dwindle
bind = $mainMod, J, togglesplit, # dwindle
#bind = $mainMod, K, togglegroup,
#bind = $mainMod, Tab, changegroupactive, f
bind = $mainMod SHIFT, G,exec,hyprctl --batch "keyword general:gaps_out 5;keyword general:gaps_in 3"
bind = $mainMod , G,exec,hyprctl --batch "keyword general:gaps_out 0;keyword general:gaps_in 0"
# Volume control
bind=,XF86AudioLowerVolume,exec,pamixer -ud 3 && pamixer --get-volume > /tmp/$HYPRLAND_INSTANCE_SIGNATURE.wob
bind=,XF86AudioRaiseVolume,exec,pamixer -ui 3 && pamixer --get-volume > /tmp/$HYPRLAND_INSTANCE_SIGNATURE.wob
# mute sound
bind=,XF86AudioMute,exec,amixer sset Master toggle | sed -En '/\[on\]/ s/.*\[([0-9]+)%\].*/\1/ p; /\[off\]/ s/.*/0/p' | head -1 > /tmp/$HYPRLAND_INSTANCE_SIGNATURE.wob
# Playback control
bind=,XF86AudioPlay,exec, playerctl play-pause
bind=,XF86AudioNext,exec, playerctl next
bind=,XF86AudioPrev,exec, playerctl previous
# Screen brightness
bind = , XF86MonBrightnessUp, exec, brightnessctl s +5%
bind = , XF86MonBrightnessDown, exec, brightnessctl s 5%-
bind = $mainMod SHIFT, P, exec, gnome-calculator
bind = $mainMod, L, exec, swaylock-fancy -e -K -p 10 -f Hack-Regular
#bind = $mainMod, P, exec, ~/.scripts/dmshot
bind = $mainMod, O, exec, killall -SIGUSR2 waybar
# Move focus with mainMod + arrow keys
bind = $capslock, left, movefocus, l
bind = $capslock, right, movefocus, r
bind = $capslock, up, movefocus, u
bind = $capslock, down, movefocus, d
# Switch workspaces with mainMod + [0-9]
bind = $capslock, 1, workspace, 1
bind = $capslock, 2, workspace, 2
bind = $capslock, 3, workspace, 3
bind = $capslock, 4, workspace, 4
bind = $capslock, 5, workspace, 5
bind = $capslock, 6, workspace, 6
bind = $capslock, 7, workspace, 7
bind = $capslock, 8, workspace, 8
bind = $capslock, 9, workspace, 9
bind = $capslock, 0, workspace, 10
bind = $mainMod, period, workspace, e+1
bind = $mainMod, comma, workspace,e-1
bind = $mainMod, minus, movetoworkspace,special
bind = $mainMod, equal, togglespecialworkspace
bind = $mainMod SHIFT,left ,movewindow, l
bind = $mainMod SHIFT,right ,movewindow, r
bind = $mainMod SHIFT,up ,movewindow, u
bind = $mainMod SHIFT,down ,movewindow, d
# Move active window to a workspace with mainMod + CTRL + [0-9]
bind = $capslock alt, 1, movetoworkspace, 1
bind = $capslock alt, 2, movetoworkspace, 2
bind = $capslock alt, 3, movetoworkspace, 3
bind = $capslock alt, 4, movetoworkspace, 4
bind = $capslock alt, 5, movetoworkspace, 5
bind = $capslock alt, 6, movetoworkspace, 6
bind = $capslock alt, 7, movetoworkspace, 7
bind = $capslock alt, 8, movetoworkspace, 8
bind = $capslock alt, 9, movetoworkspace, 9
bind = $capslock alt, 0, movetoworkspace, 10
bind = $capslock alt, left, movetoworkspace, -1
bind = $capslock alt, right, movetoworkspace, +1
# Scroll through existing workspaces with mainMod + scroll
bind = $capslock, mouse_down, workspace, e+1
bind = $capslock, mouse_up, workspace, e-1
binds {
workspace_back_and_forth = 1
allow_workspace_cycles = 1
}
bind = $mainMod,slash,workspace,previous
bind = $mainMod,R,submap,resize
submap = resize
binde =,right,resizeactive,15 0
binde =,left,resizeactive,-15 0
binde =,up,resizeactive,0 -15
binde =,down,resizeactive,0 15
binde =,l,resizeactive,15 0
binde =,h,resizeactive,-15 0
binde =,k,resizeactive,0 -15
binde =,j,resizeactive,0 15
bind =,escape,submap,reset
submap = reset
bind=CTRL SHIFT, left, resizeactive,-15 0
bind=CTRL SHIFT, right, resizeactive,15 0
bind=CTRL SHIFT, up, resizeactive,0 -15
bind=CTRL SHIFT, down, resizeactive,0 15
bind=CTRL SHIFT, l, resizeactive, 15 0
bind=CTRL SHIFT, h, resizeactive,-15 0
bind=CTRL SHIFT, k, resizeactive, 0 -15
bind=CTRL SHIFT, j, resizeactive, 0 15
# Move/resize windows with mainMod + LMB/RMB and dragging
bindm = $mainMod, mouse:272, movewindow
bindm = $mainMod, mouse:273, resizewindow
#exec-once = alacritty
#exec-once = telegram-desktop
#exec-once = armcord
exec-once = swaybg -o \* -i /usr/share/wallpapers/cachyos-wallpapers/purple.jpg -m fill
#------------#
# auto start #
#------------#
exec-once = waybar -c .config/waybar/config-hypr &
exec-once = fcitx5 -d &
exec-once = mako &
exec-once = nm-applet --indicator &
exec-once = bash -c "mkfifo /tmp/$HYPRLAND_INSTANCE_SIGNATURE.wob && tail -f /tmp/$HYPRLAND_INSTANCE_SIGNATURE.wob | wob & disown" &
exec-once = /usr/lib/polkit-kde-authentication-agent-1 &
# Float Necessary Windows
windowrule=float,Rofi
windowrule=float,pavucontrol
windowrulev2 = float,class:^()$,title:^(Picture in picture)$
windowrulev2 = float,class:^(brave)$,title:^(Save File)$
windowrulev2 = float,class:^(brave)$,title:^(Open File)$
windowrulev2 = float,class:^(LibreWolf)$,title:^(Picture-in-Picture)$
windowrulev2 = float,class:^(blueman-manager)$
windowrulev2 = float,class:^(xdg-desktop-portal-gtk)$
windowrulev2 = float,class:^(xdg-desktop-portal-kde)$
windowrulev2 = float,class:^(xdg-desktop-portal-hyprland)$
#windowrulev2 = float,class:^(org.kde.polkit-kde-authentication-agent-1)$
windowrulev2 = float,class:^(CachyOSHello)$
windowrulev2 = float,class:^(zenity)$
windowrulev2 = float,class:^()$,title:^(Steam - Self Updater)$
# Increase the opacity
windowrule=opacity 0.92,Thunar
windowrule=opacity 0.92,Nautilus
windowrule=opacity 0.96,discord
windowrule=opacity 0.96,armcord
windowrule=opacity 0.96,webcord
#---------------#
# windows rules #
#---------------#
#`hyprctl clients` get class、title...
windowrule=float,title:^(Picture-in-Picture)$
windowrule=size 960 540,title:^(Picture-in-Picture)$
windowrule=move 25%-,title:^(Picture-in-Picture)$
windowrule=float,imv
windowrule=move 25%-,imv
windowrule=size 960 540,imv
windowrule=float,mpv
windowrule=move 25%-,mpv
windowrule=size 960 540,mpv
windowrule=float,danmufloat
windowrule=move 25%-,danmufloat
windowrule=pin,danmufloat
windowrule=rounding 5,danmufloat
windowrule=size 960 540,danmufloat
windowrule=float,termfloat
windowrule=move 25%-,termfloat
windowrule=size 960 540,termfloat
windowrule=rounding 5,termfloat
windowrule=float,nemo
windowrule=move 25%-,nemo
windowrule=size 960 540,nemo
windowrule=opacity 0.95,title:Telegram
windowrule=opacity 0.95,title:QQ
windowrule=opacity 0.95,title:NetEase Cloud Music Gtk4
windowrule=animation slide right,kitty
windowrule=animation slide right,alacritty
windowrule=float,ncmpcpp
windowrule=move 25%-,ncmpcpp
windowrule=size 960 540,ncmpcpp
windowrule=noblur,^(firefox)$
windowrule=noblur,^(waybar)$
#benim diğer kodlarım
exec-once=systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP QT_PRA_PLATFORMTHEME
exec-once = waybar
exec-once = mako