aboutsummaryrefslogblamecommitdiff
path: root/.config/hypr/hyprland.conf
blob: 25d24348f2107c668bc984b03a7759e2f91bb67c (plain) (tree)














































































































































                                                                                                                                
exec-once = swaybg --image ~/Pictures/wall.png
exec-once = waybar
exec-once = dunst
exec-once = nm-applet --indicator
exec-once = blueman-applet
exec-once = thunar --daemon
exec-once = foot --server

monitor = , preferred, auto, 1
input {
	follow_mouse  = 1
	kb_layout     = no

	touchpad {
		disable_while_typing = no
		natural_scroll       = yes
	}
}

general {
	border_size         = 5
	col.active_border   = rgb(bd93f9)
	col.inactive_border = rgb(44475a)
	gaps_in             = 5
	gaps_out            = 5
	layout              = master
}

decoration {
	blur         = no
	dim_inactive = yes
	dim_strength = 0.1
	drop_shadow  = no
	rounding     = 8
}

animations {
	enabled   = yes
	animation = windows,    1, 2, default, popin 90%
	animation = border,     1, 2, default
	animation = fade,       1, 1, default
	animation = workspaces, 1, 2, default, slide
}

master {
	new_is_master     = yes
	new_on_top        = yes
	no_gaps_when_only = no
}

gestures {
	workspace_swipe                    = yes
	workspace_swipe_fingers            = 4
	workspace_swipe_distance           = 300
	workspace_swipe_invert             = yes
	workspace_swipe_min_speed_to_force = 10
	workspace_swipe_cancel_ratio       = 0.5
	workspace_swipe_create_new         = 1
}

binds {
	allow_workspace_cycles = yes
}


$modkey = SUPER

bind = $modkey,       C,      exec,           exec wofi --show drun -Iai -w 3
bind = $modkey SHIFT, B,      exec,           exec killall -SIGUSR1 waybar
bind = $modkey SHIFT, Space,  togglefloating, 
bind = $modkey,       F,      fullscreen, 
bind = $modkey SHIFT, T,      pin, 
bind = $modkey,       Q,      killactive,
bind = $modkey SHIFT, Q,      exit,
bind = $modkey,       Tab,    workspace,      prev
bind = $modkey,       Left,   workspace,      e-1
bind = $modkey,       Right,  workspace,      e+1
bind = $modkey,       Return, exec,           alacritty

# trigger when the switch is toggled
bindl=,switch:Lid Switch,     exec,swaylock
# trigger when the switch is turning on
bindl=,switch:on:Lid Switch,  exec,hyprctl keyword monitor "eDP-1, 1600x900, 0x0, 1"
# trigger when the switch is turning off
bindl=,switch:off:Lid Switch, exec,hyprctl keyword monitor "eDP-1, disable"

# Change focused window
bind = $modkey,       H, movefocus, l
bind = $modkey,       J, movefocus, d
bind = $modkey,       K, movefocus, u
bind = $modkey,       L, movefocus, r
bind = $modkey SHIFT, J, layoutmsg, swapnext
bind = $modkey SHIFT, K, layoutmsg, swapprev

# Switch workspaces with modkey + [0-9]
bind = $modkey, 0, workspace, 10
bind = $modkey, 1, workspace, 1
bind = $modkey, 2, workspace, 2
bind = $modkey, 3, workspace, 3
bind = $modkey, 4, workspace, 4
bind = $modkey, 5, workspace, 5
bind = $modkey, 6, workspace, 6
bind = $modkey, 7, workspace, 7
bind = $modkey, 8, workspace, 8
bind = $modkey, 9, workspace, 9

# Move active window to a workspace with modkey + SHIFT + [0-9]
bind = $modkey SHIFT, 0, movetoworkspace,  10
bind = $modkey SHIFT, 1, movetoworkspace,  1
bind = $modkey SHIFT, 2, movetoworkspace,  2
bind = $modkey SHIFT, 3, movetoworkspace,  3
bind = $modkey SHIFT, 4, movetoworkspace,  4
bind = $modkey SHIFT, 5, movetoworkspace,  5
bind = $modkey SHIFT, 6, movetoworkspace,  6
bind = $modkey SHIFT, 7, movetoworkspace,  7
bind = $modkey SHIFT, 8, movetoworkspace,  8
bind = $modkey SHIFT, 9, movetoworkspace,  9

# Media keys
binde = , XF86AudioMute,         exec, pactl set-sink-mute   @DEFAULT_SINK@   toggle
binde = , XF86AudioLowerVolume,  exec, pactl set-sink-volume @DEFAULT_SINK@   -5%
binde = , XF86AudioRaiseVolume,  exec, pactl set-sink-volume @DEFAULT_SINK@   +5%
binde = , XF86AudioMicMute,      exec, pactl set-source-mute @DEFAULT_SOURCE@ toggle
binde = , XF86AudioPlay,         exec, playerctl play-pause
binde = , XF86AudioNext,         exec, playerctl next
binde = , XF86AudioPrev,         exec, playerctl previous
binde = , XF86MonBrightnessDown, exec, brightnessctl set 5%-
binde = , XF86MonBrightnessUp,   exec, brightnessctl set 5%+
#binde = , XF86KbdBrightnessDown, exec, brightnessctl --device $keyboard_backlight set 1-
#binde = , XF86KbdBrightnessUp,   exec, brightnessctl --device $keyboard_backlight set 1+

bind  = ,        print, exec, slurp | grim -l 0 -g - /dev/stdout | swappy -f - -o `date "+$HOME/screenshots/%Y-%m-%d_%R:%S.png"`
bind  = $modkey, X,     exec, swaylock

# Scroll through existing workspaces with modkey + scroll
bind = $modkey, mouse_down, workspace, e+1
bind = $modkey, mouse_up, workspace, e-1

bind = $modkey, Space, layoutmsg, swapwithmaster

# Move/resize windows with modkey + LMB/RMB and dragging
bindm = $modkey, mouse:272, movewindow
bindm = $modkey, mouse:273, resizewindow