aboutsummaryrefslogblamecommitdiff
path: root/.config/hypr/hyprland.conf
blob: 6f7fc32de6cee2217688d9368d807d9869d680e0 (plain) (tree)
1
2
3
4
5
6
7
8
9
10






                                              
                                                                                                                                                                          

                              
 

                                     
                                           



                        



























































                                                                             
                                                                                                                                                                                                             


                                                  
                                                                                           

                                    
                                                 
                                       
                                                                                     
                                        
                                                                            

                       









                                             

























                                                               








                                                                                     


                                                                                         

                                                                                                                                  

                                                         


                                                 


                                                        
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
exec-once = swayidle -w timeout 300 'swaylock -f -c 000000' timeout 600 'hyprctl dispatch dpms off' resume 'hyprctl dispatch dpms on' before-sleep 'swaylock -f -c 000000'

monitor = , preferred, auto, 1

device:at-translated-set-2-keyboard {
	kb_layout  = no,us
	# kb_options = grp:alt_shift_toggle
}

input {
	follow_mouse = 1
	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 CTRL,  Q,      exec,           exec swaynag -t warning -m 'You pressed Super + Q. What do you want to do?' -B 'Log out' 'hyprctl dispatch exit' -B 'Reboot' 'reboot' -B 'Power off' 'poweroff'
bind = $modkey,       Tab,    workspace,      prev
bind = $modkey,       Left,   workspace,      e-1
bind = $modkey,       Right,  workspace,      e+1
bind = $modkey,       Return, exec,           exec "$(which alacritty || which footclient)"

# trigger when the switch is toggled
bindl=,switch:Lid Switch,     exec, 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
binde = $modkey,       H, movefocus, l
binde = $modkey,       J, movefocus, d
binde = $modkey,       K, movefocus, u
binde = $modkey,       L, movefocus, r
binde = $modkey ALT,   J, layoutmsg, swapnext
binde = $modkey ALT,   K, layoutmsg, swapprev
binde = $modkey SHIFT, H, resizeactive, -10 0
binde = $modkey SHIFT, L, resizeactive, 10 0
binde = $modkey SHIFT, J, resizeactive, 0 10
binde = $modkey SHIFT, K, resizeactive, 0 -10

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

bind  = $modkey SHIFT, S, 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
binde = $modkey, mouse_down, workspace, e+1
binde = $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