2024-01-30 14:21:50 +00:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
2024-03-31 12:59:24 +01:00
|
|
|
fonts,
|
|
|
|
scheme,
|
2024-02-29 15:29:19 +00:00
|
|
|
accentColour ? "base07",
|
|
|
|
catppuccinVariant ? "Mocha",
|
2024-01-30 14:21:50 +00:00
|
|
|
...
|
|
|
|
}: {
|
2024-01-28 12:01:18 +00:00
|
|
|
imports = [
|
|
|
|
../default.nix
|
2024-02-04 07:14:04 +00:00
|
|
|
../email/default.nix
|
|
|
|
../password-store/default.nix
|
2024-01-28 12:01:18 +00:00
|
|
|
../waybar/default.nix
|
|
|
|
../rofi/default.nix
|
2024-03-31 12:59:24 +01:00
|
|
|
../swaylock/default.nix
|
2024-01-28 12:01:18 +00:00
|
|
|
../swaync/default.nix
|
2024-02-12 08:48:19 +00:00
|
|
|
../avizo/default.nix
|
2024-03-26 06:13:44 +00:00
|
|
|
../alacritty/default.nix
|
2024-01-28 12:01:18 +00:00
|
|
|
../emacs/default.nix
|
|
|
|
../obs/default.nix
|
2024-02-16 10:54:05 +00:00
|
|
|
../cava/default.nix
|
2024-01-28 12:01:18 +00:00
|
|
|
];
|
2024-02-08 07:51:39 +00:00
|
|
|
home.packages = with pkgs; [
|
|
|
|
(writeShellScriptBin "protonmail-setup-bridge" ''
|
2024-02-05 09:13:59 +00:00
|
|
|
pkill -9 -f protonmail-bridge
|
2024-02-08 07:51:39 +00:00
|
|
|
${protonmail-bridge}/bin/protonmail-bridge -c
|
|
|
|
${config.wayland.windowManager.hyprland.finalPackage}/bin/hyprctl dispatch exec "${protonmail-bridge}/bin/protonmail-bridge -n"
|
2024-02-05 09:13:59 +00:00
|
|
|
'')
|
|
|
|
];
|
2024-02-03 09:51:42 +00:00
|
|
|
programs = {
|
|
|
|
rofi = with pkgs; {
|
|
|
|
package = rofi-wayland;
|
2024-03-26 06:13:44 +00:00
|
|
|
terminal = "${config.programs.alacritty.package}/bin/alacritty";
|
2024-02-03 09:51:42 +00:00
|
|
|
pass.package = rofi-pass-wayland;
|
|
|
|
};
|
|
|
|
zellij.settings.copy_command = "wl-copy";
|
2024-01-31 07:21:01 +00:00
|
|
|
};
|
2023-10-26 17:15:51 +01:00
|
|
|
services = {
|
2024-03-31 12:59:24 +01:00
|
|
|
gpg-agent.pinentryFlavor = "gtk2";
|
2023-10-26 17:15:51 +01:00
|
|
|
avizo.enable = true;
|
2023-11-09 11:54:55 +00:00
|
|
|
syncthing.enable = true;
|
2023-11-09 11:42:12 +00:00
|
|
|
udiskie = {
|
|
|
|
enable = true;
|
|
|
|
notify = true;
|
|
|
|
automount = true;
|
2023-11-09 11:54:55 +00:00
|
|
|
tray = "never";
|
2023-11-09 11:42:12 +00:00
|
|
|
};
|
2023-10-26 17:15:51 +01:00
|
|
|
};
|
2024-03-15 17:15:18 +00:00
|
|
|
gtk = with lib.strings; let
|
|
|
|
accent = "Lavender";
|
|
|
|
size = "Standard";
|
|
|
|
in {
|
2023-12-21 13:05:27 +00:00
|
|
|
enable = true;
|
|
|
|
iconTheme = {
|
2024-03-15 17:15:18 +00:00
|
|
|
package = pkgs.catppuccin-papirus-folders.override {
|
|
|
|
accent = toLower accent;
|
|
|
|
flavor = toLower catppuccinVariant;
|
|
|
|
};
|
|
|
|
name = "Papirus-Dark";
|
2023-12-21 13:05:27 +00:00
|
|
|
};
|
2024-03-31 12:59:24 +01:00
|
|
|
cursorTheme = let
|
|
|
|
variant = "${lib.strings.toLower catppuccinVariant}Dark";
|
|
|
|
in {
|
|
|
|
package = pkgs.catppuccin-cursors.${variant};
|
|
|
|
name = "Catppuccin-${catppuccinVariant}-Dark-Cursors";
|
|
|
|
size = 32;
|
|
|
|
};
|
2024-03-15 17:15:18 +00:00
|
|
|
theme = {
|
2024-02-29 15:29:19 +00:00
|
|
|
package = with lib.strings;
|
|
|
|
pkgs.catppuccin-gtk.override {
|
|
|
|
accents = [(toLower accent)];
|
|
|
|
size = toLower size;
|
|
|
|
variant = toLower catppuccinVariant;
|
|
|
|
};
|
|
|
|
name = "Catppuccin-${catppuccinVariant}-${size}-${accent}-Dark";
|
2023-12-21 13:05:27 +00:00
|
|
|
};
|
|
|
|
};
|
2024-01-27 06:52:09 +00:00
|
|
|
wayland.windowManager.hyprland = {
|
|
|
|
enable = true;
|
|
|
|
xwayland.enable = true;
|
|
|
|
systemd.enable = true;
|
|
|
|
settings = {
|
2024-01-30 14:21:50 +00:00
|
|
|
monitor = [",preferred,auto,auto"];
|
2024-01-27 06:52:09 +00:00
|
|
|
env = with config; [
|
|
|
|
"XDG_CURRENT_DESKTOP=Hyprland"
|
|
|
|
"XDG_SESSION_TYPE=wayland"
|
|
|
|
"XDG_SESSION_DESKTOP=Hyprland"
|
|
|
|
"GDK_BACKEND=wayland,x11"
|
|
|
|
"GTK_THEME,${gtk.theme.name}"
|
2024-03-31 12:59:24 +01:00
|
|
|
"XCURSOR_THEME,${gtk.cursorTheme.name}"
|
|
|
|
"XCURSOR_SIZE,${toString gtk.cursorTheme.size}"
|
2024-01-27 06:52:09 +00:00
|
|
|
"QT_AUTO_SCREEN_SCALE_FACTOR,1"
|
|
|
|
"QT_QPA_PLATFORM,wayland"
|
|
|
|
"QT_WAYLAND_DISABLE_WINDOWDECORATION,1"
|
|
|
|
"MOZ_ENABLE_WAYLAND,1"
|
|
|
|
"GRIM_DEFAULT_DIR=${xdg.userDirs.pictures}/Grim"
|
|
|
|
];
|
2024-01-27 08:09:57 +00:00
|
|
|
exec-once = with config; [
|
2024-03-26 06:14:38 +00:00
|
|
|
"systemctl --user import-environment WAYLAND_DISPLAY QT_QPA_PLATFORMTHEME"
|
2024-03-31 12:59:24 +01:00
|
|
|
"${wayland.windowManager.hyprland.finalPackage}/bin/hyprctl setcursor ${gtk.cursorTheme.name} ${toString gtk.cursorTheme.size}"
|
2024-01-30 16:10:12 +00:00
|
|
|
"${pkgs.swaynotificationcenter}/bin/swaync"
|
|
|
|
"${pkgs.libsForQt5.polkit-kde-agent}/libexec/polkit-kde-authentication-agent-1"
|
2024-02-03 07:21:50 +00:00
|
|
|
"${pkgs.protonmail-bridge}/bin/protonmail-bridge -n"
|
2024-03-26 06:14:38 +00:00
|
|
|
"${pkgs.waybar}/bin/waybar"
|
|
|
|
"${pkgs.hyprpaper}/bin/hyprpaper"
|
2024-01-27 08:09:57 +00:00
|
|
|
];
|
2024-01-27 06:52:09 +00:00
|
|
|
gestures.workspace_swipe = true;
|
|
|
|
input = {
|
|
|
|
kb_layout = "gb";
|
|
|
|
kb_options = "ctrl:nocaps";
|
|
|
|
follow_mouse = 1;
|
|
|
|
touchpad.natural_scroll = "yes";
|
|
|
|
};
|
2024-02-09 06:55:57 +00:00
|
|
|
dwindle = {
|
|
|
|
force_split = 2;
|
|
|
|
preserve_split = false;
|
|
|
|
smart_split = false;
|
|
|
|
smart_resizing = false;
|
|
|
|
special_scale_factor = 0.95;
|
|
|
|
no_gaps_when_only = 0;
|
|
|
|
use_active_for_splits = true;
|
|
|
|
default_split_ratio = 1.0;
|
|
|
|
};
|
2024-01-27 06:52:09 +00:00
|
|
|
master = {
|
|
|
|
allow_small_split = true;
|
|
|
|
special_scale_factor = 0.95;
|
|
|
|
mfact = 0.5;
|
|
|
|
new_is_master = false;
|
|
|
|
new_on_top = false;
|
|
|
|
no_gaps_when_only = 0;
|
|
|
|
orientation = "left";
|
|
|
|
inherit_fullscreen = false;
|
|
|
|
smart_resizing = false;
|
|
|
|
drop_at_cursor = true;
|
|
|
|
};
|
2024-03-31 12:59:24 +01:00
|
|
|
general = with scheme; {
|
|
|
|
"col.active_border" = "rgb(${scheme.${accentColour}})";
|
2024-02-08 17:32:21 +00:00
|
|
|
"col.inactive_border" = "rgb(${base03})";
|
2024-01-27 06:52:09 +00:00
|
|
|
gaps_in = 5;
|
|
|
|
gaps_out = 10;
|
|
|
|
border_size = 1;
|
2024-03-19 14:48:09 +00:00
|
|
|
cursor_inactive_timeout = 0;
|
2024-02-09 06:55:57 +00:00
|
|
|
layout = "dwindle";
|
2024-01-27 06:52:09 +00:00
|
|
|
};
|
2024-03-31 12:59:24 +01:00
|
|
|
decoration = with scheme; {
|
2024-02-21 09:26:37 +00:00
|
|
|
rounding = 10;
|
2024-02-08 17:32:21 +00:00
|
|
|
"col.shadow" = "rgba(0d${base00})";
|
2024-01-27 06:52:09 +00:00
|
|
|
drop_shadow = "yes";
|
|
|
|
shadow_ignore_window = true;
|
|
|
|
shadow_range = 4;
|
|
|
|
shadow_render_power = 3;
|
|
|
|
blur = {
|
|
|
|
enabled = true;
|
|
|
|
size = 5;
|
|
|
|
passes = 3;
|
|
|
|
new_optimizations = true;
|
|
|
|
brightness = 1.0;
|
|
|
|
noise = 2.0e-2;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
animations = {
|
|
|
|
enabled = true;
|
|
|
|
bezier = "myBezier, 0.05, 0.9, 0.1, 1.05";
|
|
|
|
animation = [
|
|
|
|
"windows, 1, 7, myBezier"
|
|
|
|
"windowsOut, 1, 7, default, popin 80%"
|
|
|
|
"border, 1, 10, default"
|
|
|
|
"borderangle, 1, 8, default"
|
|
|
|
"fade, 1, 7, default"
|
|
|
|
"workspaces, 1, 6, default"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
misc = {
|
2024-01-29 06:27:37 +00:00
|
|
|
disable_splash_rendering = true;
|
2024-01-27 06:52:09 +00:00
|
|
|
disable_autoreload = true;
|
|
|
|
mouse_move_enables_dpms = true;
|
|
|
|
key_press_enables_dpms = true;
|
|
|
|
};
|
|
|
|
xwayland.force_zero_scaling = true;
|
2024-01-27 08:09:57 +00:00
|
|
|
layerrule = let
|
|
|
|
blur = x: "blur, ^(${x})$";
|
|
|
|
ignorealpha = x: "ignorealpha 0.3, ^(${x})$";
|
|
|
|
layers = [
|
|
|
|
"waybar"
|
|
|
|
"system-menu"
|
|
|
|
"rofi"
|
|
|
|
"gtk-layer-shell"
|
|
|
|
"notifications"
|
|
|
|
"swaync-.*"
|
2024-02-12 08:48:19 +00:00
|
|
|
"avizo"
|
2024-01-27 08:09:57 +00:00
|
|
|
];
|
2024-01-30 14:21:50 +00:00
|
|
|
in
|
|
|
|
(lib.lists.forEach layers blur)
|
|
|
|
++ (lib.lists.forEach layers ignorealpha);
|
2024-01-27 08:09:57 +00:00
|
|
|
windowrule = [
|
2024-03-13 17:52:48 +00:00
|
|
|
# Workspace binds
|
2024-04-04 09:18:36 +01:00
|
|
|
"workspace 3, (libreoffice|soffice)(.*)"
|
2024-04-08 14:31:37 +01:00
|
|
|
"workspace 4, (WebCord|signal)"
|
2024-04-12 11:23:23 +01:00
|
|
|
"workspace 5, org.prismlauncher.PrismLauncher"
|
2024-04-04 09:18:36 +01:00
|
|
|
"workspace 5 silent, steam" # Keep silent to avoid popups taking focus
|
2024-03-13 17:52:48 +00:00
|
|
|
|
2024-01-27 08:09:57 +00:00
|
|
|
# Float + move system windows
|
2024-03-10 11:22:05 +00:00
|
|
|
"float, org.kde.polkit-kde-authentication-agent-1|Pinentry"
|
|
|
|
"center, org.kde.polkit-kde-authentication-agent-1|Pinentry"
|
|
|
|
"pin, org.kde.polkit-kde-authentication-agent-1|Pinentry"
|
|
|
|
"dimaround, org.kde.polkit-kde-authentication-agent-1|Pinentry"
|
|
|
|
"stayfocused, org.kde.polkit-kde-authentication-agent-1|Pinentry"
|
|
|
|
"float, pavucontrol|.blueman-manager-wrapped|nm-connection-editor"
|
|
|
|
"size 800 600, pavucontrol|.blueman-manager-wrapped|nm-connection-editor"
|
2024-01-30 09:23:11 +00:00
|
|
|
"move onscreen 100%-820 60,pavucontrol|.blueman-manager-wrapped|nm-connection-editor"
|
2024-01-27 08:09:57 +00:00
|
|
|
|
2024-03-10 11:22:05 +00:00
|
|
|
# PrismLauncher / Minecraft
|
|
|
|
"float, org.prismlauncher.PrismLauncher"
|
|
|
|
"center, org.prismlauncher.PrismLauncher"
|
|
|
|
"size 800 600, org.prismlauncher.PrismLauncher"
|
2024-01-27 08:09:57 +00:00
|
|
|
];
|
|
|
|
windowrulev2 = [
|
|
|
|
# Firefox PIP
|
2024-03-10 11:22:05 +00:00
|
|
|
"float, title:Picture-in-Picture|Library,class:firefox"
|
|
|
|
"size 750 400, title:Picture-in-Picture,class:firefox"
|
|
|
|
"size 800 800, title:Library,class:firefox"
|
|
|
|
"move onscreen 100%-775 100%-425, title:Picture-in-Picture,class:firefox"
|
|
|
|
"center, title:Library,class:firefox"
|
|
|
|
"pin, title:Picture-in-Picture,class:firefox"
|
2024-01-27 08:09:57 +00:00
|
|
|
|
2024-04-06 16:28:52 +01:00
|
|
|
# Thunar extra windows
|
|
|
|
"float, title:File Operation Progress,class:thunar"
|
|
|
|
"size 800 600, title:File Operation Progress,class:thunar"
|
|
|
|
"center, title:File Operation Progress,class:thunar"
|
|
|
|
|
2024-01-27 08:09:57 +00:00
|
|
|
# LibreOffice
|
2024-03-31 12:59:24 +01:00
|
|
|
"nofullscreenrequest, class:(libreoffice|soffice)(.*)"
|
|
|
|
"nomaximizerequest, class:(libreoffice|soffice)(.*)"
|
2024-03-10 11:22:05 +00:00
|
|
|
"float, title:Open,class:(libreoffice|soffice)(.*)"
|
2024-01-27 08:09:57 +00:00
|
|
|
|
|
|
|
# Steam
|
2024-03-10 11:22:05 +00:00
|
|
|
"float, title:Friends List,class:steam"
|
2024-03-10 20:16:02 +00:00
|
|
|
"size 400 600, title:Friends List,class:steam"
|
|
|
|
"float, title:(.*)(Chat),class:steam"
|
|
|
|
"size 800 600, title:(.*)(Chat),class:steam"
|
2024-03-10 11:22:05 +00:00
|
|
|
"float, title:Steam Settings,class:steam"
|
2024-03-10 20:16:02 +00:00
|
|
|
"size 800 600, title:Steam Settings,class:steam"
|
2024-03-18 10:04:15 +00:00
|
|
|
|
2024-04-11 09:58:39 +01:00
|
|
|
# X2Go / Remmina / NoMachine
|
|
|
|
"nofullscreenrequest, class:x2goclient|org.remmina.Remmina|Nxplayer.bin"
|
|
|
|
"nomaximizerequest, class:x2goclient|org.remmina.Remmina|Nxplayer.bin"
|
2024-03-18 10:15:51 +00:00
|
|
|
"float, title:(X2Go Client|Freia|Heimdall), class:x2goclient"
|
2024-04-11 09:58:39 +01:00
|
|
|
"float, title:Remmina Remote Desktop Client, class:org.remmina.Remmina"
|
2024-04-02 11:14:33 +01:00
|
|
|
"float, title:(NoMachine)(.*), class:Nxplayer.bin"
|
2024-03-18 10:15:51 +00:00
|
|
|
"center, title:(X2Go Client|Freia|Heimdall), class:x2goclient"
|
2024-04-11 09:58:39 +01:00
|
|
|
"center, title:Remmina Remote Desktop Client, class:org.remmina.Remmina"
|
2024-04-02 11:14:33 +01:00
|
|
|
"center, title:(NoMachine)(.*), class:Nxplayer.bin"
|
2024-03-18 10:04:15 +00:00
|
|
|
"size 800 600, title:X2Go Client, class:x2goclient"
|
2024-03-18 10:15:51 +00:00
|
|
|
"size 1920 1080, title:Freia|Heimdall, class:x2goclient"
|
2024-04-02 11:14:33 +01:00
|
|
|
"size 1920 1080, title:(NoMachine)(.*), class:Nxplayer.bin"
|
2024-01-27 08:09:57 +00:00
|
|
|
];
|
|
|
|
bind = let
|
2024-02-16 11:08:24 +00:00
|
|
|
withTerm = {
|
2024-03-26 08:16:22 +00:00
|
|
|
term ? "alacritty",
|
2024-02-16 11:08:24 +00:00
|
|
|
package ? config.programs.${term}.package,
|
|
|
|
progname,
|
|
|
|
args ? "",
|
|
|
|
}: "${package}/bin/${term} -T ${progname} -e ${progname} ${args}";
|
2024-01-27 08:09:57 +00:00
|
|
|
workspace = w: [
|
|
|
|
"SUPER, ${toString w}, moveworkspacetomonitor, ${toString w} current"
|
|
|
|
"SUPER, ${toString w}, workspace, ${toString w}"
|
|
|
|
"SUPER SHIFT, ${toString w}, movetoworkspace, ${toString w}"
|
|
|
|
];
|
2024-01-30 14:21:50 +00:00
|
|
|
in
|
2024-01-30 16:10:12 +00:00
|
|
|
with config.programs;
|
2024-01-30 14:21:50 +00:00
|
|
|
with lib.lists;
|
|
|
|
flatten (forEach (range 1 9) workspace)
|
2024-02-16 10:19:47 +00:00
|
|
|
++ (let
|
|
|
|
btm_args = "--autohide_time --battery --celsius --enable_cache_memory --enable_gpu_memory --group --hide_avg_cpu --hide_table_gap --retention=3m --show_table_scroll_position";
|
|
|
|
in [
|
2024-01-30 14:21:50 +00:00
|
|
|
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
|
2024-03-20 17:27:17 +00:00
|
|
|
# Open Hyprland wiki at correct version number
|
|
|
|
"CTRL_SHIFT, H, exec, xdg-open \"https://wiki.hyprland.org/$(hyprctl version -j | ${pkgs.jq}/bin/jq $args.commit | ${pkgs.gnused}/bin/sed s/v// | ${pkgs.gnused}/bin/sed s/\\\"//g)\""
|
|
|
|
|
2024-03-31 12:59:24 +01:00
|
|
|
# "SUPER, F1, exec, ${pkgs.hyprlock}/bin/hyprlock" # Until added to nixpkgs
|
2024-03-31 13:19:33 +01:00
|
|
|
"SUPER, F1, exec, ${swaylock.package}/bin/swaylock --screenshots --clock --indicator --grace-no-mouse"
|
2024-01-30 14:21:50 +00:00
|
|
|
"SUPER, Q, killactive,"
|
2024-02-05 07:33:42 +00:00
|
|
|
"SUPER SHIFT, Q, exec, pkill rofi || ${rofi.finalPackage}/bin/rofi -show powermenu -modi powermenu:${pkgs.rofi-power-menu}/bin/rofi-power-menu"
|
2024-01-30 14:21:50 +00:00
|
|
|
"SUPER, V, togglefloating"
|
2024-03-20 15:20:12 +00:00
|
|
|
# "SUPER SHIFT, V, setfloating" ## TODO setfloating exists
|
|
|
|
# in newer version of Hyprland than mine
|
|
|
|
"SUPER SHIFT, V, moveactive, exact 1% 4%"
|
|
|
|
"SUPER SHIFT, V, resizeactive, exact 800 600"
|
|
|
|
"SUPER SHIFT, V, pin"
|
2024-02-27 14:08:57 +00:00
|
|
|
"SUPER, M, fullscreen, 1" # Maximise window
|
2024-04-10 19:16:14 +01:00
|
|
|
"SUPER SHIFT, M, fullscreen, 0" # Actual fullscreen
|
2024-02-27 14:08:57 +00:00
|
|
|
"SUPER, Z, exec, ${pkgs.swaynotificationcenter}/bin/swaync-client -t -sw"
|
|
|
|
"SUPER SHIFT, Z, exec, ${pkgs.swaynotificationcenter}/bin/swaync-client -d -sw"
|
|
|
|
|
2024-01-30 14:21:50 +00:00
|
|
|
# Common program shortcuts
|
2024-03-26 06:13:44 +00:00
|
|
|
"SUPER, Return, exec, ${alacritty.package}/bin/alacritty"
|
2024-04-12 11:23:23 +01:00
|
|
|
"SUPER, E, exec, ${emacs.finalPackage}/bin/emacsclient -c"
|
|
|
|
"SUPER, W, exec, ${firefox.package}/bin/firefox"
|
|
|
|
"SUPER, F, exec, ${pkgs.xfce.thunar}/bin/thunar"
|
2024-01-27 08:09:57 +00:00
|
|
|
|
2024-02-29 10:44:14 +00:00
|
|
|
# Rofi binds
|
|
|
|
"SUPER, Space, exec, pkill rofi || ${rofi.finalPackage}/bin/rofi -show drun"
|
|
|
|
"SUPER, tab, exec, pkill rofi || ${rofi.finalPackage}/bin/rofi -show window"
|
2024-04-02 11:14:33 +01:00
|
|
|
"SUPER, A, exec, pkill rofi || ${rofi.finalPackage}/bin/rofi -show emoji"
|
2024-02-29 10:44:14 +00:00
|
|
|
|
|
|
|
# rofi-pass binds
|
|
|
|
"SUPER, P, exec, pkill rofi || ${rofi.pass.package}/bin/rofi-pass"
|
|
|
|
"SUPER SHIFT, P, exec, pkill rofi || ${rofi.pass.package}/bin/rofi-pass --last-used"
|
|
|
|
"SUPER ALT, P, exec, pkill rofi || ${rofi.pass.package}/bin/rofi-pass --insert"
|
|
|
|
|
2024-02-16 11:08:24 +00:00
|
|
|
# Terminal utilities
|
|
|
|
"SUPER, S, exec, ${withTerm {
|
|
|
|
progname = "btm";
|
|
|
|
args = btm_args;
|
|
|
|
}}"
|
|
|
|
"SUPER SHIFT, S, exec, ${withTerm {
|
|
|
|
progname = "btm";
|
|
|
|
args = btm_args + " --basic";
|
|
|
|
}}"
|
|
|
|
"SUPER, C, exec, ${withTerm {progname = "cava";}}"
|
|
|
|
|
2024-01-30 14:21:50 +00:00
|
|
|
# Misc useful binds
|
|
|
|
'',Print,exec,${pkgs.grim}/bin/grim -g "$(${pkgs.slurp}/bin/slurp)"''
|
2024-02-05 07:33:42 +00:00
|
|
|
",XF86Calculator,exec,pkill rofi || ${rofi.finalPackage}/bin/rofi -show calc"
|
2024-01-27 08:09:57 +00:00
|
|
|
|
2024-01-30 14:21:50 +00:00
|
|
|
# Movement binds
|
|
|
|
"SUPER, H, movefocus, l"
|
|
|
|
"SUPER, L, movefocus, r"
|
|
|
|
"SUPER, K, movefocus, u"
|
|
|
|
"SUPER, J, movefocus, d"
|
|
|
|
"SUPER SHIFT, H, movewindow, l"
|
|
|
|
"SUPER SHIFT, L, movewindow, r"
|
|
|
|
"SUPER SHIFT, K, movewindow, u"
|
|
|
|
"SUPER SHIFT, J, movewindow, d"
|
2024-01-27 08:09:57 +00:00
|
|
|
|
2024-01-30 14:21:50 +00:00
|
|
|
# Special workspaces
|
2024-03-15 16:09:08 +00:00
|
|
|
"SUPER, comma, workspace, m-1"
|
2024-01-30 14:21:50 +00:00
|
|
|
"SUPER SHIFT, comma, movetoworkspace, r-1"
|
2024-03-15 16:09:08 +00:00
|
|
|
"SUPER, period, workspace, m+1"
|
2024-01-30 14:21:50 +00:00
|
|
|
"SUPER SHIFT, period, movetoworkspace, r+1"
|
|
|
|
"SUPER, N, workspace, empty"
|
|
|
|
"SUPER SHIFT, N, movetoworkspace, empty"
|
|
|
|
"SUPER, minus, togglespecialworkspace"
|
|
|
|
"SUPER SHIFT, minus, movetoworkspace, special"
|
|
|
|
"SUPER, bracketright, focusmonitor, +1"
|
|
|
|
"SUPER SHIFT, bracketright, movecurrentworkspacetomonitor, +1"
|
|
|
|
"SUPER, bracketleft, focusmonitor, -1"
|
|
|
|
"SUPER SHIFT, bracketleft, movecurrentworkspacetomonitor, -1"
|
|
|
|
"SUPER, O, focusurgentorlast"
|
2024-02-16 10:19:47 +00:00
|
|
|
]);
|
2024-01-30 16:10:12 +00:00
|
|
|
bindl = with config.services; [
|
2024-01-27 08:09:57 +00:00
|
|
|
# Sound
|
2024-01-30 16:10:12 +00:00
|
|
|
",XF86AudioMute,exec,${avizo.package}/bin/volumectl %"
|
|
|
|
",XF86AudioMicMute,exec,${avizo.package}/bin/volumectl -m %"
|
2024-01-27 08:09:57 +00:00
|
|
|
|
|
|
|
# Playback
|
|
|
|
",XF86AudioPlay,exec,${pkgs.playerctl}/bin/playerctl play-pause"
|
|
|
|
",XF86AudioStop,exec,${pkgs.playerctl}/bin/playerctl play-pause"
|
|
|
|
",XF86AudioPrev,exec,${pkgs.playerctl}/bin/playerctl previous"
|
|
|
|
",XF86AudioNext,exec,${pkgs.playerctl}/bin/playerctl next"
|
|
|
|
];
|
2024-01-30 16:10:12 +00:00
|
|
|
bindle = with config.services; [
|
2024-01-27 08:09:57 +00:00
|
|
|
# Sound
|
2024-01-30 16:10:12 +00:00
|
|
|
",XF86AudioRaiseVolume,exec,${avizo.package}/bin/volumectl -u + 5"
|
|
|
|
",XF86AudioLowerVolume,exec,${avizo.package}/bin/volumectl -u - 5"
|
2024-01-27 08:09:57 +00:00
|
|
|
|
|
|
|
# Brightness
|
2024-01-30 16:10:12 +00:00
|
|
|
",XF86MonBrightnessUp,exec,${avizo.package}/bin/lightctl + 5"
|
|
|
|
",XF86MonBrightnessDown,exec,${avizo.package}/bin/lightctl - 5"
|
2024-01-27 08:09:57 +00:00
|
|
|
];
|
|
|
|
bindm = [
|
|
|
|
# Move/resize windows with mainMod + LMB/RMB and dragging
|
|
|
|
"SUPER, mouse:272, movewindow"
|
|
|
|
"SUPER, mouse:273, resizewindow"
|
|
|
|
];
|
2024-01-27 06:52:09 +00:00
|
|
|
};
|
|
|
|
};
|
2024-03-04 13:35:26 +00:00
|
|
|
xdg.configFile = {
|
2024-03-31 12:59:24 +01:00
|
|
|
"hypr/hyprpaper.conf".text = let
|
|
|
|
image = ../../wallpapers/waves/cat-waves.png;
|
|
|
|
in ''
|
|
|
|
preload = ${image}
|
|
|
|
wallpaper = ,${image}
|
2024-03-04 13:35:26 +00:00
|
|
|
'';
|
2024-03-31 12:59:24 +01:00
|
|
|
"hypr/hyprlock.conf".text = with scheme; let
|
|
|
|
font = fonts.sansSerif.name;
|
|
|
|
accent = scheme.${accentColour};
|
2024-03-04 13:35:26 +00:00
|
|
|
in ''
|
|
|
|
# GENERAL
|
|
|
|
general {
|
|
|
|
disable_loading_bar = true
|
2024-03-31 12:59:24 +01:00
|
|
|
hide_cursor = true
|
2024-03-04 13:35:26 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
# BACKGROUND
|
|
|
|
background {
|
|
|
|
monitor =
|
|
|
|
path = screenshot
|
|
|
|
blur_passes = 3
|
2024-03-09 11:44:30 +00:00
|
|
|
color = 0xff${accent}
|
2024-03-04 13:35:26 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
# TIME
|
|
|
|
label {
|
|
|
|
monitor =
|
|
|
|
text = cmd[update:30000] echo "$(date +"%R")"
|
|
|
|
color = 0xff${base05}
|
|
|
|
font_size = 90
|
|
|
|
font_family = ${font}
|
|
|
|
position = -30, 0
|
|
|
|
halign = right
|
|
|
|
valign = top
|
|
|
|
}
|
|
|
|
|
|
|
|
# DATE
|
|
|
|
label {
|
|
|
|
monitor =
|
|
|
|
text = cmd[update:43200000] echo "$(date +"%A,%e %B %Y")"
|
|
|
|
color = 0xff${base05}
|
|
|
|
font_size = 25
|
|
|
|
font_family = ${font}
|
|
|
|
position = -30, -150
|
|
|
|
halign = right
|
|
|
|
valign = top
|
|
|
|
}
|
|
|
|
|
|
|
|
# USER
|
2024-03-31 12:59:24 +01:00
|
|
|
image {
|
2024-03-04 13:35:26 +00:00
|
|
|
monitor =
|
2024-03-31 12:59:24 +01:00
|
|
|
path = ${../../picrew.png}
|
|
|
|
size = 100
|
|
|
|
border_color = 0xff${accent}
|
|
|
|
position = 0, 75
|
2024-03-04 13:35:26 +00:00
|
|
|
halign = center
|
|
|
|
valign = center
|
|
|
|
}
|
|
|
|
|
|
|
|
# INPUT FIELD
|
|
|
|
input-field {
|
|
|
|
monitor =
|
|
|
|
size = 300, 60
|
|
|
|
outline_thickness = 2
|
|
|
|
dots_size = 0.2 # Scale of input-field height, 0.2 - 0.8
|
|
|
|
dots_spacing = 0.2 # Scale of dots' absolute size, 0.0 - 1.0
|
|
|
|
dots_center = true
|
|
|
|
outer_color = 0xff${accent}
|
|
|
|
inner_color = 0xff${base00}
|
|
|
|
font_color = 0xff${base05}
|
|
|
|
fade_on_empty = false
|
2024-03-31 12:59:24 +01:00
|
|
|
placeholder_text = <span foreground="##${base04}"><i> Logged in as </i><span foreground="##${accent}">$USER</span></span>
|
2024-03-04 13:35:26 +00:00
|
|
|
hide_input = false
|
|
|
|
position = 0, -50
|
|
|
|
halign = center
|
|
|
|
valign = center
|
|
|
|
}
|
|
|
|
'';
|
|
|
|
};
|
2023-07-11 09:11:48 +01:00
|
|
|
}
|