2023-06-18 10:40:57 +01:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
...
|
2023-06-26 13:23:27 +01:00
|
|
|
}: {
|
2023-04-11 11:24:05 +01:00
|
|
|
imports = [
|
2023-04-28 17:01:53 +01:00
|
|
|
./swaylock.nix
|
|
|
|
./waybar.nix
|
2023-05-16 09:11:39 +01:00
|
|
|
./gtk.nix
|
|
|
|
./dunst.nix
|
|
|
|
./rofi.nix
|
2023-04-11 11:24:05 +01:00
|
|
|
];
|
2023-06-28 13:33:12 +01:00
|
|
|
programs.firefox.package = pkgs.firefox-wayland;
|
2023-04-28 17:01:53 +01:00
|
|
|
programs.rofi.package = pkgs.rofi-wayland;
|
2023-04-11 11:24:05 +01:00
|
|
|
wayland.windowManager.hyprland = {
|
|
|
|
enable = true;
|
2023-06-19 10:27:05 +01:00
|
|
|
package = null; # Use package from nixpkgs
|
2023-05-17 17:10:18 +01:00
|
|
|
xwayland = {
|
|
|
|
enable = true;
|
|
|
|
hidpi = true;
|
|
|
|
};
|
2023-06-18 10:40:57 +01:00
|
|
|
extraConfig = lib.mkDefault ''source=./common.conf '';
|
2023-04-11 11:24:05 +01:00
|
|
|
};
|
2023-06-18 10:40:57 +01:00
|
|
|
xdg.configFile."hypr/common.conf".text = ''
|
2023-06-19 10:27:05 +01:00
|
|
|
monitor = ,preferred,auto,auto
|
|
|
|
exec-once = waybar & hyprpaper & dunst
|
2023-06-18 10:40:57 +01:00
|
|
|
source = ./macchiato.conf
|
|
|
|
|
2023-06-19 10:27:05 +01:00
|
|
|
env = XDG_CURRENT_DESKTOP=Hyprland
|
|
|
|
env = XDG_SESSION_TYPE=wayland
|
|
|
|
env = XDG_SESSION_DESKTOP=Hyprland
|
|
|
|
env = GDK_BACKEND=wayland,x11
|
|
|
|
env = GTK_THEME,Sweet-Dark
|
|
|
|
env = XCURSOR_THEME,Catppuccin-Macchiato-Dark-Cursors
|
2023-06-18 10:40:57 +01:00
|
|
|
env = XCURSOR_SIZE,24
|
|
|
|
|
|
|
|
input {
|
|
|
|
kb_layout = gb
|
|
|
|
follow_mouse = 1
|
|
|
|
touchpad {
|
2023-06-28 08:40:34 +01:00
|
|
|
natural_scroll = yes
|
2023-06-18 10:40:57 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
general {
|
|
|
|
gaps_in = 5
|
|
|
|
gaps_out = 20
|
|
|
|
border_size = 2
|
|
|
|
col.active_border = $mauve
|
|
|
|
col.group_border_active = $mauve
|
|
|
|
col.inactive_border = $surface2
|
|
|
|
col.group_border = $surface2
|
2023-06-28 16:20:02 +01:00
|
|
|
layout = dwindle
|
|
|
|
}
|
|
|
|
|
|
|
|
dwindle {
|
|
|
|
force_split = 2
|
|
|
|
preserve_split = true
|
2023-06-18 10:40:57 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
decoration {
|
|
|
|
rounding = 10
|
|
|
|
blur = yes
|
|
|
|
blur_size = 5
|
|
|
|
blur_passes = 3
|
|
|
|
blur_new_optimizations = on
|
|
|
|
blur_xray = off
|
|
|
|
drop_shadow = yes
|
|
|
|
shadow_range = 4
|
|
|
|
shadow_render_power = 3
|
|
|
|
col.shadow = $base
|
|
|
|
}
|
|
|
|
|
|
|
|
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
|
|
|
|
}
|
|
|
|
|
|
|
|
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
|
2023-06-28 16:20:02 +01:00
|
|
|
bind = ALT, Return, exec, wezterm
|
|
|
|
bind = ALT, Space, exec, pkill rofi || rofi -show drun
|
2023-06-30 09:11:47 +01:00
|
|
|
bind = ALT, E, exec, thunar
|
2023-06-28 16:20:02 +01:00
|
|
|
bind = ALT, Q, killactive,
|
|
|
|
bind = ALT, P, exec, swaylock
|
|
|
|
bind = ALT, M, fullscreen, 0
|
|
|
|
bind = ALT SHIFT, M, fullscreen, 1
|
|
|
|
bind = ALT SHIFT, P, exec, powermenu
|
|
|
|
bind = ALT SHIFT, Space, togglefloating,
|
|
|
|
|
|
|
|
bind = , Print, exec, grim -g "$(slurp)"
|
2023-06-18 10:40:57 +01:00
|
|
|
bind = , XF86AudioMute, exec, pamixer -t
|
2023-06-19 16:50:58 +01:00
|
|
|
binde = , XF86AudioRaiseVolume, exec, pamixer -i 2
|
|
|
|
binde = , XF86AudioLowerVolume, exec, pamixer -d 2
|
2023-06-18 10:40:57 +01:00
|
|
|
|
2023-06-28 16:20:02 +01:00
|
|
|
bind = ALT, H, movefocus, l
|
|
|
|
bind = ALT, L, movefocus, r
|
|
|
|
bind = ALT, K, movefocus, u
|
|
|
|
bind = ALT, J, movefocus, d
|
|
|
|
bind = ALT SHIFT, H, movewindow, l
|
|
|
|
bind = ALT SHIFT, L, movewindow, r
|
|
|
|
bind = ALT SHIFT, K, movewindow, u
|
|
|
|
bind = ALT SHIFT, J, movewindow, d
|
|
|
|
|
2023-06-28 17:35:41 +01:00
|
|
|
windowrule = workspace name:browser, firefox
|
|
|
|
windowrule = workspace name:files, thunar
|
|
|
|
windowrule = workspace name:files, libreoffice.*
|
2023-06-30 09:05:19 +01:00
|
|
|
windowrule = workspace name:files, Zotero
|
2023-06-28 17:35:41 +01:00
|
|
|
windowrule = workspace name:chat, Signal
|
|
|
|
windowrule = workspace name:chat, fractal
|
|
|
|
|
2023-06-30 09:05:19 +01:00
|
|
|
bind = ALT, D, moveworkspacetomonitor, name:dev current
|
|
|
|
bind = ALT, D, workspace, name:dev
|
|
|
|
bind = ALT SHIFT, D, moveworkspacetomonitor, name:dev current
|
|
|
|
bind = ALT SHIFT, D, movetoworkspace, name:dev
|
2023-06-28 16:20:02 +01:00
|
|
|
|
|
|
|
bind = ALT, W, moveworkspacetomonitor, name:browser current
|
|
|
|
bind = ALT, W, workspace, name:browser
|
2023-06-28 17:47:20 +01:00
|
|
|
bind = ALT, W, exec, pgrep firefox > /dev/null || firefox
|
2023-06-28 16:20:02 +01:00
|
|
|
bind = ALT SHIFT, W, moveworkspacetomonitor, name:browser current
|
|
|
|
bind = ALT SHIFT, W, movetoworkspace, name:browser
|
|
|
|
|
|
|
|
bind = ALT, F, moveworkspacetomonitor, name:files current
|
|
|
|
bind = ALT, F, workspace, name:files
|
|
|
|
bind = ALT SHIFT, F, moveworkspacetomonitor, name:files current
|
|
|
|
bind = ALT SHIFT, F, movetoworkspace, name:files
|
|
|
|
|
|
|
|
bind = ALT, C, moveworkspacetomonitor, name:chat current
|
|
|
|
bind = ALT, C, workspace, name:chat
|
|
|
|
bind = ALT SHIFT, C, moveworkspacetomonitor, name:chat current
|
|
|
|
bind = ALT SHIFT, C, movetoworkspace, name:chat
|
|
|
|
|
2023-06-30 11:55:26 +01:00
|
|
|
bind = ALT, 1, moveworkspacetomonitor, name:I current
|
|
|
|
bind = ALT, 1, workspace, name:I
|
|
|
|
bind = ALT SHIFT, 1, moveworkspacetomonitor, name:I current
|
|
|
|
bind = ALT SHIFT, 1, movetoworkspace, name:I
|
|
|
|
bind = ALT, 2, moveworkspacetomonitor, name:II current
|
|
|
|
bind = ALT, 2, workspace, name:II
|
|
|
|
bind = ALT SHIFT, 2, moveworkspacetomonitor, name:II current
|
|
|
|
bind = ALT SHIFT, 2, movetoworkspace, name:II
|
|
|
|
bind = ALT, 3, moveworkspacetomonitor, name:III current
|
|
|
|
bind = ALT, 3, workspace, name:III
|
|
|
|
bind = ALT SHIFT, 3, moveworkspacetomonitor, name:III current
|
|
|
|
bind = ALT SHIFT, 3, movetoworkspace, name:III
|
|
|
|
bind = ALT, 4, moveworkspacetomonitor, name:IV current
|
|
|
|
bind = ALT, 4, workspace, name:IV
|
|
|
|
bind = ALT SHIFT, 4, moveworkspacetomonitor, name:IV current
|
|
|
|
bind = ALT SHIFT, 4, movetoworkspace, name:IV
|
|
|
|
bind = ALT, 5, moveworkspacetomonitor, name:V current
|
|
|
|
bind = ALT, 5, workspace, name:V
|
|
|
|
bind = ALT SHIFT, 5, moveworkspacetomonitor, name:V current
|
|
|
|
bind = ALT SHIFT, 5, movetoworkspace, name:V
|
|
|
|
|
2023-06-28 16:20:02 +01:00
|
|
|
bind = ALT, bracketright, focusmonitor, +1
|
|
|
|
bind = ALT, bracketleft, focusmonitor, +1
|
|
|
|
|
2023-06-18 10:40:57 +01:00
|
|
|
# Move/resize windows with mainMod + LMB/RMB and dragging
|
2023-06-28 16:20:02 +01:00
|
|
|
bindm = ALT, mouse:272, movewindow
|
|
|
|
bindm = ALT, mouse:273, resizewindow
|
2023-06-18 10:40:57 +01:00
|
|
|
|
|
|
|
# See https://wiki.hyprland.org/Configuring/Window-Rules/ for more
|
2023-06-28 08:40:34 +01:00
|
|
|
windowrule = float, ^(pavucontrol)$
|
2023-06-18 10:40:57 +01:00
|
|
|
windowrule = center, ^(pavucontrol)$
|
2023-06-28 08:40:34 +01:00
|
|
|
windowrule = float, ^(.blueman-manager-wrapped)$
|
2023-06-18 10:40:57 +01:00
|
|
|
windowrule = center, ^(.blueman-manager-wrapped)$
|
2023-06-28 08:40:34 +01:00
|
|
|
windowrule = float, ^(otpclient)$
|
2023-06-18 10:40:57 +01:00
|
|
|
windowrule = move 2% 6%, ^(otpclient)$
|
|
|
|
'';
|
|
|
|
xdg.configFile."hypr/macchiato.conf".text = ''
|
|
|
|
$rosewaterAlpha = f4dbd6
|
|
|
|
$flamingoAlpha = f0c6c6
|
|
|
|
$pinkAlpha = f5bde6
|
|
|
|
$mauveAlpha = c6a0f6
|
|
|
|
$redAlpha = ed8796
|
|
|
|
$maroonAlpha = ee99a0
|
|
|
|
$peachAlpha = f5a97f
|
|
|
|
$yellowAlpha = eed49f
|
|
|
|
$greenAlpha = a6da95
|
|
|
|
$tealAlpha = 8bd5ca
|
|
|
|
$skyAlpha = 91d7e3
|
|
|
|
$sapphireAlpha = 7dc4e4
|
|
|
|
$blueAlpha = 8aadf4
|
|
|
|
$lavenderAlpha = b7bdf8
|
|
|
|
|
|
|
|
$textAlpha = cad3f5
|
|
|
|
$subtext1Alpha = b8c0e0
|
|
|
|
$subtext0Alpha = a5adcb
|
|
|
|
|
|
|
|
$overlay2Alpha = 939ab7
|
|
|
|
$overlay1Alpha = 8087a2
|
|
|
|
$overlay0Alpha = 6e738d
|
|
|
|
|
|
|
|
$surface2Alpha = 5b6078
|
|
|
|
$surface1Alpha = 494d64
|
|
|
|
$surface0Alpha = 363a4f
|
|
|
|
|
|
|
|
$baseAlpha = 24273a
|
|
|
|
$mantleAlpha = 1e2030
|
|
|
|
$crustAlpha = 181926
|
|
|
|
|
|
|
|
$rosewater = 0xfff5e0dc
|
|
|
|
$flamingo = 0xfff2cdcd
|
|
|
|
$pink = 0xfff5c2e7
|
|
|
|
$mauve = 0xffcba6f7
|
|
|
|
$red = 0xfff38ba8
|
|
|
|
$maroon = 0xffeba0ac
|
|
|
|
$peach = 0xfffab387
|
|
|
|
$yellow = 0xfff9e2af
|
|
|
|
$green = 0xffa6e3a1
|
|
|
|
$teal = 0xff94e2d5
|
|
|
|
$sky = 0xff89dceb
|
|
|
|
$sapphire = 0xff74c7ec
|
|
|
|
$blue = 0xff89b4fa
|
|
|
|
$lavender = 0xffb4befe
|
|
|
|
|
|
|
|
$text = 0xffcdd6f4
|
|
|
|
$subtext1 = 0xffbac2de
|
|
|
|
$subtext0 = 0xffa6adc8
|
|
|
|
|
|
|
|
$overlay2 = 0xff9399b2
|
|
|
|
$overlay1 = 0xff7f849c
|
|
|
|
$overlay0 = 0xff6c7086
|
|
|
|
|
|
|
|
$surface2 = 0xff585b70
|
|
|
|
$surface1 = 0xff45475a
|
|
|
|
$surface0 = 0xff313244
|
|
|
|
|
|
|
|
$base = 0xff1e1e2e
|
|
|
|
$mantle = 0xff181825
|
|
|
|
$crust = 0xff11111b
|
|
|
|
'';
|
2023-04-11 11:24:05 +01:00
|
|
|
}
|