mirror of
https://github.com/olexsmir/dotfiles.git
synced 2026-01-15 08:41:34 +02:00
reformat hyprland config
This commit is contained in:
parent
1fcf08af74
commit
3234bff313
1 changed files with 105 additions and 96 deletions
|
|
@ -6,32 +6,34 @@ $mod = SUPER
|
||||||
$terminal = kitty
|
$terminal = kitty
|
||||||
# }}}
|
# }}}
|
||||||
## auto start {{{
|
## auto start {{{
|
||||||
exec-once = waybar &
|
exec-once = waybar
|
||||||
exec-once = hyprpaper &
|
exec-once = hyprpaper
|
||||||
exec-once = dunst &
|
exec-once = dunst
|
||||||
exec-once = gsettings set org.gnome.desktop.interface font-name 'JetBrainsMono Nerd Font' &
|
exec-once = gsettings set org.gnome.desktop.interface font-name "JetBrainsMono Nerd Font"
|
||||||
exec-once = /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
|
exec-once = /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
|
||||||
exec-once = blueman-applet
|
exec-once = blueman-applet
|
||||||
exec-once = ~/.config/hypr/xdg-portal.sh
|
exec-once = ~/.config/hypr/xdg-portal.sh
|
||||||
exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
|
exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
|
||||||
|
exec-once = exec-once = swayidle timeout 120 "hyprctl dispatcher dpms off && swaylock"
|
||||||
# }}}
|
# }}}
|
||||||
## inputs {{{
|
## inputs {{{
|
||||||
input {
|
input {
|
||||||
kb_layout = us,ua
|
kb_layout = us,ua
|
||||||
kb_variant =
|
kb_variant =
|
||||||
kb_model =
|
kb_model =
|
||||||
kb_options = grp:win_space_toggle,grp:alt_shift_toggle,ctrl:nocaps
|
kb_options = grp:win_space_toggle,ctrl:nocaps
|
||||||
kb_rules =
|
# ,grp:alt_shift_toggle
|
||||||
|
kb_rules =
|
||||||
|
|
||||||
follow_mouse = 1
|
follow_mouse = 1
|
||||||
sensitivity = 0.4 # -1.0 - 1.0, 0 means no modification
|
sensitivity = 0.0 # -1.0 - 1.0, 0 means no modification
|
||||||
|
|
||||||
touchpad {
|
touchpad {
|
||||||
middle_button_emulation = true
|
middle_button_emulation = true
|
||||||
natural_scroll = false
|
natural_scroll = false
|
||||||
scroll_factor = 0.4
|
scroll_factor = 0.4
|
||||||
clickfinger_behavior = 1
|
clickfinger_behavior = 1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
# }}}
|
# }}}
|
||||||
## general {{{
|
## general {{{
|
||||||
|
|
@ -42,36 +44,36 @@ general {
|
||||||
col.active_border = rgba(7aa2f7aa)
|
col.active_border = rgba(7aa2f7aa)
|
||||||
col.inactive_border = rgba(292e42aa)
|
col.inactive_border = rgba(292e42aa)
|
||||||
|
|
||||||
layout = master # dwindle
|
layout = dwindle # master
|
||||||
}
|
}
|
||||||
# }}}
|
# }}}
|
||||||
## decorations {{{
|
## decorations {{{
|
||||||
decoration {
|
decoration {
|
||||||
rounding = 3
|
rounding = 3
|
||||||
|
|
||||||
blur {
|
blur {
|
||||||
enabled = true
|
enabled = true
|
||||||
size = 3
|
size = 3
|
||||||
passes = 1
|
passes = 1
|
||||||
}
|
}
|
||||||
|
|
||||||
drop_shadow = true
|
drop_shadow = true
|
||||||
shadow_range = 4
|
shadow_range = 4
|
||||||
shadow_render_power = 3
|
shadow_render_power = 3
|
||||||
col.shadow = rgba(1a1a1aee)
|
col.shadow = rgba(1a1a1aee)
|
||||||
}
|
}
|
||||||
# }}}
|
# }}}
|
||||||
## animations {{{
|
## animations {{{
|
||||||
animations {
|
animations {
|
||||||
enabled = false
|
enabled = false
|
||||||
|
|
||||||
bezier = myBezier, 0.05, 0.9, 0.1, 1.05
|
bezier = myBezier, 0.05, 0.9, 0.1, 1.05
|
||||||
animation = windows, 1, 7, myBezier
|
animation = windows, 1, 7, myBezier
|
||||||
animation = windowsOut, 1, 7, default, popin 80%
|
animation = windowsOut, 1, 7, default, popin 80%
|
||||||
animation = border, 1, 10, default
|
animation = border, 1, 10, default
|
||||||
animation = borderangle, 1, 8, default
|
animation = borderangle, 1, 8, default
|
||||||
animation = fade, 1, 7, default
|
animation = fade, 1, 7, default
|
||||||
animation = workspaces, 1, 6, default
|
animation = workspaces, 1, 6, default
|
||||||
}
|
}
|
||||||
# }}}
|
# }}}
|
||||||
## dwindle layout {{{
|
## dwindle layout {{{
|
||||||
|
|
@ -87,19 +89,23 @@ dwindle {
|
||||||
master {
|
master {
|
||||||
new_is_master = false
|
new_is_master = false
|
||||||
no_gaps_when_only = true
|
no_gaps_when_only = true
|
||||||
|
orientation = right
|
||||||
|
new_on_top = true
|
||||||
}
|
}
|
||||||
# }}}
|
# }}}
|
||||||
## misc {{{
|
## misc {{{
|
||||||
misc {
|
misc {
|
||||||
disable_hyprland_logo = true
|
disable_hyprland_logo = true
|
||||||
disable_splash_rendering = true
|
disable_splash_rendering = true
|
||||||
|
mouse_move_enables_dpms = true
|
||||||
|
key_press_enables_dpms = true
|
||||||
}
|
}
|
||||||
# }}}
|
# }}}
|
||||||
## gestures {{{
|
## gestures {{{
|
||||||
gestures {
|
gestures {
|
||||||
workspace_swipe = true
|
workspace_swipe = true
|
||||||
workspace_swipe_invert = false
|
workspace_swipe_invert = false
|
||||||
workspace_swipe_create_new = false
|
workspace_swipe_create_new = false
|
||||||
}
|
}
|
||||||
# }}}
|
# }}}
|
||||||
## window rules {{{
|
## window rules {{{
|
||||||
|
|
@ -107,12 +113,12 @@ windowrulev2 = workspace 1, class:(Postman,org.keepassxc.KeePassXC)
|
||||||
windowrulev2 = workspace 2, class:(firefox)
|
windowrulev2 = workspace 2, class:(firefox)
|
||||||
windowrulev2 = workspace 3, class:(jetbrains-rider|org.octave.Octave)
|
windowrulev2 = workspace 3, class:(jetbrains-rider|org.octave.Octave)
|
||||||
windowrulev2 = workspace 4, class:(Logseq|Anki|Morgen)
|
windowrulev2 = workspace 4, class:(Logseq|Anki|Morgen)
|
||||||
windowrulev2 = workspace 5, class:(discord|org.telegram.desktop|fractal)
|
windowrulev2 = workspace 5, class:(discord|org.telegram.desktop|fractal|thunderbird)
|
||||||
windowrulev2 = workspace 7, class:(Spotify)
|
windowrulev2 = workspace 7, class:(Spotify)
|
||||||
windowrulev2 = workspace 8, class:(org.prismlauncher.PrismLauncher)
|
windowrulev2 = workspace 8, class:(org.prismlauncher.PrismLauncher)
|
||||||
windowrulev2 = workspace 9, class:(zoom)
|
windowrulev2 = workspace 9, class:(zoom)
|
||||||
|
|
||||||
windowrulev2 = float, class:(pavucontrol)
|
windowrulev2 = float, class:(pavucontrol|blueman-manager)
|
||||||
|
|
||||||
# screen sharing
|
# screen sharing
|
||||||
windowrulev2 = opacity 0.0 override 0.0 override,class:^(xwaylandvideobridge)$
|
windowrulev2 = opacity 0.0 override 0.0 override,class:^(xwaylandvideobridge)$
|
||||||
|
|
@ -121,83 +127,86 @@ windowrulev2 = nofocus,class:^(xwaylandvideobridge)$
|
||||||
windowrulev2 = noinitialfocus,class:^(xwaylandvideobridge)$
|
windowrulev2 = noinitialfocus,class:^(xwaylandvideobridge)$
|
||||||
# }}}
|
# }}}
|
||||||
## keymaps {{{
|
## keymaps {{{
|
||||||
bind = Alt Ctrl, t, exec, $terminal
|
bind = $mod, q, killactive
|
||||||
bind = $mod, Return, exec, $terminal
|
bind = $mod, Return, exec, $terminal
|
||||||
|
|
||||||
bind = $mod SHIFT, Return, exec, wofi --show drun --allow-images
|
bind = $mod SHIFT, Return, exec, wofi --show drun --allow-images
|
||||||
bind = $mod SHIFT, Escape, exec, ~/bin/wofi-power-menu
|
bind = $mod SHIFT, Escape, exec, ~/bin/wofi-power-menu
|
||||||
|
|
||||||
bind = $mod, q, killactive
|
|
||||||
bind = Alt, f4, killactive
|
|
||||||
|
|
||||||
bind = $mod, f, fullscreen
|
bind = $mod, f, fullscreen
|
||||||
bind = $mod Ctrl, f, togglefloating
|
bind = $mod Ctrl, f, togglefloating
|
||||||
bind = , Print, exec, grim -g "$(slurp)"
|
bind = , Print, exec, grim -g "$(slurp)" - | wl-copy
|
||||||
|
bind = Alt, Print, exec, grim -g "$(slurp)"
|
||||||
|
|
||||||
## programs {{{
|
## programs {{{
|
||||||
bind = $mod SHIFT, w, exec, firefox
|
bind = $mod SHIFT, w, exec, firefox
|
||||||
bind = $mod SHIFT, f, exec, nautilus
|
bind = $mod SHIFT, f, exec, nautilus
|
||||||
bind = $mod SHIFT, d, exec, ~/.local/appimage/logseq.AppImage
|
bind = $mod SHIFT, d, exec, ~/.local/appimage/logseq.AppImage
|
||||||
bind = $mod SHIFT, a, exec, anki
|
bind = $mod SHIFT, a, exec, anki
|
||||||
bind = $mod SHIFT, s, exec, spotify
|
bind = $mod SHIFT, s, exec, spotify
|
||||||
bind = $mod SHIFT, t, exec, telegram-desktop
|
bind = $mod SHIFT, t, exec, telegram-desktop
|
||||||
bind = $mod SHIFT, c, exec, morgen
|
bind = $mod SHIFT, c, exec, morgen
|
||||||
## }}}
|
## }}}
|
||||||
## sound {{{
|
## sound {{{
|
||||||
bindl = , XF86AudioRaiseVolume, exec, wpctl set-volume -l 1.4 @DEFAULT_AUDIO_SINK@ 5%+
|
bindl = , XF86AudioRaiseVolume, exec, wpctl set-volume -l 1.4 @DEFAULT_AUDIO_SINK@ 5%+
|
||||||
bindl = , XF86AudioLowerVolume, exec, wpctl set-volume -l 1.4 @DEFAULT_AUDIO_SINK@ 5%-
|
bindl = , XF86AudioLowerVolume, exec, wpctl set-volume -l 1.4 @DEFAULT_AUDIO_SINK@ 5%-
|
||||||
bindl = , XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
|
bindl = , XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
|
||||||
bindl = , XF86AudioPlay, exec, playerctl play-pause
|
bindl = , XF86AudioPlay, exec, playerctl play-pause
|
||||||
bindl = , XF86AudioNext, exec, playerctl next
|
bindl = , XF86AudioNext, exec, playerctl next
|
||||||
bindl = , XF86AudioPrev, exec, playerctl previous
|
bindl = , XF86AudioPrev, exec, playerctl previous
|
||||||
## }}}
|
## }}}
|
||||||
## brightness {{{
|
## brightness {{{
|
||||||
bindl = , XF86MonBrightnessUp, exec, brightnessctl set +5%
|
bindl = , XF86MonBrightnessUp, exec, brightnessctl set +5%
|
||||||
bindl = , XF86MonBrightnessDown, exec, brightnessctl set 5%-
|
bindl = , XF86MonBrightnessDown, exec, brightnessctl set 5%-
|
||||||
## }}}
|
## }}}
|
||||||
## layout spesific {{{
|
## layout spesific {{{
|
||||||
bind = $mod, P, pseudo, # dwindle
|
bind = $mod, P, pseudo, # dwindle
|
||||||
bind = $mod, J, togglesplit, # dwindle
|
bind = $mod ALT, J, togglesplit, # dwindle
|
||||||
# }}}
|
# }}}
|
||||||
## wm {{{
|
## wm {{{
|
||||||
bind = $mod, h, movefocus, l
|
bind = $mod, h, movefocus, l
|
||||||
bind = $mod, j, movefocus, d
|
bind = $mod, j, movefocus, d
|
||||||
bind = $mod, k, movefocus, u
|
bind = $mod, k, movefocus, u
|
||||||
bind = $mod, l, movefocus, r
|
bind = $mod, l, movefocus, r
|
||||||
|
|
||||||
# Scroll through existing workspaces with mainMod + scroll
|
# Scroll through existing workspaces with mainMod + scroll
|
||||||
bind = $mod, mouse_down, workspace, e-1
|
bind = $mod, mouse_down, workspace, e-1
|
||||||
bind = $mod, mouse_up, workspace, e+1
|
bind = $mod, mouse_up, workspace, e+1
|
||||||
|
|
||||||
# Move/resize windows with mainMod + LMB/RMB and dragging
|
# Move/resize windows with mainMod + LMB/RMB and dragging
|
||||||
bindm = $mod, mouse:272, movewindow
|
bindm = $mod, mouse:272, movewindow
|
||||||
bindm = $mod, mouse:273, resizewindow
|
bindm = $mod, mouse:273, resizewindow
|
||||||
|
|
||||||
bind = $mod Alt, h, resizeactive, -20 0
|
bind = $mod Alt, h, resizeactive, -20 0
|
||||||
bind = $mod Alt, l, resizeactive, 20 0
|
bind = $mod Alt, l, resizeactive, 20 0
|
||||||
bind = $mod Alt, j, resizeactive, 0 20
|
bind = $mod Alt, j, resizeactive, 0 20
|
||||||
bind = $mod Alt, k, resizeactive, 0 -20
|
bind = $mod Alt, k, resizeactive, 0 -20
|
||||||
|
|
||||||
|
bind = $mod SHIFT, h, movewindow, l
|
||||||
|
bind = $mod SHIFT, l, movewindow, r
|
||||||
|
bind = $mod SHIFT, k, movewindow, u
|
||||||
|
bind = $mod SHIFT, j, movewindow, d
|
||||||
|
|
||||||
## workspaces {{{
|
## workspaces {{{
|
||||||
bind = $mod, 1, workspace, 1
|
bind = $mod, 1, workspace, 1
|
||||||
bind = $mod, 2, workspace, 2
|
bind = $mod, 2, workspace, 2
|
||||||
bind = $mod, 3, workspace, 3
|
bind = $mod, 3, workspace, 3
|
||||||
bind = $mod, 4, workspace, 4
|
bind = $mod, 4, workspace, 4
|
||||||
bind = $mod, 5, workspace, 5
|
bind = $mod, 5, workspace, 5
|
||||||
bind = $mod, 6, workspace, 6
|
bind = $mod, 6, workspace, 6
|
||||||
bind = $mod, 7, workspace, 7
|
bind = $mod, 7, workspace, 7
|
||||||
bind = $mod, 8, workspace, 8
|
bind = $mod, 8, workspace, 8
|
||||||
bind = $mod, 9, workspace, 9
|
bind = $mod, 9, workspace, 9
|
||||||
|
|
||||||
bind = $mod SHIFT, 1, movetoworkspace, 1
|
bind = $mod SHIFT, 1, movetoworkspace, 1
|
||||||
bind = $mod SHIFT, 2, movetoworkspace, 2
|
bind = $mod SHIFT, 2, movetoworkspace, 2
|
||||||
bind = $mod SHIFT, 3, movetoworkspace, 3
|
bind = $mod SHIFT, 3, movetoworkspace, 3
|
||||||
bind = $mod SHIFT, 4, movetoworkspace, 4
|
bind = $mod SHIFT, 4, movetoworkspace, 4
|
||||||
bind = $mod SHIFT, 5, movetoworkspace, 5
|
bind = $mod SHIFT, 5, movetoworkspace, 5
|
||||||
bind = $mod SHIFT, 6, movetoworkspace, 6
|
bind = $mod SHIFT, 6, movetoworkspace, 6
|
||||||
bind = $mod SHIFT, 7, movetoworkspace, 7
|
bind = $mod SHIFT, 7, movetoworkspace, 7
|
||||||
bind = $mod SHIFT, 8, movetoworkspace, 8
|
bind = $mod SHIFT, 8, movetoworkspace, 8
|
||||||
bind = $mod SHIFT, 9, movetoworkspace, 9
|
bind = $mod SHIFT, 9, movetoworkspace, 9
|
||||||
# }}}
|
# }}}
|
||||||
# }}}
|
# }}}
|
||||||
# }}}
|
# }}}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue