mirror of
https://github.com/blahai/nyx.git
synced 2025-06-09 17:33:03 -04:00
Format with alejandra
This commit is contained in:
parent
4771948682
commit
e08f66d286
31 changed files with 398 additions and 278 deletions
|
@ -1,5 +1,10 @@
|
|||
{ pkgs, config, inputs, lib, ... }: {
|
||||
|
||||
{
|
||||
pkgs,
|
||||
config,
|
||||
inputs,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
./hyprland/rules.nix
|
||||
./hyprland/keybinds.nix
|
||||
|
@ -22,7 +27,7 @@
|
|||
|
||||
xdg.portal = {
|
||||
enable = true;
|
||||
configPackages = [ config.wayland.windowManager.hyprland.package ];
|
||||
configPackages = [config.wayland.windowManager.hyprland.package];
|
||||
extraPortals = [
|
||||
pkgs.xdg-desktop-portal-gtk
|
||||
inputs.hyprland.packages.${pkgs.system}.xdg-desktop-portal-hyprland
|
||||
|
@ -35,7 +40,6 @@
|
|||
package = inputs.hyprland.packages."${pkgs.system}".hyprland;
|
||||
|
||||
settings = {
|
||||
|
||||
monitor = [
|
||||
",prefered,auto,1"
|
||||
];
|
||||
|
@ -144,7 +148,7 @@
|
|||
misc = {
|
||||
vfr = 1;
|
||||
vrr = 2;
|
||||
|
||||
|
||||
middle_click_paste = false;
|
||||
focus_on_activate = true;
|
||||
animate_manual_resizes = false;
|
||||
|
@ -159,9 +163,6 @@
|
|||
|
||||
initial_workspace_tracking = false;
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,4 +1,9 @@
|
|||
{ pkgs, config, inputs, ... }: {
|
||||
{
|
||||
pkgs,
|
||||
config,
|
||||
inputs,
|
||||
...
|
||||
}: {
|
||||
wayland.windowManager.hyprland.settings = {
|
||||
exec-once = [
|
||||
"${pkgs.swww}/bin/swww-daemon --format xrgb"
|
||||
|
|
|
@ -1,72 +1,84 @@
|
|||
{ pkgs, config, inputs, ... }: {
|
||||
{
|
||||
pkgs,
|
||||
config,
|
||||
inputs,
|
||||
...
|
||||
}: {
|
||||
wayland.windowManager.hyprland.settings = {
|
||||
|
||||
bindle = [
|
||||
",XF86AudioMute, exec, playerctl --player=spotify,%any play-pause"
|
||||
",XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+"
|
||||
",XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-"
|
||||
];
|
||||
|
||||
bindm = [ "Super, mouse:272, movewindow" "Super, mouse:273, resizewindow" ];
|
||||
bindm = ["Super, mouse:272, movewindow" "Super, mouse:273, resizewindow"];
|
||||
|
||||
bindn = [ " , up, pass, JKPS" ];
|
||||
bindn = [" , up, pass, JKPS"];
|
||||
|
||||
binde = [ # Window split ratio
|
||||
binde = [
|
||||
# Window split ratio
|
||||
"Super, Semicolon, splitratio, -0.1"
|
||||
"Super, Apostrophe, splitratio, 0.1"
|
||||
];
|
||||
|
||||
bind = [
|
||||
"Super, mouse_up, workspace, +1"
|
||||
"Super, mouse_down, workspace, -1"
|
||||
"Super, Page_up, workspace, -1"
|
||||
"Super, Page_down, workspace, +1"
|
||||
bind =
|
||||
[
|
||||
"Super, mouse_up, workspace, +1"
|
||||
"Super, mouse_down, workspace, -1"
|
||||
"Super, Page_up, workspace, -1"
|
||||
"Super, Page_down, workspace, +1"
|
||||
|
||||
"Super+Shift, S, togglespecialworkspace"
|
||||
"Super+Shift, S, togglespecialworkspace"
|
||||
|
||||
"Super, R, exec, ${pkgs.anyrun}/bin/anyrun"
|
||||
"Super, W, exec, ${pkgs.floorp}/bin/floorp"
|
||||
"Super, Q, exec, wezterm"
|
||||
"Super, C, killactive"
|
||||
"Super, V, togglefloating"
|
||||
"Super, E, exec, ${pkgs.nautilus}/bin/nautilus -w"
|
||||
"SUPERALT, V, exec, pkill fuzzel || cliphist list | fuzzel --icon-theme=candy-icons --background-color=1A1513dd --text-color=F8D4D2ff --match-color=FFB3B1ff --border-width=2 --border-radius=15 --border-color=EB8A89ff --selection-color=585b70ff --selection-text-color=F8D4D2ff --selection-match-color=FFB3B1ff --font='Lexend' --prompt='>> ' --dmenu | cliphist decode | wl-copy"
|
||||
"Super, R, exec, ${pkgs.anyrun}/bin/anyrun"
|
||||
"Super, W, exec, ${pkgs.floorp}/bin/floorp"
|
||||
"Super, Q, exec, wezterm"
|
||||
"Super, C, killactive"
|
||||
"Super, V, togglefloating"
|
||||
"Super, E, exec, ${pkgs.nautilus}/bin/nautilus -w"
|
||||
"SUPERALT, V, exec, pkill fuzzel || cliphist list | fuzzel --icon-theme=candy-icons --background-color=1A1513dd --text-color=F8D4D2ff --match-color=FFB3B1ff --border-width=2 --border-radius=15 --border-color=EB8A89ff --selection-color=585b70ff --selection-text-color=F8D4D2ff --selection-match-color=FFB3B1ff --font='Lexend' --prompt='>> ' --dmenu | cliphist decode | wl-copy"
|
||||
|
||||
"Super, L, exec, ${pkgs.hyprlock}/bin/hyprlock"
|
||||
"Super, L, exec, ${pkgs.hyprlock}/bin/hyprlock"
|
||||
|
||||
# recording and ss stuff
|
||||
"Super, S, exec, pkill slurp || grimblast --freeze copy area"
|
||||
# recording and ss stuff
|
||||
"Super, S, exec, pkill slurp || grimblast --freeze copy area"
|
||||
|
||||
# ags stuff
|
||||
"Super + Control, R, exec, pkill ags; ags"
|
||||
"Super, Tab, exec, ags -t launcher"
|
||||
"Super, X, exec, ags -t powermenu"
|
||||
# ags stuff
|
||||
"Super + Control, R, exec, pkill ags; ags"
|
||||
"Super, Tab, exec, ags -t launcher"
|
||||
"Super, X, exec, ags -t powermenu"
|
||||
|
||||
## Hyprland stuff
|
||||
"Super, Z, movewindow"
|
||||
## Hyprland stuff
|
||||
"Super, Z, movewindow"
|
||||
|
||||
# Swap windows
|
||||
"Super+Shift, left, movewindow, l"
|
||||
"Super+Shift, right, movewindow, r"
|
||||
"Super+Shift, up, movewindow, u"
|
||||
"Super+Shift, down, movewindow, d"
|
||||
# Swap windows
|
||||
"Super+Shift, left, movewindow, l"
|
||||
"Super+Shift, right, movewindow, r"
|
||||
"Super+Shift, up, movewindow, u"
|
||||
"Super+Shift, down, movewindow, d"
|
||||
|
||||
# Move focus
|
||||
"Super, left, movefocus, l"
|
||||
"Super, right, movefocus, r"
|
||||
"Super, up, movefocus, u"
|
||||
"Super, down, movefocus, d"
|
||||
|
||||
# Fullscreen
|
||||
"Super+Shift, F, fullscreen, 0"
|
||||
|
||||
] ++ map (n:
|
||||
"Alt, ${toString n}, movetoworkspacesilent, ${
|
||||
toString (if n == 0 then 10 else n)
|
||||
}") [ 1 2 3 4 5 6 7 8 9 0 ] ++ map (n:
|
||||
"Super, ${toString n}, workspace, ${
|
||||
toString (if n == 0 then 10 else n)
|
||||
}") [ 1 2 3 4 5 6 7 8 9 0 ];
|
||||
# Move focus
|
||||
"Super, left, movefocus, l"
|
||||
"Super, right, movefocus, r"
|
||||
"Super, up, movefocus, u"
|
||||
"Super, down, movefocus, d"
|
||||
|
||||
# Fullscreen
|
||||
"Super+Shift, F, fullscreen, 0"
|
||||
]
|
||||
++ map (n: "Alt, ${toString n}, movetoworkspacesilent, ${
|
||||
toString (
|
||||
if n == 0
|
||||
then 10
|
||||
else n
|
||||
)
|
||||
}") [1 2 3 4 5 6 7 8 9 0]
|
||||
++ map (n: "Super, ${toString n}, workspace, ${
|
||||
toString (
|
||||
if n == 0
|
||||
then 10
|
||||
else n
|
||||
)
|
||||
}") [1 2 3 4 5 6 7 8 9 0];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,7 +1,11 @@
|
|||
{ pkgs, config, inputs, lib, ... }:
|
||||
{
|
||||
pkgs,
|
||||
config,
|
||||
inputs,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
wayland.windowManager.hyprland.settings = {
|
||||
|
||||
workspace = [
|
||||
"special:special, on-created-empty:exec spotify"
|
||||
];
|
||||
|
@ -22,7 +26,6 @@
|
|||
];
|
||||
|
||||
windowrulev2 = [
|
||||
|
||||
];
|
||||
|
||||
layerrule = [
|
||||
|
@ -47,7 +50,7 @@
|
|||
"ignorealpha 0.5, launcher"
|
||||
"blur, notifications"
|
||||
"ignorealpha 0.69, notifications"
|
||||
|
||||
|
||||
"animation slide top, sideleft.*"
|
||||
"animation slide top, sideright.*"
|
||||
"blur, session"
|
||||
|
@ -73,6 +76,5 @@
|
|||
"blur, osk"
|
||||
"ignorealpha 0.20, osk"
|
||||
];
|
||||
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ config, ... }: {
|
||||
|
||||
{config, ...}: {
|
||||
programs.hyprlock = {
|
||||
enable = true;
|
||||
settings = {
|
||||
|
@ -10,25 +9,28 @@
|
|||
no_fade_out = true;
|
||||
};
|
||||
|
||||
backgruond = { color = "rgba(000000FF)"; };
|
||||
backgruond = {color = "rgba(000000FF)";};
|
||||
|
||||
input-field = [{
|
||||
monitor = "";
|
||||
size = "250, 50";
|
||||
outline_thickness = 2;
|
||||
dots_size = 0.1;
|
||||
dots_spacing = 0.3;
|
||||
outer_color = "rgba(8C909F55)";
|
||||
inner_color = "rgba(0F131C11)";
|
||||
font_color = "rgba(C2C6D6FF)";
|
||||
input-field = [
|
||||
{
|
||||
monitor = "";
|
||||
size = "250, 50";
|
||||
outline_thickness = 2;
|
||||
dots_size = 0.1;
|
||||
dots_spacing = 0.3;
|
||||
outer_color = "rgba(8C909F55)";
|
||||
inner_color = "rgba(0F131C11)";
|
||||
font_color = "rgba(C2C6D6FF)";
|
||||
|
||||
position = "0, 20";
|
||||
halign = "center";
|
||||
valign = "center";
|
||||
}];
|
||||
position = "0, 20";
|
||||
halign = "center";
|
||||
valign = "center";
|
||||
}
|
||||
];
|
||||
|
||||
label = [
|
||||
{ # Clock
|
||||
{
|
||||
# Clock
|
||||
monitor = "";
|
||||
text = "$TIME";
|
||||
shadow_passes = 1;
|
||||
|
@ -40,7 +42,8 @@
|
|||
position = "0, 300";
|
||||
}
|
||||
|
||||
{ # Greeting
|
||||
{
|
||||
# Greeting
|
||||
monitor = "";
|
||||
text = "Hi $USER !!!";
|
||||
shadow_passes = 1;
|
||||
|
@ -54,7 +57,8 @@
|
|||
valign = "center";
|
||||
}
|
||||
|
||||
{ # lock icon
|
||||
{
|
||||
# lock icon
|
||||
monitor = "";
|
||||
text = "lock";
|
||||
shadow_passes = 1;
|
||||
|
@ -68,7 +72,8 @@
|
|||
valign = "center";
|
||||
}
|
||||
|
||||
{ # "locked" text
|
||||
{
|
||||
# "locked" text
|
||||
monitor = "";
|
||||
text = "locked";
|
||||
shadow_passes = 1;
|
||||
|
@ -91,7 +96,6 @@
|
|||
# font_family = "Rubik Light";
|
||||
#}
|
||||
];
|
||||
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue