2023-05-05 13:32:51 +00:00
|
|
|
monitor=,preferred,auto,auto
|
|
|
|
|
2023-09-14 13:42:20 +00:00
|
|
|
# Load colors
|
2023-12-01 22:51:50 +00:00
|
|
|
source = ~/.config/hypr/colors.conf
|
2023-05-05 13:32:51 +00:00
|
|
|
|
|
|
|
input {
|
2023-09-14 13:42:20 +00:00
|
|
|
kb_layout = us
|
|
|
|
kb_variant =
|
|
|
|
kb_model =
|
2024-09-19 15:57:15 +00:00
|
|
|
kb_options = compose:ralt,caps:escape
|
2023-09-14 13:42:20 +00:00
|
|
|
kb_rules =
|
2023-05-05 13:32:51 +00:00
|
|
|
|
2023-09-14 13:42:20 +00:00
|
|
|
numlock_by_default = true
|
2023-05-05 13:32:51 +00:00
|
|
|
|
2023-09-14 13:42:20 +00:00
|
|
|
follow_mouse = 1
|
2023-05-05 13:32:51 +00:00
|
|
|
|
2023-09-14 13:42:20 +00:00
|
|
|
touchpad {
|
|
|
|
natural_scroll = no
|
|
|
|
}
|
2023-05-05 13:32:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
general {
|
2023-09-14 13:42:20 +00:00
|
|
|
|
|
|
|
gaps_in = 5
|
|
|
|
gaps_out = 3
|
|
|
|
border_size = 2
|
|
|
|
col.active_border = $color3
|
|
|
|
col.inactive_border = $color0
|
|
|
|
layout = dwindle
|
2023-05-05 13:32:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
decoration {
|
2023-09-14 13:42:20 +00:00
|
|
|
rounding = 5
|
|
|
|
blur {
|
|
|
|
enabled = true
|
|
|
|
special = false
|
|
|
|
size = 2
|
|
|
|
}
|
|
|
|
drop_shadow = yes
|
|
|
|
shadow_range = 4
|
|
|
|
shadow_render_power = 3
|
|
|
|
col.shadow = rgba(1a1a1aee)
|
|
|
|
dim_special = 0.6
|
2023-05-05 13:32:51 +00:00
|
|
|
}
|
|
|
|
|
2023-09-14 13:42:20 +00:00
|
|
|
misc {
|
2024-01-11 23:38:53 +00:00
|
|
|
force_default_wallpaper = 0
|
2023-09-14 13:42:20 +00:00
|
|
|
animate_manual_resizes = true
|
|
|
|
animate_mouse_windowdragging = true
|
|
|
|
|
|
|
|
mouse_move_enables_dpms = true
|
|
|
|
key_press_enables_dpms = true
|
|
|
|
|
|
|
|
enable_swallow = true
|
|
|
|
# swallow_regex = class regex
|
|
|
|
}
|
2023-05-05 13:32:51 +00:00
|
|
|
|
2023-09-14 13:42:20 +00:00
|
|
|
animations {
|
|
|
|
enabled = yes
|
|
|
|
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
|
2023-05-05 13:32:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
dwindle {
|
2023-09-14 13:42:20 +00:00
|
|
|
pseudotile = yes
|
|
|
|
preserve_split = yes
|
2023-05-05 13:32:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
master {
|
2024-09-08 19:51:50 +00:00
|
|
|
new_status=master
|
2023-05-05 13:32:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
gestures {
|
2023-09-14 13:42:20 +00:00
|
|
|
workspace_swipe = off
|
2023-05-05 13:32:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
binds {
|
2023-09-14 13:42:20 +00:00
|
|
|
workspace_back_and_forth = true
|
|
|
|
allow_workspace_cycles = true
|
2023-05-05 13:32:51 +00:00
|
|
|
}
|
|
|
|
|
2024-06-01 18:58:43 +00:00
|
|
|
device {
|
2024-09-08 19:51:50 +00:00
|
|
|
name = moji-1k-nrf-receiver
|
2023-09-14 13:42:20 +00:00
|
|
|
sensitivity = -1
|
2023-05-05 13:32:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2023-09-14 13:42:20 +00:00
|
|
|
# Window and layer rules
|
2023-05-05 13:32:51 +00:00
|
|
|
layerrule = noanim,rofi
|
2023-09-14 13:42:20 +00:00
|
|
|
windowrulev2 = workspace special:spotify silent, class:^(Spotify)$
|
|
|
|
windowrulev2 = workspace special:term silent, class:^(scratchpad)$
|
2023-10-17 22:16:27 +00:00
|
|
|
windowrulev2 = workspace 7 silent, class:^(TeamSpeak 3)$
|
|
|
|
windowrulev2 = workspace 7 silent, class:^(discord)$
|
|
|
|
windowrulev2 = workspace 1 silent, class:^(firefox)$
|
2023-05-05 13:32:51 +00:00
|
|
|
|
|
|
|
# Env
|
|
|
|
env = MOZ_ENABLE_WAYLAND,1
|
2023-05-11 16:48:17 +00:00
|
|
|
env = SDL_VIDEODRIVER,wayland
|
2023-09-14 13:42:20 +00:00
|
|
|
env = GDK_BACKEND=wayland,x11
|
|
|
|
env = QT_QPA_PLATFORM=wayland;xcb
|
|
|
|
env = XCURSOR_SIZE=24
|
2023-05-05 13:32:51 +00:00
|
|
|
|
|
|
|
# Autostart
|
|
|
|
exec-once = waybar
|
|
|
|
exec-once = swaync
|
2023-12-01 22:51:50 +00:00
|
|
|
exec-once = swww init
|
2023-09-14 13:42:20 +00:00
|
|
|
exec-once = swayidle -w
|
|
|
|
exec-once = alacritty --class scratchpad
|
2023-05-05 13:32:51 +00:00
|
|
|
|
2023-09-14 13:42:20 +00:00
|
|
|
# Keybinds
|
2023-05-05 13:32:51 +00:00
|
|
|
$mainMod = SUPER
|
|
|
|
$mainModShift = SUPER_SHIFT
|
|
|
|
|
|
|
|
bind = $mainMod, Return, exec, alacritty
|
2023-09-14 13:42:20 +00:00
|
|
|
#bind = $mainModShift, Q, exec, $XDG_CONFIG_HOME/hypr/killscript.sh
|
|
|
|
bind = $mainMod, Tab, focuscurrentorlast
|
|
|
|
bind = $mainModShift, Q, killactive
|
2023-05-05 13:32:51 +00:00
|
|
|
bind = $mainModShift, E, exec, $XDG_CONFIG_HOME/rofi/powermenu.sh
|
|
|
|
bind = $mainModShift, Space, togglefloating
|
|
|
|
bind = $mainMod, D, exec, rofi -show drun -theme $XDG_CONFIG_HOME/rofi/launcher.rasi
|
|
|
|
bind = $mainMod, M, exec, $XDG_CONFIG_HOME/waybar/mute-toggle.sh
|
2023-12-01 22:51:50 +00:00
|
|
|
#bind = $mainMod, J, togglesplit, # dwindle
|
2023-05-05 13:32:51 +00:00
|
|
|
bind = $mainMod, F, fullscreen
|
2024-03-31 21:17:02 +00:00
|
|
|
bind =, Print, exec, $XDG_DATA_HOME/scripts/save-screenshot.sh
|
2023-05-05 13:32:51 +00:00
|
|
|
|
2023-05-11 16:48:36 +00:00
|
|
|
# Audio buttons
|
|
|
|
binde =, XF86AudioRaiseVolume, exec, playerctl --player=spotify,%any volume 0.05+
|
|
|
|
binde =, XF86AudioLowerVolume, exec, playerctl --player=spotify,%any volume 0.05-
|
|
|
|
bind =, XF86AudioNext, exec, playerctl --player=spotify,%any next
|
|
|
|
bind =, XF86AudioPrev, exec, playerctl --player=spotify,%any previous
|
|
|
|
bind =, XF86AudioPlay, exec, playerctl --player=spotify,%any play-pause
|
|
|
|
|
2023-05-05 13:32:51 +00:00
|
|
|
# Move focus with mainMod + arrow keys
|
|
|
|
bind = $mainMod, left, movefocus, l
|
|
|
|
bind = $mainMod, right, movefocus, r
|
|
|
|
bind = $mainMod, up, movefocus, u
|
|
|
|
bind = $mainMod, down, movefocus, d
|
|
|
|
|
2023-12-01 22:51:50 +00:00
|
|
|
# Move focus with mainMod + hjkl
|
|
|
|
|
|
|
|
bind = $mainMod, h, movefocus, l
|
|
|
|
bind = $mainMod, l, movefocus, r
|
|
|
|
bind = $mainMod, k, movefocus, u
|
|
|
|
bind = $mainMod, j, movefocus, d
|
|
|
|
|
2023-05-05 13:32:51 +00:00
|
|
|
# Move windows with mainMod + Shift + arrow
|
|
|
|
bind = $mainModShift, left, movewindow, l
|
|
|
|
bind = $mainModShift, right, movewindow,r
|
|
|
|
bind = $mainModShift, up, movewindow, u
|
|
|
|
bind = $mainModShift, down, movewindow, d
|
|
|
|
|
|
|
|
# Switch workspaces with mainMod + [0-9]
|
|
|
|
bind = $mainMod, 1, workspace, 1
|
|
|
|
bind = $mainMod, 2, workspace, 2
|
|
|
|
bind = $mainMod, 3, workspace, 3
|
|
|
|
bind = $mainMod, 4, workspace, 4
|
|
|
|
bind = $mainMod, 5, workspace, 5
|
|
|
|
bind = $mainMod, 6, workspace, 6
|
|
|
|
bind = $mainMod, 7, workspace, 7
|
|
|
|
bind = $mainMod, 8, workspace, 8
|
|
|
|
bind = $mainMod, 9, workspace, 9
|
|
|
|
bind = $mainMod, 0, workspace, 10
|
|
|
|
|
|
|
|
# Move active window to a workspace with mainMod + SHIFT + [0-9]
|
2023-09-14 13:42:20 +00:00
|
|
|
bind = $mainMod SHIFT, 1, movetoworkspacesilent, 1
|
|
|
|
bind = $mainMod SHIFT, 2, movetoworkspacesilent, 2
|
|
|
|
bind = $mainMod SHIFT, 3, movetoworkspacesilent, 3
|
|
|
|
bind = $mainMod SHIFT, 4, movetoworkspacesilent, 4
|
|
|
|
bind = $mainMod SHIFT, 5, movetoworkspacesilent, 5
|
|
|
|
bind = $mainMod SHIFT, 6, movetoworkspacesilent, 6
|
|
|
|
bind = $mainMod SHIFT, 7, movetoworkspacesilent, 7
|
|
|
|
bind = $mainMod SHIFT, 8, movetoworkspacesilent, 8
|
|
|
|
bind = $mainMod SHIFT, 9, movetoworkspacesilent, 9
|
|
|
|
bind = $mainMod SHIFT, 0, movetoworkspacesilent, 10
|
2023-05-05 13:32:51 +00:00
|
|
|
|
|
|
|
# Scroll through existing workspaces with mainMod + scroll
|
|
|
|
bind = $mainMod, mouse_down, workspace, e+1
|
|
|
|
bind = $mainMod, mouse_up, workspace, e-1
|
|
|
|
|
|
|
|
# Move/resize windows with mainMod + LMB/RMB and dragging
|
|
|
|
bindm = $mainMod, mouse:272, movewindow
|
|
|
|
bindm = $mainMod, mouse:273, resizewindow
|
|
|
|
|
|
|
|
# Scratchpad
|
2023-09-14 13:42:20 +00:00
|
|
|
bind = $mainMod, F1, togglespecialworkspace, term
|
|
|
|
bind = $mainMod, F2, togglespecialworkspace, spotify
|
2023-05-05 13:32:51 +00:00
|
|
|
|