all repos

dotfiles @ 3234bff

i use rach linux btw
1 files changed, 105 insertions(+), 96 deletions(-)
reformat hyprland config
Author: Smirnov Oleksandr ss2316544@gmail.com
Committed at: 2023-11-22 15:16:01 +0200
Parent: 1fcf08a
M config/hypr/hyprland.conf
···
        6
        6
         $terminal = kitty

      
        7
        7
         # }}}

      
        8
        8
         ## auto start {{{

      
        9
        
        -exec-once = waybar &

      
        10
        
        -exec-once = hyprpaper &

      
        11
        
        -exec-once = dunst &

      
        12
        
        -exec-once = gsettings set org.gnome.desktop.interface font-name 'JetBrainsMono Nerd Font' &

      
        
        9
        +exec-once = waybar

      
        
        10
        +exec-once = hyprpaper

      
        
        11
        +exec-once = dunst

      
        
        12
        +exec-once = gsettings set org.gnome.desktop.interface font-name "JetBrainsMono Nerd Font"

      
        13
        13
         exec-once = /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1

      
        14
        14
         exec-once = blueman-applet

      
        15
        15
         exec-once = ~/.config/hypr/xdg-portal.sh

      
        16
        16
         exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP

      
        
        17
        +exec-once = exec-once = swayidle timeout 120 "hyprctl dispatcher dpms off && swaylock"

      
        17
        18
         # }}}

      
        18
        19
         ## inputs {{{

      
        19
        20
         input {

      
        20
        
        -    kb_layout = us,ua

      
        21
        
        -    kb_variant =

      
        22
        
        -    kb_model =

      
        23
        
        -    kb_options = grp:win_space_toggle,grp:alt_shift_toggle,ctrl:nocaps

      
        24
        
        -    kb_rules =

      
        
        21
        +  kb_layout = us,ua

      
        
        22
        +  kb_variant =

      
        
        23
        +  kb_model =

      
        
        24
        +  kb_options = grp:win_space_toggle,ctrl:nocaps

      
        
        25
        +  # ,grp:alt_shift_toggle

      
        
        26
        +  kb_rules =

      
        25
        27
         

      
        26
        
        -    follow_mouse = 1

      
        27
        
        -    sensitivity = 0.4 # -1.0 - 1.0, 0 means no modification

      
        
        28
        +  follow_mouse = 1

      
        
        29
        +  sensitivity = 0.0 # -1.0 - 1.0, 0 means no modification

      
        28
        30
         

      
        29
        
        -    touchpad {

      
        30
        
        -        middle_button_emulation = true

      
        31
        
        -        natural_scroll = false

      
        32
        
        -        scroll_factor = 0.4

      
        33
        
        -        clickfinger_behavior = 1

      
        34
        
        -    }

      
        
        31
        +  touchpad {

      
        
        32
        +    middle_button_emulation = true

      
        
        33
        +    natural_scroll = false

      
        
        34
        +    scroll_factor = 0.4

      
        
        35
        +    clickfinger_behavior = 1

      
        
        36
        +  }

      
        35
        37
         }

      
        36
        38
         # }}}

      
        37
        39
         ## general {{{

      ···
        42
        44
             col.active_border = rgba(7aa2f7aa)

      
        43
        45
             col.inactive_border = rgba(292e42aa)

      
        44
        46
         

      
        45
        
        -    layout = master # dwindle

      
        
        47
        +    layout = dwindle # master

      
        46
        48
         }

      
        47
        49
         # }}}

      
        48
        50
         ## decorations {{{

      
        49
        51
         decoration {

      
        50
        
        -    rounding = 3

      
        
        52
        +  rounding = 3

      
        51
        53
         

      
        52
        
        -    blur {

      
        53
        
        -        enabled = true

      
        54
        
        -        size = 3

      
        55
        
        -        passes = 1

      
        56
        
        -    }

      
        
        54
        +  blur {

      
        
        55
        +    enabled = true

      
        
        56
        +    size = 3

      
        
        57
        +    passes = 1

      
        
        58
        +  }

      
        57
        59
         

      
        58
        
        -    drop_shadow = true

      
        59
        
        -    shadow_range = 4

      
        60
        
        -    shadow_render_power = 3

      
        61
        
        -    col.shadow = rgba(1a1a1aee)

      
        
        60
        +  drop_shadow = true

      
        
        61
        +  shadow_range = 4

      
        
        62
        +  shadow_render_power = 3

      
        
        63
        +  col.shadow = rgba(1a1a1aee)

      
        62
        64
         }

      
        63
        65
         # }}}

      
        64
        66
         ## animations {{{

      
        65
        67
         animations {

      
        66
        
        -    enabled = false

      
        
        68
        +  enabled = false

      
        67
        69
         

      
        68
        
        -    bezier = myBezier, 0.05, 0.9, 0.1, 1.05

      
        69
        
        -    animation = windows, 1, 7, myBezier

      
        70
        
        -    animation = windowsOut, 1, 7, default, popin 80%

      
        71
        
        -    animation = border, 1, 10, default

      
        72
        
        -    animation = borderangle, 1, 8, default

      
        73
        
        -    animation = fade, 1, 7, default

      
        74
        
        -    animation = workspaces, 1, 6, default

      
        
        70
        +  bezier = myBezier, 0.05, 0.9, 0.1, 1.05

      
        
        71
        +  animation = windows, 1, 7, myBezier

      
        
        72
        +  animation = windowsOut, 1, 7, default, popin 80%

      
        
        73
        +  animation = border, 1, 10, default

      
        
        74
        +  animation = borderangle, 1, 8, default

      
        
        75
        +  animation = fade, 1, 7, default

      
        
        76
        +  animation = workspaces, 1, 6, default

      
        75
        77
         }

      
        76
        78
         # }}}

      
        77
        79
         ## dwindle layout {{{

      ···
        82
        84
           no_gaps_when_only = 1

      
        83
        85
         }

      
        84
        86
         # }}}

      
        85
        
        -## master layout {{{ 

      
        
        87
        +## master layout {{{

      
        86
        88
         # https://wiki.hyprland.org/Configuring/Master-Layout

      
        87
        89
         master {

      
        88
        90
           new_is_master = false

      
        89
        91
           no_gaps_when_only = true

      
        
        92
        +  orientation = right

      
        
        93
        +  new_on_top = true

      
        90
        94
         }

      
        91
        95
         # }}}

      
        92
        96
         ## misc {{{

      
        93
        97
         misc {

      
        94
        98
           disable_hyprland_logo = true

      
        95
        99
           disable_splash_rendering = true

      
        
        100
        +  mouse_move_enables_dpms = true

      
        
        101
        +  key_press_enables_dpms = true

      
        96
        102
         }

      
        97
        103
         # }}}

      
        98
        104
         ## gestures {{{

      
        99
        105
         gestures {

      
        100
        
        -    workspace_swipe = true

      
        101
        
        -    workspace_swipe_invert = false

      
        102
        
        -    workspace_swipe_create_new = false

      
        
        106
        +  workspace_swipe = true

      
        
        107
        +  workspace_swipe_invert = false

      
        
        108
        +  workspace_swipe_create_new = false

      
        103
        109
         }

      
        104
        110
         # }}}

      
        105
        111
         ## window rules {{{

      ···
        107
        113
         windowrulev2 = workspace 2, class:(firefox)

      
        108
        114
         windowrulev2 = workspace 3, class:(jetbrains-rider|org.octave.Octave)

      
        109
        115
         windowrulev2 = workspace 4, class:(Logseq|Anki|Morgen)

      
        110
        
        -windowrulev2 = workspace 5, class:(discord|org.telegram.desktop|fractal)

      
        
        116
        +windowrulev2 = workspace 5, class:(discord|org.telegram.desktop|fractal|thunderbird)

      
        111
        117
         windowrulev2 = workspace 7, class:(Spotify)

      
        112
        118
         windowrulev2 = workspace 8, class:(org.prismlauncher.PrismLauncher)

      
        113
        119
         windowrulev2 = workspace 9, class:(zoom)

      
        114
        120
         

      
        115
        
        -windowrulev2 = float, class:(pavucontrol)

      
        
        121
        +windowrulev2 = float, class:(pavucontrol|blueman-manager)

      
        116
        122
         

      
        117
        123
         # screen sharing

      
        118
        124
         windowrulev2 = opacity 0.0 override 0.0 override,class:^(xwaylandvideobridge)$

      ···
        121
        127
         windowrulev2 = noinitialfocus,class:^(xwaylandvideobridge)$

      
        122
        128
         # }}}

      
        123
        129
         ## keymaps {{{

      
        124
        
        -  bind = Alt Ctrl, t, exec, $terminal

      
        
        130
        +  bind = $mod, q, killactive

      
        125
        131
           bind = $mod, Return, exec, $terminal

      
        126
        132
         

      
        127
        133
           bind = $mod SHIFT, Return, exec, wofi --show drun --allow-images

      
        128
        134
           bind = $mod SHIFT, Escape, exec, ~/bin/wofi-power-menu

      
        129
        
        -

      
        130
        
        -  bind = $mod, q, killactive

      
        131
        
        -  bind = Alt, f4, killactive

      
        132
        135
         

      
        133
        136
           bind = $mod, f, fullscreen

      
        134
        137
           bind = $mod Ctrl, f, togglefloating

      
        135
        
        -  bind = , Print, exec, grim -g "$(slurp)"

      
        
        138
        +  bind = , Print, exec, grim -g "$(slurp)" - | wl-copy

      
        
        139
        +  bind = Alt, Print, exec, grim -g "$(slurp)"

      
        136
        140
         

      
        137
        141
           ## programs {{{

      
        138
        
        -  bind = $mod SHIFT, w, exec, firefox

      
        139
        
        -  bind = $mod SHIFT, f, exec, nautilus

      
        140
        
        -  bind = $mod SHIFT, d, exec, ~/.local/appimage/logseq.AppImage

      
        141
        
        -  bind = $mod SHIFT, a, exec, anki

      
        142
        
        -  bind = $mod SHIFT, s, exec, spotify

      
        143
        
        -  bind = $mod SHIFT, t, exec, telegram-desktop

      
        144
        
        -  bind = $mod SHIFT, c, exec, morgen

      
        
        142
        +    bind = $mod SHIFT, w, exec, firefox

      
        
        143
        +    bind = $mod SHIFT, f, exec, nautilus

      
        
        144
        +    bind = $mod SHIFT, d, exec, ~/.local/appimage/logseq.AppImage

      
        
        145
        +    bind = $mod SHIFT, a, exec, anki

      
        
        146
        +    bind = $mod SHIFT, s, exec, spotify

      
        
        147
        +    bind = $mod SHIFT, t, exec, telegram-desktop

      
        
        148
        +    bind = $mod SHIFT, c, exec, morgen

      
        145
        149
           ## }}}

      
        146
        150
           ## sound {{{

      
        147
        
        -  bindl = , XF86AudioRaiseVolume, exec, wpctl set-volume -l 1.4 @DEFAULT_AUDIO_SINK@ 5%+

      
        148
        
        -  bindl = , XF86AudioLowerVolume, exec, wpctl set-volume -l 1.4 @DEFAULT_AUDIO_SINK@ 5%-

      
        149
        
        -  bindl = , XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle

      
        150
        
        -  bindl = , XF86AudioPlay, exec, playerctl play-pause

      
        151
        
        -  bindl = , XF86AudioNext, exec, playerctl next

      
        152
        
        -  bindl = , XF86AudioPrev, exec, playerctl previous

      
        
        151
        +    bindl = , XF86AudioRaiseVolume, exec, wpctl set-volume -l 1.4 @DEFAULT_AUDIO_SINK@ 5%+

      
        
        152
        +    bindl = , XF86AudioLowerVolume, exec, wpctl set-volume -l 1.4 @DEFAULT_AUDIO_SINK@ 5%-

      
        
        153
        +    bindl = , XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle

      
        
        154
        +    bindl = , XF86AudioPlay, exec, playerctl play-pause

      
        
        155
        +    bindl = , XF86AudioNext, exec, playerctl next

      
        
        156
        +    bindl = , XF86AudioPrev, exec, playerctl previous

      
        153
        157
           ## }}}

      
        154
        158
           ## brightness {{{

      
        155
        
        -  bindl = , XF86MonBrightnessUp, exec, brightnessctl set +5%

      
        156
        
        -  bindl = , XF86MonBrightnessDown, exec, brightnessctl set 5%-

      
        
        159
        +    bindl = , XF86MonBrightnessUp, exec, brightnessctl set +5%

      
        
        160
        +    bindl = , XF86MonBrightnessDown, exec, brightnessctl set 5%-

      
        157
        161
           ## }}}

      
        158
        162
           ## layout spesific {{{

      
        159
        
        -  bind = $mod, P, pseudo, # dwindle

      
        160
        
        -  bind = $mod, J, togglesplit, # dwindle

      
        
        163
        +    bind = $mod, P, pseudo, # dwindle

      
        
        164
        +    bind = $mod ALT, J, togglesplit, # dwindle

      
        161
        165
           # }}}

      
        162
        166
           ## wm {{{

      
        163
        
        -  bind = $mod, h, movefocus, l

      
        164
        
        -  bind = $mod, j, movefocus, d

      
        165
        
        -  bind = $mod, k, movefocus, u

      
        166
        
        -  bind = $mod, l, movefocus, r

      
        
        167
        +    bind = $mod, h, movefocus, l

      
        
        168
        +    bind = $mod, j, movefocus, d

      
        
        169
        +    bind = $mod, k, movefocus, u

      
        
        170
        +    bind = $mod, l, movefocus, r

      
        167
        171
         

      
        168
        
        -  # Scroll through existing workspaces with mainMod + scroll

      
        169
        
        -  bind = $mod, mouse_down, workspace, e-1

      
        170
        
        -  bind = $mod, mouse_up, workspace, e+1

      
        
        172
        +    # Scroll through existing workspaces with mainMod + scroll

      
        
        173
        +    bind = $mod, mouse_down, workspace, e-1

      
        
        174
        +    bind = $mod, mouse_up, workspace, e+1

      
        171
        175
         

      
        172
        
        -  # Move/resize windows with mainMod + LMB/RMB and dragging

      
        173
        
        -  bindm = $mod, mouse:272, movewindow

      
        174
        
        -  bindm = $mod, mouse:273, resizewindow

      
        
        176
        +    # Move/resize windows with mainMod + LMB/RMB and dragging

      
        
        177
        +    bindm = $mod, mouse:272, movewindow

      
        
        178
        +    bindm = $mod, mouse:273, resizewindow

      
        175
        179
         

      
        176
        
        -  bind = $mod Alt, h, resizeactive, -20 0

      
        177
        
        -  bind = $mod Alt, l, resizeactive, 20 0

      
        178
        
        -  bind = $mod Alt, j, resizeactive, 0 20

      
        179
        
        -  bind = $mod Alt, k, resizeactive, 0 -20

      
        
        180
        +    bind = $mod Alt, h, resizeactive, -20 0

      
        
        181
        +    bind = $mod Alt, l, resizeactive, 20 0

      
        
        182
        +    bind = $mod Alt, j, resizeactive, 0 20

      
        
        183
        +    bind = $mod Alt, k, resizeactive, 0 -20

      
        
        184
        +

      
        
        185
        +    bind = $mod SHIFT, h, movewindow, l

      
        
        186
        +    bind = $mod SHIFT, l, movewindow, r

      
        
        187
        +    bind = $mod SHIFT, k, movewindow, u

      
        
        188
        +    bind = $mod SHIFT, j, movewindow, d

      
        180
        189
         

      
        181
        190
             ## workspaces {{{

      
        182
        
        -    bind = $mod, 1, workspace, 1

      
        183
        
        -    bind = $mod, 2, workspace, 2

      
        184
        
        -    bind = $mod, 3, workspace, 3

      
        185
        
        -    bind = $mod, 4, workspace, 4

      
        186
        
        -    bind = $mod, 5, workspace, 5

      
        187
        
        -    bind = $mod, 6, workspace, 6

      
        188
        
        -    bind = $mod, 7, workspace, 7

      
        189
        
        -    bind = $mod, 8, workspace, 8

      
        190
        
        -    bind = $mod, 9, workspace, 9

      
        
        191
        +      bind = $mod, 1, workspace, 1

      
        
        192
        +      bind = $mod, 2, workspace, 2

      
        
        193
        +      bind = $mod, 3, workspace, 3

      
        
        194
        +      bind = $mod, 4, workspace, 4

      
        
        195
        +      bind = $mod, 5, workspace, 5

      
        
        196
        +      bind = $mod, 6, workspace, 6

      
        
        197
        +      bind = $mod, 7, workspace, 7

      
        
        198
        +      bind = $mod, 8, workspace, 8

      
        
        199
        +      bind = $mod, 9, workspace, 9

      
        191
        200
         

      
        192
        
        -    bind = $mod SHIFT, 1, movetoworkspace, 1

      
        193
        
        -    bind = $mod SHIFT, 2, movetoworkspace, 2

      
        194
        
        -    bind = $mod SHIFT, 3, movetoworkspace, 3

      
        195
        
        -    bind = $mod SHIFT, 4, movetoworkspace, 4

      
        196
        
        -    bind = $mod SHIFT, 5, movetoworkspace, 5

      
        197
        
        -    bind = $mod SHIFT, 6, movetoworkspace, 6

      
        198
        
        -    bind = $mod SHIFT, 7, movetoworkspace, 7

      
        199
        
        -    bind = $mod SHIFT, 8, movetoworkspace, 8

      
        200
        
        -    bind = $mod SHIFT, 9, movetoworkspace, 9

      
        
        201
        +      bind = $mod SHIFT, 1, movetoworkspace, 1

      
        
        202
        +      bind = $mod SHIFT, 2, movetoworkspace, 2

      
        
        203
        +      bind = $mod SHIFT, 3, movetoworkspace, 3

      
        
        204
        +      bind = $mod SHIFT, 4, movetoworkspace, 4

      
        
        205
        +      bind = $mod SHIFT, 5, movetoworkspace, 5

      
        
        206
        +      bind = $mod SHIFT, 6, movetoworkspace, 6

      
        
        207
        +      bind = $mod SHIFT, 7, movetoworkspace, 7

      
        
        208
        +      bind = $mod SHIFT, 8, movetoworkspace, 8

      
        
        209
        +      bind = $mod SHIFT, 9, movetoworkspace, 9

      
        201
        210
             # }}}

      
        202
        211
         # }}}

      
        203
        212
         # }}}