2023-11-05 04:53:31 -03:00
|
|
|
{
|
2024-08-14 14:32:10 -03:00
|
|
|
xdg.configFile."hypr/frappe.conf".source = builtins.fetchurl {
|
|
|
|
url = "https://raw.githubusercontent.com/catppuccin/hyprland/main/themes/frappe.conf";
|
|
|
|
sha256 = "1clw669i1n3dhawdw4clmjv75fy3smycb5iqk3sanzpr3y0i4vwx";
|
|
|
|
};
|
|
|
|
|
|
|
|
# Enable hypridle and hyprlock
|
|
|
|
services.hypridle = {
|
|
|
|
enable = true;
|
|
|
|
settings = {
|
|
|
|
general = {
|
|
|
|
after_sleep_cmd = "hyprctl dispatch dpms on";
|
|
|
|
ignore_dbus_inhibit = false;
|
|
|
|
lock_cmd = "hyprlock";
|
|
|
|
};
|
|
|
|
|
|
|
|
listener = [
|
|
|
|
{
|
2024-08-16 09:01:31 -03:00
|
|
|
timeout = 120;
|
2024-08-14 14:32:10 -03:00
|
|
|
on-timeout = "hyprlock";
|
|
|
|
}
|
|
|
|
{
|
2024-08-16 09:01:31 -03:00
|
|
|
timeout = 180;
|
2024-08-14 14:32:10 -03:00
|
|
|
on-timeout = "hyprctl dispatch dpms off";
|
|
|
|
on-resume = "hyprctl dispatch dpms on";
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
programs.hyprlock = {
|
|
|
|
enable = true;
|
|
|
|
extraConfig = # hyprlang
|
|
|
|
''
|
|
|
|
source = $HOME/.config/hypr/frappe.conf
|
|
|
|
|
|
|
|
$accent = $mauve
|
|
|
|
$accentAlpha = $mauveAlpha
|
|
|
|
$font = JetBrainsMono Nerd Font
|
|
|
|
|
|
|
|
# GENERAL
|
|
|
|
general {
|
|
|
|
disable_loading_bar = true
|
|
|
|
hide_cursor = true
|
|
|
|
}
|
|
|
|
|
|
|
|
# BACKGROUND
|
|
|
|
background {
|
|
|
|
monitor =
|
|
|
|
path = $HOME/internal/personal/wallpapers/wallhaven-2em8y6.jpg
|
|
|
|
blur_passes = 0
|
|
|
|
color = $base
|
|
|
|
}
|
|
|
|
|
|
|
|
# LAYOUT
|
|
|
|
label {
|
|
|
|
monitor =
|
|
|
|
text = Layout: $LAYOUT
|
|
|
|
color = $text
|
|
|
|
font_size = 25
|
|
|
|
font_family = $font
|
|
|
|
position = 30, -30
|
|
|
|
halign = left
|
|
|
|
valign = top
|
|
|
|
}
|
|
|
|
|
|
|
|
# TIME
|
|
|
|
label {
|
|
|
|
monitor =
|
|
|
|
text = $TIME
|
|
|
|
color = $text
|
|
|
|
font_size = 90
|
|
|
|
font_family = $font
|
|
|
|
position = -30, 0
|
|
|
|
halign = right
|
|
|
|
valign = top
|
|
|
|
}
|
|
|
|
|
|
|
|
# DATE
|
|
|
|
label {
|
|
|
|
monitor =
|
|
|
|
text = cmd[update:43200000] date +"%A, %d %B %Y"
|
|
|
|
color = $text
|
|
|
|
font_size = 25
|
|
|
|
font_family = $font
|
|
|
|
position = -30, -150
|
|
|
|
halign = right
|
|
|
|
valign = top
|
|
|
|
}
|
|
|
|
|
|
|
|
# USER AVATAR
|
|
|
|
image {
|
|
|
|
monitor =
|
|
|
|
path = $HOME/.face
|
|
|
|
size = 100
|
|
|
|
border_color = $accent
|
|
|
|
position = 0, 75
|
|
|
|
halign = center
|
|
|
|
valign = center
|
|
|
|
}
|
|
|
|
|
|
|
|
# INPUT FIELD
|
|
|
|
input-field {
|
|
|
|
monitor =
|
|
|
|
size = 300, 60
|
|
|
|
outline_thickness = 4
|
|
|
|
dots_size = 0.2
|
|
|
|
dots_spacing = 0.2
|
|
|
|
dots_center = true
|
|
|
|
outer_color = $accent
|
|
|
|
inner_color = $surface0
|
|
|
|
font_color = $text
|
|
|
|
fade_on_empty = false
|
|
|
|
placeholder_text = <span foreground="##$textAlpha"><i> Logged in as </i><span foreground="##$accentAlpha">$USER</span></span>
|
|
|
|
hide_input = false
|
|
|
|
check_color = $accent
|
|
|
|
fail_color = $red
|
|
|
|
fail_text = <i>$FAIL <b>($ATTEMPTS)</b></i>
|
|
|
|
capslock_color = $yellow
|
|
|
|
position = 0, -47
|
|
|
|
halign = center
|
|
|
|
valign = center
|
|
|
|
}
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
# Configure hyprland - we enable it in NixOS.
|
2024-08-10 17:20:17 -03:00
|
|
|
xdg.configFile."hypr/hyprland.conf".text = # hyprlang
|
|
|
|
''
|
2024-08-14 14:32:10 -03:00
|
|
|
source = $HOME/.config/hypr/frappe.conf
|
2024-08-10 17:20:17 -03:00
|
|
|
|
|
|
|
#
|
|
|
|
# Please note not all available settings / options are set here.
|
|
|
|
# For a full list, see the wiki
|
|
|
|
#
|
|
|
|
|
|
|
|
autogenerated = 0 # remove this line to remove the warning
|
|
|
|
|
|
|
|
# See https://wiki.hyprland.org/Configuring/Monitors/
|
2024-08-13 21:58:30 -03:00
|
|
|
monitor = DP-3, 1920x1080@74.97, 2561x0, 1
|
|
|
|
monitor = DP-2, 2560x1440@165.00, 0x0, 1
|
2024-08-10 17:20:17 -03:00
|
|
|
|
|
|
|
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
|
|
|
|
|
|
|
|
# Inject home-manager session variables
|
|
|
|
exec-once = /etc/profiles/per-user/wizardlink/etc/profile.d/hm-session-vars.sh
|
|
|
|
|
2024-08-15 16:12:37 -03:00
|
|
|
# Start the core services of my desktop
|
2024-08-10 17:20:17 -03:00
|
|
|
exec-once = ~/.local/share/scripts/hyprland/start_services.sh
|
|
|
|
|
2024-08-15 16:12:37 -03:00
|
|
|
# Open the apps I always use
|
|
|
|
exec-once = ~/.local/share/scripts/hyprland/start_apps.sh
|
|
|
|
|
2024-08-10 17:20:17 -03:00
|
|
|
# Set cursor size.
|
|
|
|
env = HYPRCURSOR_SIZE, 36
|
|
|
|
env = XCURSOR_SIZE, 36
|
|
|
|
|
|
|
|
# Source a file (multi-file configs)
|
|
|
|
# source = ~/.config/hypr/myColors.conf
|
|
|
|
|
|
|
|
# For all categories, see https://wiki.hyprland.org/Configuring/Variables/
|
|
|
|
input {
|
2024-08-15 16:12:37 -03:00
|
|
|
kb_layout =
|
|
|
|
kb_variant =
|
2024-08-13 21:58:30 -03:00
|
|
|
kb_model =
|
2024-08-15 16:12:37 -03:00
|
|
|
kb_options =
|
2024-08-13 21:58:30 -03:00
|
|
|
kb_rules =
|
2024-08-10 17:20:17 -03:00
|
|
|
|
2024-08-13 21:58:30 -03:00
|
|
|
follow_mouse = 1
|
|
|
|
float_switch_override_focus = 1
|
2024-08-10 17:20:17 -03:00
|
|
|
|
2024-08-13 21:58:30 -03:00
|
|
|
accel_profile = flat
|
|
|
|
force_no_accel = true
|
2024-08-10 17:20:17 -03:00
|
|
|
|
2024-08-13 21:58:30 -03:00
|
|
|
sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
|
2024-08-10 17:20:17 -03:00
|
|
|
|
2024-08-13 21:58:30 -03:00
|
|
|
tablet {
|
|
|
|
output = DP-2
|
|
|
|
}
|
2024-08-10 17:20:17 -03:00
|
|
|
}
|
|
|
|
|
|
|
|
general {
|
2024-08-13 21:58:30 -03:00
|
|
|
# See https://wiki.hyprland.org/Configuring/Variables/ for more
|
2024-08-10 17:20:17 -03:00
|
|
|
|
2024-08-13 21:58:30 -03:00
|
|
|
gaps_in = 6
|
|
|
|
gaps_out = 18
|
|
|
|
border_size = 2
|
|
|
|
col.active_border = $base $surface0 $green 45deg
|
|
|
|
col.inactive_border = $base $surface0 $blue 45deg
|
2024-08-10 17:20:17 -03:00
|
|
|
|
2024-08-13 21:58:30 -03:00
|
|
|
layout = dwindle
|
2024-08-10 17:20:17 -03:00
|
|
|
}
|
|
|
|
|
|
|
|
decoration {
|
2024-08-13 21:58:30 -03:00
|
|
|
# See https://wiki.hyprland.org/Configuring/Variables/ for more
|
|
|
|
|
|
|
|
rounding = 8
|
|
|
|
# FIXME: Check these deprecations.
|
|
|
|
#blur = yes
|
|
|
|
#blur_size = 3
|
|
|
|
#blur_passes = 1
|
|
|
|
#blur_new_optimizations = on
|
|
|
|
|
|
|
|
drop_shadow = yes
|
|
|
|
shadow_range = 4
|
|
|
|
shadow_render_power = 3
|
|
|
|
col.shadow = $crust
|
2024-08-10 17:20:17 -03:00
|
|
|
}
|
|
|
|
|
|
|
|
animations {
|
2024-08-13 21:58:30 -03:00
|
|
|
enabled = yes
|
2024-08-10 17:20:17 -03:00
|
|
|
|
2024-08-13 21:58:30 -03:00
|
|
|
# Some default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more
|
2024-08-10 17:20:17 -03:00
|
|
|
|
2024-08-13 21:58:30 -03:00
|
|
|
bezier = myBezier, 0.05, 0.9, 0.1, 1.05
|
2024-08-10 17:20:17 -03:00
|
|
|
|
2024-08-13 21:58:30 -03:00
|
|
|
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
|
2024-08-10 17:20:17 -03:00
|
|
|
}
|
|
|
|
|
|
|
|
dwindle {
|
2024-08-13 21:58:30 -03:00
|
|
|
# See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more
|
|
|
|
pseudotile = yes # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
|
|
|
|
preserve_split = yes # you probably want this
|
2024-08-10 17:20:17 -03:00
|
|
|
}
|
|
|
|
|
|
|
|
master {
|
2024-08-13 21:58:30 -03:00
|
|
|
# See https://wiki.hyprland.org/Configuring/Master-Layout/ for more
|
|
|
|
new_status = slave
|
2024-08-10 17:20:17 -03:00
|
|
|
}
|
|
|
|
|
|
|
|
gestures {
|
2024-08-13 21:58:30 -03:00
|
|
|
# See https://wiki.hyprland.org/Configuring/Variables/ for more
|
|
|
|
workspace_swipe = off
|
2024-08-10 17:20:17 -03:00
|
|
|
}
|
|
|
|
|
|
|
|
# Example windowrule v1
|
|
|
|
# windowrule = float, ^(kitty)$
|
|
|
|
# Example windowrule v2
|
|
|
|
# windowrulev2 = float,class:^(kitty)$,title:^(kitty)$
|
|
|
|
# See https://wiki.hyprland.org/Configuring/Window-Rules/ for more
|
|
|
|
|
|
|
|
# Bind workspaces to specific monitors
|
|
|
|
workspace = 1, monitor:DP-2
|
|
|
|
workspace = 2, monitor:DP-3
|
|
|
|
workspace = 3, monitor:DP-2
|
|
|
|
workspace = 4, monitor:DP-3
|
|
|
|
workspace = 5, monitor:DP-2
|
|
|
|
workspace = 6, monitor:DP-3
|
|
|
|
workspace = 7, monitor:DP-2
|
|
|
|
workspace = 8, monitor:DP-3
|
|
|
|
workspace = 9, monitor:DP-2
|
|
|
|
workspace = 0, monitor:DP-3
|
|
|
|
|
|
|
|
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
|
|
|
|
$mainMod = SUPER
|
|
|
|
|
|
|
|
# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
|
|
|
|
bind = $mainMod CTRL, F, fullscreenstate, -1 2
|
|
|
|
bind = $mainMod CTRL, L, exec, cliphist list | rofi -dmenu | cliphist decode | wl-copy
|
|
|
|
bind = $mainMod CTRL, P, exec, ~/.local/share/scripts/hyprland/screenshot_area.sh
|
|
|
|
bind = $mainMod CTRL, V, pin
|
|
|
|
bind = $mainMod SHIFT, F, fullscreen, 1
|
|
|
|
bind = $mainMod SHIFT, P, exec, ~/.local/share/scripts/hyprland/screenshot.sh
|
|
|
|
bind = $mainMod, C, killactive
|
|
|
|
bind = $mainMod, E, exec, thunar
|
|
|
|
bind = $mainMod, F, fullscreen
|
|
|
|
bind = $mainMod, M, exit
|
|
|
|
bind = $mainMod, O, togglesplit # dwindle
|
|
|
|
bind = $mainMod, P, pseudo # dwindle
|
|
|
|
bind = $mainMod, Q, exec, alacritty
|
|
|
|
bind = $mainMod, R, exec, rofi -show drun
|
|
|
|
bind = $mainMod, V, togglefloating
|
|
|
|
|
|
|
|
# Move focus with mainMod + arrow keys
|
|
|
|
bind = $mainMod, H, movefocus, l
|
|
|
|
bind = $mainMod, L, movefocus, r
|
|
|
|
bind = $mainMod, K, movefocus, u
|
|
|
|
bind = $mainMod, J, movefocus, 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]
|
|
|
|
bind = $mainMod SHIFT, 1, movetoworkspace, 1
|
|
|
|
bind = $mainMod SHIFT, 2, movetoworkspace, 2
|
|
|
|
bind = $mainMod SHIFT, 3, movetoworkspace, 3
|
|
|
|
bind = $mainMod SHIFT, 4, movetoworkspace, 4
|
|
|
|
bind = $mainMod SHIFT, 5, movetoworkspace, 5
|
|
|
|
bind = $mainMod SHIFT, 6, movetoworkspace, 6
|
|
|
|
bind = $mainMod SHIFT, 7, movetoworkspace, 7
|
|
|
|
bind = $mainMod SHIFT, 8, movetoworkspace, 8
|
|
|
|
bind = $mainMod SHIFT, 9, movetoworkspace, 9
|
|
|
|
bind = $mainMod SHIFT, 0, movetoworkspace, 10
|
|
|
|
|
|
|
|
# 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
|
|
|
|
bind = $mainMod SHIFT, H, movewindow, l
|
|
|
|
bind = $mainMod SHIFT, L, movewindow, r
|
|
|
|
bind = $mainMod SHIFT, K, movewindow, u
|
|
|
|
bind = $mainMod SHIFT, J, movewindow, d
|
|
|
|
bind = $mainMod ALT, H, resizeactive, -5% 0
|
|
|
|
bind = $mainMod ALT, L, resizeactive, 5% 0
|
|
|
|
bind = $mainMod ALT, K, resizeactive, 0 -5%
|
|
|
|
bind = $mainMod ALT, J, resizeactive, 0 5%
|
|
|
|
bindm = $mainMod, mouse:272, movewindow
|
|
|
|
bindm = $mainMod, mouse:273, resizewindow
|
|
|
|
|
|
|
|
# Volume changes
|
|
|
|
binde = , XF86AudioRaiseVolume, exec, wpctl set-volume -l 1.5 @DEFAULT_AUDIO_SINK@ 1%+
|
|
|
|
binde = , XF86AudioLowerVolume, exec, wpctl set-volume -l 1.5 @DEFAULT_AUDIO_SINK@ 1%-
|
|
|
|
bind = , XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
|
|
|
|
|
|
|
|
# Passthrough binds
|
|
|
|
bind = SHIFT CTRL, F12, pass, ^(com.obsproject.Studio)$
|
|
|
|
|
|
|
|
# Window rules for xwaylandvideobridge
|
|
|
|
windowrulev2 = opacity 0.0 override 0.0 override,class:^(xwaylandvideobridge)$
|
|
|
|
windowrulev2 = noanim,class:^(xwaylandvideobridge)$
|
|
|
|
windowrulev2 = nofocus,class:^(xwaylandvideobridge)$
|
|
|
|
windowrulev2 = noinitialfocus,class:^(xwaylandvideobridge)$
|
|
|
|
|
|
|
|
# Rules for windowkill
|
|
|
|
windowrule = noborder, ^(steam_app_2726450)$
|
|
|
|
windowrule = pin, ^(steam_app_2726450)$
|
|
|
|
windowrule = opacity 0.9, ^(steam_app_2726450)$
|
2024-08-14 14:32:10 -03:00
|
|
|
|
|
|
|
# Rules for Awakened PoE
|
|
|
|
windowrulev2 = tag +poe, class:^(steam_app_238960)$
|
|
|
|
windowrulev2 = allowsinput, tag:poe
|
|
|
|
|
|
|
|
windowrulev2 = tag +apt, class:^(awakened-poe-trade)$
|
|
|
|
windowrulev2 = float, tag:apt
|
|
|
|
windowrulev2 = noblur, tag:apt
|
|
|
|
windowrulev2 = noborder, tag:apt
|
|
|
|
windowrulev2 = noshadow, tag:apt
|
2024-08-15 16:12:37 -03:00
|
|
|
|
|
|
|
# Rules for anki
|
|
|
|
windowrulev2 = float, class:^(anki)$
|
2024-08-21 18:47:46 -03:00
|
|
|
|
|
|
|
windowrulev2 = tag +gw2, class:^(steam_app_1284210)$
|
|
|
|
windowrulev2 = noblur, tag:gw2
|
|
|
|
windowrulev2 = noborder, tag:gw2
|
2024-08-10 17:20:17 -03:00
|
|
|
'';
|
2023-11-05 04:53:31 -03:00
|
|
|
}
|