all repos

dotfiles @ e87d92384cd09d0372a79cfbe0311ad1f1ec4ea0

my dotfiles

config/hypr/hyprland.conf (view raw)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
# vim: foldmethod=marker ts=2 sw=2

# https://wiki.hyprland.org/Configuring/Variables/
# https://wiki.hyprland.org/Configuring/Monitors/

monitor=,highres,auto,1

## variables {{{
$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 = /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
exec-once = blueman-applet
# }}}
## inputs {{{
input {
    kb_layout = us,ua
    kb_variant =
    kb_model =
    kb_options = grp:win_space_toggle,grp:alt_shift_toggle,ctrl:nocaps
    kb_rules =

    follow_mouse = 1
    sensitivity = 0.4 # -1.0 - 1.0, 0 means no modification.

    touchpad {
      middle_button_emulation = true
    }
}
# }}}
## general {{{
general {
    gaps_in = 2
    gaps_out = 4
    border_size = 2
    col.active_border = rgba(7aa2f7aa)
    col.inactive_border = rgba(414868aa)

    layout = master # dwindle
}
# }}}
## decorations {{{
decoration {
    rounding = 3

    blur {
        enabled = true
        size = 3
        passes = 1
    }

    drop_shadow = true
    shadow_range = 4
    shadow_render_power = 3
    col.shadow = rgba(1a1a1aee)
}
# }}}
## animations {{{
animations {
    enabled = false

    bezier = myBezier, 0.05, 0.9, 0.1, 1.05
    animation = windows, 1, 7, myBezier
    animation = windowsOut, 1, 7, default, popin 80%
    animation = border, 1, 10, default
    animation = borderangle, 1, 8, default
    animation = fade, 1, 7, default
    animation = workspaces, 1, 6, default
}
# }}}
## dwindle layout {{{
# https://wiki.hyprland.org/Configuring/Dwindle-Layout
dwindle {
  pseudotile = true # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
  preserve_split = true # you probably want this
  no_gaps_when_only = 1
}
# }}}
## master layout {{{ 
# https://wiki.hyprland.org/Configuring/Master-Layout
master {
  new_is_master = false
  no_gaps_when_only = true
}
# }}}
## misc {{{
misc {
  disable_hyprland_logo = true
  disable_splash_rendering = true
}
# }}}
## gestures {{{
gestures {
  workspace_swipe = true
}
# }}}
## window rules {{{
windowrule = workspace 1, title:(Postman)
windowrule = workspace 2, title:(Firefox)
windowrule = workspace 3, title:(Rider)
windowrule = workspace 4, title:(Logseq|Anki)
windowrule = workspace 5, title:(Telegram|Discord)
windowrule = workspace 7, title:(Spotify)
# }}}
## keymaps {{{
  bind = $mod SHIFT, Return, exec, wofi --show drun --allow-images
  bind = $mod, Return, exec, $terminal
  bind = $mod, q, killactive
  bind = $mod SHIFT, Escape, exit
  bind = $mod, f, togglefloating,
  bind = ,Print,exec,grim
  bind = $mod ALT, r, exec, hyprctl reload

  ## sound {{{
  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 = , XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
  bindl = , XF86AudioPlay, exec, playerctl play-pause
  bindl = , XF86AudioNext, exec, playerctl next
  bindl = , XF86AudioPrev, exec, playerctl previous
  ## }}}
  ## brightness {{{
  bindl = , XF86MonBrightnessUp, exec, brightnessctl set +5%
  bindl = , XF86MonBrightnessDown, exec, brightnessctl set 5%-
  ## }}}
  ## programs {{{
  bind = $mod SHIFT, w, exec, firefox
  bind = $mod SHIFT, f, exec, nautlius
  ## }}}
  ## layout spesific {{{
  bind = $mod, P, pseudo, # dwindle
  bind = $mod, J, togglesplit, # dwindle
  # }}}
  ## wm {{{
  bind = $mod, h, movefocus, l
  bind = $mod, j, movefocus, d
  bind = $mod, k, movefocus, u
  bind = $mod, l, movefocus, r

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

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

  ## workspaces {{{
  bind = $mod, 1, workspace, 1
  bind = $mod, 2, workspace, 2
  bind = $mod, 3, workspace, 3
  bind = $mod, 4, workspace, 4
  bind = $mod, 5, workspace, 5
  bind = $mod, 6, workspace, 6
  bind = $mod, 7, workspace, 7
  bind = $mod, 8, workspace, 8
  bind = $mod, 9, workspace, 9

  bind = $mod SHIFT, 1, movetoworkspace, 1
  bind = $mod SHIFT, 2, movetoworkspace, 2
  bind = $mod SHIFT, 3, movetoworkspace, 3
  bind = $mod SHIFT, 4, movetoworkspace, 4
  bind = $mod SHIFT, 5, movetoworkspace, 5
  bind = $mod SHIFT, 6, movetoworkspace, 6
  bind = $mod SHIFT, 7, movetoworkspace, 7
  bind = $mod SHIFT, 8, movetoworkspace, 8
  bind = $mod SHIFT, 9, movetoworkspace, 9
  # }}}
# }}}
# }}}