Signed-off-by: elwrcl <[email protected]>
This commit is contained in:
elwrcl committed 2026-04-21 21:02:21 +03:00
1 parent 9558bf201c
commit 462b5fd740
9 files changed
+99 -139

No files matched your search

+2 -2
View File
@@ -24,8 +24,8 @@
url = "github:Lyndeno/apple-fonts.nix"; url = "github:Lyndeno/apple-fonts.nix";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
illogical-flake = { noctalia = {
url = "github:soymou/illogical-flake"; url = "github:noctalia-dev/noctalia-shell";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
}; };
+9 -12
View File
@@ -1,15 +1,11 @@
{ {
pkgs, pkgs,
inputs,
system,
lib,
... ...
}: }:
{ {
imports = [ imports = [
./hyprland.nix ./hyprland.nix
inputs.illogical-flake.homeManagerModules.default
]; ];
home.username = "elars"; home.username = "elars";
@@ -32,14 +28,6 @@
initContent = builtins.readFile ./dots/zsh/.zshrc; initContent = builtins.readFile ./dots/zsh/.zshrc;
}; };
programs.illogical-impulse = {
enable = true;
dotfiles = {
fish.enable = false;
kitty.enable = false;
};
};
programs.ghostty = { programs.ghostty = {
enable = true; enable = true;
settings = { settings = {
@@ -55,6 +43,15 @@
programs.zoxide.enable = true; programs.zoxide.enable = true;
programs.home-manager.enable = true; programs.home-manager.enable = true;
qt = {
enable = true;
platformTheme.name = "gtk3";
style = {
name = "adwaita-dark";
package = pkgs.adwaita-qt;
};
};
gtk = { gtk = {
enable = true; enable = true;
theme = { theme = {
+1
View File
@@ -8,6 +8,7 @@
"XDG_SESSION_TYPE,wayland" "XDG_SESSION_TYPE,wayland"
"XDG_CURRENT_DESKTOP,Hyprland" "XDG_CURRENT_DESKTOP,Hyprland"
"XDG_SESSION_DESKTOP,Hyprland" "XDG_SESSION_DESKTOP,Hyprland"
"QT_STYLE_OVERRIDE,adwaita-dark"
"GDK_BACKEND,wayland,x11" "GDK_BACKEND,wayland,x11"
"QT_QPA_PLATFORM,wayland;xcb" "QT_QPA_PLATFORM,wayland;xcb"
"QT_QPA_PLATFORMTHEME,gtk3" "QT_QPA_PLATFORMTHEME,gtk3"
+1 -1
View File
@@ -3,7 +3,7 @@
{ {
wayland.windowManager.hyprland.settings = { wayland.windowManager.hyprland.settings = {
exec-once = [ exec-once = [
"qs -c ii" "noctalia-shell"
"hyprctl setcursor Bibata-Modern-Classic 24" "hyprctl setcursor Bibata-Modern-Classic 24"
"easyeffects --hide-window --service-mode" "easyeffects --hide-window --service-mode"
"wl-paste --type text --watch cliphist store" "wl-paste --type text --watch cliphist store"
+83 -121
View File
@@ -1,159 +1,121 @@
{ ... }: { ... }:
let let
qs = "qs -c ii ipc call"; ipc = "noctalia-shell ipc call";
qsFallback = cmd: "qs -c ii ipc call TEST_ALIVE || ${cmd}";
in in
{ {
wayland.windowManager.hyprland.settings = { wayland.windowManager.hyprland.settings = {
"$mainMod" = "SUPER"; "$mainMod" = "SUPER";
# global binds (ill) bindr = [
bindid = [ "$mainMod, SUPER_L, exec, ${ipc} launcher toggle"
"Super, SUPER_L, Toggle search, global, quickshell:searchToggleRelease"
"Super, SUPER_R, Toggle search, global, quickshell:searchToggleRelease"
];
binditn = [
"Super, catchall, global, quickshell:searchToggleReleaseInterrupt"
];
bindit = [
", Super_L, global, quickshell:workspaceNumber"
", Super_R, global, quickshell:workspaceNumber"
]; ];
bind = [ bind = [
# qs fallback # workspace
"Super, SUPER_L, exec, ${qsFallback "fuzzel"}"
"Super, SUPER_R, exec, ${qsFallback "fuzzel"}"
"Ctrl, Super_L, global, quickshell:searchToggleReleaseInterrupt"
"Ctrl, Super_R, global, quickshell:searchToggleReleaseInterrupt"
# qs toggles
"Super, Tab, global, quickshell:overviewWorkspacesToggle"
"Super, A, global, quickshell:sidebarLeftToggle"
"Super, N, global, quickshell:sidebarRightToggle"
"Super, V, global, quickshell:overviewClipboardToggle"
"Super, Period, global, quickshell:overviewEmojiToggle"
"Super, Comma, global, quickshell:cheatsheetToggle"
"Super, J, global, quickshell:barToggle"
"Super, M, global, quickshell:mediaControlsToggle"
"Ctrl Alt, Delete, global, quickshell:sessionToggle"
"Ctrl Super, T, global, quickshell:wallpaperSelectorToggle"
"Ctrl Super, R, exec, killall qs quickshell; qs -c ii &"
"Ctrl Super, P, global, quickshell:panelFamilyCycle"
# cb-ss-misc
"Super, V, exec, ${qsFallback "cliphist list | fuzzel --match-mode fzf --dmenu | cliphist decode | wl-copy"}"
"Super, Period, exec, ${qsFallback "fuzzel"}"
"Super Shift, S, global, quickshell:regionScreenshot"
"Super Shift, S, exec, ${qsFallback "hyprshot --freeze --clipboard-only --mode region --silent"}"
"Super Shift, A, global, quickshell:regionSearch"
"Super Shift, X, global, quickshell:regionOcr"
"Super Shift, C, exec, hyprpicker -a"
", Print, exec, grim - | wl-copy"
# rec
"Super Shift, R, global, quickshell:regionRecord"
# loc/session
"Super, L, exec, loginctl lock-session"
"Super Shift, L, exec, systemctl suspend"
# Apps
"Super, Return, exec, ghostty"
"Super, W, exec, zen-beta"
"Super, E, exec, nautilus"
"Super, Z, exec, zeditor"
"Ctrl Alt, T, exec, ghostty"
"Super Alt, V, exec, pavucontrol"
"Ctrl Shift, Escape, exec, ghostty -e btop"
# win management
"Super, Q, killactive"
"Super Alt, SPACE, togglefloating"
"Super, F, fullscreen, 0"
"Super, D, fullscreen, 1"
"Super, P, pin"
# scrolling
"CTRL $mainMod, right, layoutmsg, focus r" "CTRL $mainMod, right, layoutmsg, focus r"
"CTRL $mainMod, left, layoutmsg, focus l" "CTRL $mainMod, left, layoutmsg, focus l"
"CTRL $mainMod, down, workspace, r+1" "CTRL $mainMod, down, workspace, r+1"
"CTRL $mainMod, up, workspace, r-1" "CTRL $mainMod, up, workspace, r-1"
"Super, left, movefocus, l"
"Super, right, movefocus, r"
"Super, up, movefocus, u"
"Super, down, movefocus, d"
# move win
"CTRL $mainMod SHIFT, right, layoutmsg, movewindowto r" "CTRL $mainMod SHIFT, right, layoutmsg, movewindowto r"
"CTRL $mainMod SHIFT, left, layoutmsg, movewindowto l" "CTRL $mainMod SHIFT, left, layoutmsg, movewindowto l"
"CTRL $mainMod SHIFT, down, movetoworkspace, r+1" "CTRL $mainMod SHIFT, down, movetoworkspace, r+1"
"CTRL $mainMod SHIFT, up, movetoworkspace, r-1" "CTRL $mainMod SHIFT, up, movetoworkspace, r-1"
"Super Shift, left, layoutmsg, movewindowto l"
"Super Shift, right, layoutmsg, movewindowto r"
"Super Shift, up, movewindow, u"
"Super Shift, down, movewindow, d"
# scroll layout
"$mainMod, R, layoutmsg, colresize +conf" "$mainMod, R, layoutmsg, colresize +conf"
"$mainMod, C, layoutmsg, center" "$mainMod, C, layoutmsg, center"
"$mainMod SHIFT, R, layoutmsg, colresize 0.7" "$mainMod SHIFT, R, layoutmsg, colresize 0.7"
# wspace # interface
"Super, code:10, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 1" "$mainMod, P, exec, ${ipc} bar toggle"
"Super, code:11, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 2" "CTRL ALT, Delete, exec, ${ipc} sessionMenu toggle"
"Super, code:12, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 3" # plugins
"Super, code:13, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 4" "$mainMod SHIFT, S, exec, ${ipc} plugin:screen-shot-and-record screenshot"
"Super, code:14, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 5" "$mainMod SHIFT, Z, exec, ${ipc} plugin:screen-shot-and-record search"
"Super, code:15, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 6" "$mainMod SHIFT, X, exec, ${ipc} plugin:screen-shot-and-record ocr"
"Super, code:16, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 7" "$mainMod SHIFT, C, exec, ${ipc} plugin:music panel"
"Super, code:17, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 8" # launchers
"Super, code:18, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 9" "$mainMod, Return, exec, ghostty"
"Super, code:19, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 10" "$mainMod, W, exec, zen-beta"
"$mainMod, E, exec, nautilus"
"$mainMod, Z, exec, zeditor"
"$mainMod ALT, V, exec, pavucontrol"
"$mainMod SHIFT, V, exec, ${ipc} launcher clipboard"
"$mainMod SHIFT, L, exec, ${ipc} lockScreen lock"
"CTRL SHIFT, Escape, exec, ghostty -e btop"
"Super Alt, code:10, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 1" # window management
"Super Alt, code:11, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 2" "$mainMod, Q, killactive"
"Super Alt, code:12, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 3" "$mainMod ALT, SPACE, togglefloating"
"Super Alt, code:13, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 4" "$mainMod, F, fullscreen, 0"
"Super Alt, code:14, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 5" "$mainMod, D, fullscreen, 1"
"Super Alt, code:15, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 6" "$mainMod ALT, P, pin"
"Super Alt, code:16, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 7"
"Super Alt, code:17, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 8"
"Super Alt, code:18, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 9"
"Super Alt, code:19, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 10"
"Ctrl Super, Right, workspace, r+1" # focus windows
"Ctrl Super, Left, workspace, r-1" "$mainMod, left, layoutmsg, move -col"
"Super, Page_Down, workspace, +1" "$mainMod, right, layoutmsg, move +col"
"Super, Page_Up, workspace, -1" "$mainMod, up, movefocus, u"
"$mainMod, down, movefocus, d"
# special workspace "$mainMod SHIFT, left, layoutmsg, movewindowto l"
"Super, S, togglespecialworkspace" "$mainMod SHIFT, right, layoutmsg, movewindowto r"
"Super Alt, S, movetoworkspacesilent, special" "$mainMod SHIFT, up, movewindow, u"
"$mainMod SHIFT, down, movewindow, d"
# media # workspace navigation
"Super Shift, N, exec, playerctl next" "$mainMod, 1, workspace, 1"
"Super Shift, B, exec, playerctl previous" "$mainMod, 2, workspace, 2"
"Super Shift, P, exec, playerctl play-pause" "$mainMod, 3, workspace, 3"
"$mainMod, 4, workspace, 4"
"$mainMod, 5, workspace, 5"
"$mainMod, 6, workspace, 6"
"$mainMod, 7, workspace, 7"
"$mainMod, 8, workspace, 8"
"$mainMod, 9, workspace, 9"
"$mainMod, 0, workspace, 10"
# move windows to workspace
"$mainMod SHIFT, 1, movetoworkspace, 1"
"$mainMod SHIFT, 2, movetoworkspace, 2"
"$mainMod SHIFT, 3, movetoworkspace, 3"
"$mainMod SHIFT, 4, movetoworkspace, 4"
"$mainMod SHIFT, 5, movetoworkspace, 5"
"$mainMod SHIFT, 6, movetoworkspace, 6"
"$mainMod SHIFT, 7, movetoworkspace, 7"
"$mainMod SHIFT, 8, movetoworkspace, 8"
"$mainMod SHIFT, 9, movetoworkspace, 9"
"$mainMod SHIFT, 0, movetoworkspace, 10"
# special workspaces
"$mainMod, S, togglespecialworkspace"
"$mainMod ALT, S, movetoworkspacesilent, special"
# mouse workspace navigation
"$mainMod, mouse_up, workspace, +1"
"$mainMod, mouse_down, workspace, -1"
# media keys
"$mainMod SHIFT, N, exec, playerctl next"
"$mainMod SHIFT, B, exec, playerctl previous"
"$mainMod SHIFT, P, exec, playerctl play-pause"
]; ];
# mouse binds
bindm = [ bindm = [
"Super, mouse:272, movewindow" "$mainMod, mouse:272, movewindow"
"Super, mouse:273, resizewindow" "$mainMod, mouse:273, resizewindow"
]; ];
bindle = [ # volume and brightness binds
", XF86MonBrightnessUp, exec, ${qs} brightness increment || brightnessctl s 5%+" bindel = [
", XF86MonBrightnessDown, exec, ${qs} brightness decrement || brightnessctl s 5%-" ", XF86AudioRaiseVolume, exec, ${ipc} volume increase"
", XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 2%+ -l 1.5" ", XF86AudioLowerVolume, exec, ${ipc} volume decrease"
", XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 2%-" ", XF86MonBrightnessUp, exec, ${ipc} brightness increase"
", XF86MonBrightnessDown, exec, ${ipc} brightness decrease"
]; ];
# volume and media keys
bindl = [ bindl = [
", XF86AudioMute, exec, wpctl set-mute @DEFAULT_SINK@ toggle" ", XF86AudioMute, exec, ${ipc} volume muteOutput"
", XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_SOURCE@ toggle" ", XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_SOURCE@ toggle"
", XF86AudioNext, exec, playerctl next" ", XF86AudioNext, exec, playerctl next"
", XF86AudioPrev, exec, playerctl previous" ", XF86AudioPrev, exec, playerctl previous"
+1
View File
@@ -24,6 +24,7 @@ in
environment.systemPackages = packages.system ++ [ environment.systemPackages = packages.system ++ [
inputs.helium.packages.${system}.default inputs.helium.packages.${system}.default
inputs.zen-browser.packages.${system}.default inputs.zen-browser.packages.${system}.default
inputs.noctalia.packages.${system}.default
inputs.copetch.packages.${system}.default inputs.copetch.packages.${system}.default
]; ];
environment.pathsToLink = [ environment.pathsToLink = [
-1
View File
@@ -8,5 +8,4 @@
services.irqbalance.enable = true; services.irqbalance.enable = true;
services.power-profiles-daemon.enable = true; services.power-profiles-daemon.enable = true;
services.upower.enable = true; services.upower.enable = true;
services.geoclue2.enable = true;
} }
-2
View File
@@ -9,8 +9,6 @@
fonts = { fonts = {
packages = with pkgs; [ packages = with pkgs; [
noto-fonts noto-fonts
rubik
nerd-fonts.ubuntu
noto-fonts-cjk-sans noto-fonts-cjk-sans
noto-fonts-cjk-serif noto-fonts-cjk-serif
noto-fonts-color-emoji noto-fonts-color-emoji
+2
View File
@@ -13,12 +13,14 @@
substituters = [ substituters = [
"https://cache.nixos.org" "https://cache.nixos.org"
"https://nix-community.cachix.org" "https://nix-community.cachix.org"
"https://noctalia.cachix.org"
"https://attic.xuyh0120.win/lantian" "https://attic.xuyh0120.win/lantian"
"https://hyprland.cachix.org" "https://hyprland.cachix.org"
]; ];
trusted-public-keys = [ trusted-public-keys = [
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=" "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
"noctalia.cachix.org-1:pCOR47nnMEo5thcxNDtzWpOxNFQsBRglJzxWPp3dkU4="
"lantian:EeAUQ+W+6r7EtwnmYjeVwx5kOGEBpjlBfPlzGlTNvHc=" "lantian:EeAUQ+W+6r7EtwnmYjeVwx5kOGEBpjlBfPlzGlTNvHc="
"hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc=" "hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="
]; ];