reformat hyprland config

This commit is contained in:
Smirnov Oleksandr 2023-11-22 15:16:01 +02:00
parent 1fcf08af74
commit 3234bff313

View file

@ -6,25 +6,27 @@ $mod = SUPER
$terminal = kitty
# }}}
## auto start {{{
exec-once = waybar &
exec-once = hyprpaper &
exec-once = dunst &
exec-once = gsettings set org.gnome.desktop.interface font-name 'JetBrainsMono Nerd Font' &
exec-once = waybar
exec-once = hyprpaper
exec-once = dunst
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 = blueman-applet
exec-once = ~/.config/hypr/xdg-portal.sh
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 {{{
input {
kb_layout = us,ua
kb_variant =
kb_model =
kb_options = grp:win_space_toggle,grp:alt_shift_toggle,ctrl:nocaps
kb_options = grp:win_space_toggle,ctrl:nocaps
# ,grp:alt_shift_toggle
kb_rules =
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 {
middle_button_emulation = true
@ -42,7 +44,7 @@ general {
col.active_border = rgba(7aa2f7aa)
col.inactive_border = rgba(292e42aa)
layout = master # dwindle
layout = dwindle # master
}
# }}}
## decorations {{{
@ -87,12 +89,16 @@ dwindle {
master {
new_is_master = false
no_gaps_when_only = true
orientation = right
new_on_top = true
}
# }}}
## misc {{{
misc {
disable_hyprland_logo = true
disable_splash_rendering = true
mouse_move_enables_dpms = true
key_press_enables_dpms = true
}
# }}}
## gestures {{{
@ -107,12 +113,12 @@ windowrulev2 = workspace 1, class:(Postman,org.keepassxc.KeePassXC)
windowrulev2 = workspace 2, class:(firefox)
windowrulev2 = workspace 3, class:(jetbrains-rider|org.octave.Octave)
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 8, class:(org.prismlauncher.PrismLauncher)
windowrulev2 = workspace 9, class:(zoom)
windowrulev2 = float, class:(pavucontrol)
windowrulev2 = float, class:(pavucontrol|blueman-manager)
# screen sharing
windowrulev2 = opacity 0.0 override 0.0 override,class:^(xwaylandvideobridge)$
@ -121,18 +127,16 @@ windowrulev2 = nofocus,class:^(xwaylandvideobridge)$
windowrulev2 = noinitialfocus,class:^(xwaylandvideobridge)$
# }}}
## keymaps {{{
bind = Alt Ctrl, t, exec, $terminal
bind = $mod, q, killactive
bind = $mod, Return, exec, $terminal
bind = $mod SHIFT, Return, exec, wofi --show drun --allow-images
bind = $mod SHIFT, Escape, exec, ~/bin/wofi-power-menu
bind = $mod, q, killactive
bind = Alt, f4, killactive
bind = $mod, f, fullscreen
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 {{{
bind = $mod SHIFT, w, exec, firefox
@ -157,7 +161,7 @@ windowrulev2 = noinitialfocus,class:^(xwaylandvideobridge)$
## }}}
## layout spesific {{{
bind = $mod, P, pseudo, # dwindle
bind = $mod, J, togglesplit, # dwindle
bind = $mod ALT, J, togglesplit, # dwindle
# }}}
## wm {{{
bind = $mod, h, movefocus, l
@ -178,6 +182,11 @@ windowrulev2 = noinitialfocus,class:^(xwaylandvideobridge)$
bind = $mod Alt, j, 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 {{{
bind = $mod, 1, workspace, 1
bind = $mod, 2, workspace, 2