removed hyprland flake
This commit is contained in:
parent
cd8fd33a0b
commit
02717e7359
10
flake.nix
10
flake.nix
|
@ -3,13 +3,11 @@
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||||
ags.url = "github:Aylur/ags";
|
ags.url = "github:Aylur/ags";
|
||||||
stylix.url = "github:danth/stylix";
|
stylix.url = "github:danth/stylix";
|
||||||
hyprland.url = "git+https://github.com/hyprwm/Hyprland?submodules=1";
|
|
||||||
|
|
||||||
firefox-addons = {
|
|
||||||
url = "gitlab:rycee/nur-expressions?dir=pkgs/firefox-addons";
|
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
|
||||||
};
|
|
||||||
|
|
||||||
|
firefox-addons = {
|
||||||
|
url = "gitlab:rycee/nur-expressions?dir=pkgs/firefox-addons";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
home-manager = {
|
home-manager = {
|
||||||
url = "github:nix-community/home-manager";
|
url = "github:nix-community/home-manager";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
|
|
@ -1,202 +1,196 @@
|
||||||
{
|
{
|
||||||
pkgs,
|
pkgs,
|
||||||
inputs,
|
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
home-manager.users.joy.home.packages = with pkgs; [
|
home-manager.users.joy = {
|
||||||
rofi-wayland
|
home.packages = with pkgs; [
|
||||||
pwvucontrol
|
rofi-wayland
|
||||||
swww
|
pwvucontrol
|
||||||
wl-clipboard
|
swww
|
||||||
cliphist
|
wl-clipboard
|
||||||
grim
|
cliphist
|
||||||
slurp
|
grim
|
||||||
hyprpicker
|
slurp
|
||||||
swappy
|
hyprpicker
|
||||||
playerctl
|
swappy
|
||||||
];
|
playerctl
|
||||||
|
];
|
||||||
|
|
||||||
programs.hyprland = {
|
programs.hyprland = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland;
|
};
|
||||||
portalPackage = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.xdg-desktop-portal-hyprland;
|
|
||||||
};
|
|
||||||
|
|
||||||
nix.settings = {
|
services.cliphist.enable = true;
|
||||||
substituters = ["https://hyprland.cachix.org"];
|
|
||||||
trusted-public-keys = ["hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="];
|
|
||||||
};
|
|
||||||
|
|
||||||
home-manager.users.joy.services.cliphist.enable = true;
|
wayland.windowManager.hyprland = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
"$mod" = "SUPER";
|
||||||
|
"$sciPath" = "~/nix/modules/hypr/hyprland/scripts";
|
||||||
|
|
||||||
home-manager.users.joy.wayland.windowManager.hyprland = {
|
cursor = {
|
||||||
enable = true;
|
inactive_timeout = "3";
|
||||||
settings = {
|
};
|
||||||
"$mod" = "SUPER";
|
|
||||||
"$sciPath" = "~/nix/modules/hypr/hyprland/scripts";
|
|
||||||
|
|
||||||
cursor = {
|
env = [
|
||||||
inactive_timeout = "3";
|
"HYPRCURSOR_THEME = Bibata-Modern-Ice"
|
||||||
};
|
"HYPRCURSOR_SIZE = 24"
|
||||||
|
"NIXOS_OZONE_WL = 1"
|
||||||
|
];
|
||||||
|
|
||||||
env = [
|
xwayland = {
|
||||||
"HYPRCURSOR_THEME = Bibata-Modern-Ice"
|
force_zero_scaling = true;
|
||||||
"HYPRCURSOR_SIZE = 24"
|
};
|
||||||
"NIXOS_OZONE_WL = 1"
|
|
||||||
];
|
|
||||||
|
|
||||||
xwayland = {
|
monitor = [
|
||||||
force_zero_scaling = true;
|
"DP-1,2560x1440@165.00Hz,auto,1,bitdepth,10"
|
||||||
};
|
"eDP-1,prefrered,auto,1"
|
||||||
|
"HDMI-A-1,prefrered,auto,1,mirror,eDP-1"
|
||||||
|
];
|
||||||
|
|
||||||
monitor = [
|
exec-once = [
|
||||||
"DP-1,2560x1440@165.00Hz,auto,1,bitdepth,10"
|
"ags"
|
||||||
"eDP-1,prefrered,auto,1"
|
];
|
||||||
"HDMI-A-1,prefrered,auto,1,mirror,eDP-1"
|
|
||||||
];
|
|
||||||
|
|
||||||
exec-once = [
|
windowrule = [
|
||||||
"ags"
|
"float,title:^(Pipewire)(.*)$"
|
||||||
];
|
"float,title:^(Disks)(.*)$"
|
||||||
|
"float,title:^(Calculator)(.*)$"
|
||||||
|
"float,title:^(Bluetooth)(.*)$"
|
||||||
|
"float,title:^(Clocks)(.*)$"
|
||||||
|
"float,title:^(Network Connections)(.*)$"
|
||||||
|
"opacity 0.9,^(Alacritty)(.*)$"
|
||||||
|
];
|
||||||
|
|
||||||
windowrule = [
|
gestures = {
|
||||||
"float,title:^(Pipewire)(.*)$"
|
workspace_swipe = true;
|
||||||
"float,title:^(Disks)(.*)$"
|
workspace_swipe_forever = true;
|
||||||
"float,title:^(Calculator)(.*)$"
|
workspace_swipe_distance = 200;
|
||||||
"float,title:^(Bluetooth)(.*)$"
|
};
|
||||||
"float,title:^(Clocks)(.*)$"
|
|
||||||
"float,title:^(Network Connections)(.*)$"
|
|
||||||
"opacity 0.9,^(Alacritty)(.*)$"
|
|
||||||
];
|
|
||||||
|
|
||||||
gestures = {
|
general = {
|
||||||
workspace_swipe = true;
|
gaps_in = 5;
|
||||||
workspace_swipe_forever = true;
|
gaps_out = 10;
|
||||||
workspace_swipe_distance = 200;
|
border_size = 4;
|
||||||
};
|
allow_tearing = false;
|
||||||
|
layout = "master";
|
||||||
|
};
|
||||||
|
|
||||||
bind = [
|
misc = {
|
||||||
# launch Apps
|
disable_hyprland_logo = true;
|
||||||
"$mod,TAB, exec, alacritty"
|
disable_splash_rendering = true;
|
||||||
"$mod, E, exec, nemo"
|
};
|
||||||
"$mod, S, exec, firefox"
|
|
||||||
"$mod, X, exec, keepassxc"
|
|
||||||
"$mod, M, exec, mw -Y && alacritty -e neomutt"
|
|
||||||
"$mod, N, exec, alacritty -e newsboat"
|
|
||||||
"$mod, A, exec, rofi -show drun"
|
|
||||||
"$mod, F, exec, freetube"
|
|
||||||
"$mod, C, exec, hyprpicker -a"
|
|
||||||
"$mod+Shift, W, exec, sh $sciPath/vm.sh"
|
|
||||||
"$mod+Shift, Z, exec, grim - | swappy -f -"
|
|
||||||
"$mod, Z, exec, sh $sciPath/screen.sh"
|
|
||||||
"$mod, V, exec, cliphist list | rofi -dmenu | cliphist decode | wl-copy"
|
|
||||||
"$mod, O, exec, sh $sciPath/mpv.sh"
|
|
||||||
|
|
||||||
# controles
|
decoration = {
|
||||||
"$mod, Q, killactive"
|
rounding = 5;
|
||||||
"$mod, W, togglefloating"
|
};
|
||||||
"$mod, R, togglesplit"
|
|
||||||
"$mod+shift, S, exec, systemctl suspend"
|
|
||||||
"$mod+shift, M, exit, hyprland"
|
|
||||||
"$mod, G, exec, sh $sciPath/gamemode.sh"
|
|
||||||
"$mod+shift, B, exec, sh $sciPath/ags.sh"
|
|
||||||
"$mod, up, exec, sh $sciPath/volume.sh -i"
|
|
||||||
"$mod, down, exec, sh $sciPath/volume.sh -d"
|
|
||||||
"$mod, P, exec, hyprctl dispatch togglefloating && hyprctl dispatch pin"
|
|
||||||
|
|
||||||
# cmus
|
input = {
|
||||||
"$mod, D, exec, sh $sciPath/cmus.sh"
|
kb_layout = "us,de";
|
||||||
"$mod, space, exec, playerctl play-pause"
|
kb_variant = ",qwerty";
|
||||||
"$mod, comma, exec, playerctl previous"
|
kb_options = "grp:alt_shift_toggle,caps:swapescape";
|
||||||
"$mod, period, exec, playerctl next"
|
};
|
||||||
"$mod, equal, exec, cmus-remote -v +10%"
|
|
||||||
"$mod, minus, exec, cmus-remote -v -10%"
|
|
||||||
|
|
||||||
# Move focus
|
device = {
|
||||||
"$mod, Return, fullscreen"
|
name = "at-translated-set-2-keyboard";
|
||||||
"$mod, H, movefocus, l"
|
repeat_rate = "50";
|
||||||
"$mod, L, movefocus, r"
|
|
||||||
"$mod, K, movefocus, u"
|
|
||||||
"$mod, J, movefocus, d"
|
|
||||||
|
|
||||||
# Window resizing X Y
|
bind = [
|
||||||
"CTRL+SHIFT, H, resizeactive, -60 0"
|
# launch Apps
|
||||||
"CTRL+SHIFT, L, resizeactive, 60 0"
|
"$mod,TAB, exec, alacritty"
|
||||||
"CTRL+SHIFT, K, resizeactive, 0 -60"
|
"$mod, E, exec, nemo"
|
||||||
"CTRL+SHIFT, J, resizeactive, 0 60"
|
"$mod, S, exec, firefox"
|
||||||
|
"$mod, X, exec, keepassxc"
|
||||||
|
"$mod, M, exec, mw -Y && alacritty -e neomutt"
|
||||||
|
"$mod, N, exec, alacritty -e newsboat"
|
||||||
|
"$mod, A, exec, rofi -show drun"
|
||||||
|
"$mod, F, exec, freetube"
|
||||||
|
"$mod, C, exec, hyprpicker -a"
|
||||||
|
"$mod+Shift, W, exec, sh $sciPath/vm.sh"
|
||||||
|
"$mod+Shift, Z, exec, grim - | swappy -f -"
|
||||||
|
"$mod, Z, exec, sh $sciPath/screen.sh"
|
||||||
|
"$mod, V, exec, cliphist list | rofi -dmenu | cliphist decode | wl-copy"
|
||||||
|
"$mod, O, exec, sh $sciPath/mpv.sh"
|
||||||
|
|
||||||
# Moving windows
|
# controles
|
||||||
"$mod SHIFT, H, swapwindow, l"
|
"$mod, Q, killactive"
|
||||||
"$mod SHIFT, L, swapwindow, r"
|
"$mod, W, togglefloating"
|
||||||
"$mod SHIFT, K, swapwindow, u"
|
"$mod, R, togglesplit"
|
||||||
"$mod SHIFT, J, swapwindow, d"
|
"$mod+shift, S, exec, systemctl suspend"
|
||||||
|
"$mod+shift, M, exit, hyprland"
|
||||||
|
"$mod, G, exec, sh $sciPath/gamemode.sh"
|
||||||
|
"$mod+shift, B, exec, sh $sciPath/ags.sh"
|
||||||
|
"$mod, up, exec, sh $sciPath/volume.sh -i"
|
||||||
|
"$mod, down, exec, sh $sciPath/volume.sh -d"
|
||||||
|
"$mod, P, exec, hyprctl dispatch togglefloating && hyprctl dispatch pin"
|
||||||
|
|
||||||
# Switch workspaces
|
# cmus
|
||||||
"$mod, 1, workspace, 1"
|
"$mod, D, exec, sh $sciPath/cmus.sh"
|
||||||
"$mod, 2, workspace, 2"
|
"$mod, space, exec, playerctl play-pause"
|
||||||
"$mod, 3, workspace, 3"
|
"$mod, comma, exec, playerctl previous"
|
||||||
"$mod, 4, workspace, 4"
|
"$mod, period, exec, playerctl next"
|
||||||
"$mod, 5, workspace, 5"
|
"$mod, equal, exec, cmus-remote -v +10%"
|
||||||
"$mod, 6, workspace, 6"
|
"$mod, minus, exec, cmus-remote -v -10%"
|
||||||
"$mod, 7, workspace, 7"
|
|
||||||
"$mod, 8, workspace, 8"
|
|
||||||
"$mod, 9, workspace, 9"
|
|
||||||
"$mod, 0, workspace, 10"
|
|
||||||
|
|
||||||
# Move active window to a workspace
|
# Move focus
|
||||||
"$mod+Shift, 1, movetoworkspace, 1"
|
"$mod, Return, fullscreen"
|
||||||
"$mod+Shift, 2, movetoworkspace, 2"
|
"$mod, H, movefocus, l"
|
||||||
"$mod+Shift, 3, movetoworkspace, 3"
|
"$mod, L, movefocus, r"
|
||||||
"$mod+Shift, 4, movetoworkspace, 4"
|
"$mod, K, movefocus, u"
|
||||||
"$mod+Shift, 5, movetoworkspace, 5"
|
"$mod, J, movefocus, d"
|
||||||
"$mod+Shift, 6, movetoworkspace, 6"
|
|
||||||
"$mod+Shift, 7, movetoworkspace, 7"
|
|
||||||
"$mod+Shift, 8, movetoworkspace, 8"
|
|
||||||
"$mod+Shift, 9, movetoworkspace, 9"
|
|
||||||
"$mod+Shift, 0, movetoworkspace, 10"
|
|
||||||
];
|
|
||||||
|
|
||||||
bindm = [
|
# Window resizing X Y
|
||||||
"$mod, mouse:272, movewindow"
|
"CTRL+SHIFT, H, resizeactive, -60 0"
|
||||||
"$mod, mouse:273, resizewindow"
|
"CTRL+SHIFT, L, resizeactive, 60 0"
|
||||||
];
|
"CTRL+SHIFT, K, resizeactive, 0 -60"
|
||||||
|
"CTRL+SHIFT, J, resizeactive, 0 60"
|
||||||
|
|
||||||
bindl = [
|
# Moving windows
|
||||||
", XF86MonBrightnessUp, exec, brightnessctl set +10%"
|
"$mod SHIFT, H, swapwindow, l"
|
||||||
", XF86MonBrightnessDown, exec, brightnessctl set 10%-"
|
"$mod SHIFT, L, swapwindow, r"
|
||||||
", XF86AudioRaiseVolume, exec, sh $sciPath/volume.sh -i"
|
"$mod SHIFT, K, swapwindow, u"
|
||||||
", XF86AudioLowerVolume, exec, sh $sciPath/volume.sh -d"
|
"$mod SHIFT, J, swapwindow, d"
|
||||||
", XF86AudioMute, exec, sh $sciPath/volume.sh -m"
|
|
||||||
", XF86AudioMicMute, exec, sh $sciPath/volume.sh -t"
|
|
||||||
", XF86PowerOff, exec, sh $sciPath/rick.sh"
|
|
||||||
];
|
|
||||||
|
|
||||||
general = {
|
# Switch workspaces
|
||||||
gaps_in = 5;
|
"$mod, 1, workspace, 1"
|
||||||
gaps_out = 10;
|
"$mod, 2, workspace, 2"
|
||||||
border_size = 4;
|
"$mod, 3, workspace, 3"
|
||||||
allow_tearing = false;
|
"$mod, 4, workspace, 4"
|
||||||
layout = "master";
|
"$mod, 5, workspace, 5"
|
||||||
};
|
"$mod, 6, workspace, 6"
|
||||||
|
"$mod, 7, workspace, 7"
|
||||||
|
"$mod, 8, workspace, 8"
|
||||||
|
"$mod, 9, workspace, 9"
|
||||||
|
"$mod, 0, workspace, 10"
|
||||||
|
|
||||||
misc = {
|
# Move active window to a workspace
|
||||||
disable_hyprland_logo = true;
|
"$mod+Shift, 1, movetoworkspace, 1"
|
||||||
disable_splash_rendering = true;
|
"$mod+Shift, 2, movetoworkspace, 2"
|
||||||
};
|
"$mod+Shift, 3, movetoworkspace, 3"
|
||||||
|
"$mod+Shift, 4, movetoworkspace, 4"
|
||||||
|
"$mod+Shift, 5, movetoworkspace, 5"
|
||||||
|
"$mod+Shift, 6, movetoworkspace, 6"
|
||||||
|
"$mod+Shift, 7, movetoworkspace, 7"
|
||||||
|
"$mod+Shift, 8, movetoworkspace, 8"
|
||||||
|
"$mod+Shift, 9, movetoworkspace, 9"
|
||||||
|
"$mod+Shift, 0, movetoworkspace, 10"
|
||||||
|
];
|
||||||
|
|
||||||
decoration = {
|
bindm = [
|
||||||
rounding = 5;
|
"$mod, mouse:272, movewindow"
|
||||||
};
|
"$mod, mouse:273, resizewindow"
|
||||||
|
];
|
||||||
|
|
||||||
input = {
|
bindl = [
|
||||||
kb_layout = "us,de";
|
", XF86MonBrightnessUp, exec, brightnessctl set +10%"
|
||||||
kb_variant = ",qwerty";
|
", XF86MonBrightnessDown, exec, brightnessctl set 10%-"
|
||||||
kb_options = "grp:alt_shift_toggle,caps:swapescape";
|
", XF86AudioRaiseVolume, exec, sh $sciPath/volume.sh -i"
|
||||||
};
|
", XF86AudioLowerVolume, exec, sh $sciPath/volume.sh -d"
|
||||||
|
", XF86AudioMute, exec, sh $sciPath/volume.sh -m"
|
||||||
device = {
|
", XF86AudioMicMute, exec, sh $sciPath/volume.sh -t"
|
||||||
name = "at-translated-set-2-keyboard";
|
", XF86PowerOff, exec, sh $sciPath/rick.sh"
|
||||||
repeat_rate = "50";
|
];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue