initial config

This commit is contained in:
Rouven Seifert 2023-06-05 19:57:19 +02:00
parent ed093a2784
commit 7e1d2412ef
Signed by: rouven.seifert
GPG key ID: B95E8FE6B11C4D09
7 changed files with 60 additions and 11 deletions

2
TODO Normal file
View file

@ -0,0 +1,2 @@
grimshot for screenshots
swaynotificationcenter

View file

@ -101,7 +101,7 @@
xdg.portal = { xdg.portal = {
enable = true; enable = true;
extraPortals = [ extraPortals = [
pkgs.xdg-desktop-portal-hyprland pkgs.xdg-desktop-portal-wlr
]; ];
}; };

View file

@ -4,7 +4,7 @@
enable = true; enable = true;
settings = { settings = {
default_session = { default_session = {
command = "${pkgs.greetd.tuigreet}/bin/tuigreet --cmd Hyprland"; command = "${pkgs.greetd.tuigreet}/bin/tuigreet --cmd sway";
}; };
}; };
}; };

View file

@ -6,7 +6,8 @@
./git ./git
./gpg ./gpg
./helix ./helix
./hyprland # ./hyprland
./sway
./mpv ./mpv
./sops ./sops
./spotify ./spotify

View file

@ -0,0 +1,46 @@
{ config, pkgs, ... }:
{
imports = [
# ./hyprpaper.nix
./session.nix
./waybar.nix
];
wayland.windowManager.sway = {
enable = true;
config = {
modifier = "Mod4";
menu = "${pkgs.fuzzel}/bin/fuzzel";
terminal = "${pkgs.foot}/bin/footclient";
bars = [ ];
gaps = {
outer = 5;
inner = 12;
};
input = {
"*" = {
xkb_layout = "us";
xkb_variant = "dvorak-alt-intl";
};
};
};
};
xdg.configFile = {
"fuzzel/fuzzel.ini".text = ''
[main]
icon-theme=${config.gtk.iconTheme.name}
show-actions=yes
width=80
terminal=${pkgs.foot}/bin/foot
[colors]
background=${config.colorScheme.colors.base00}ff
text=${config.colorScheme.colors.base05}ff
match=${config.colorScheme.colors.base08}ff
selection=${config.colorScheme.colors.base02}ff
selection-text=${config.colorScheme.colors.base04}ff
border=${config.colorScheme.colors.base01}ff
'';
};
}

View file

@ -7,7 +7,6 @@
services.swayidle = { services.swayidle = {
enable = true; enable = true;
systemdTarget = "hyprland-session.target";
events = [ events = [
{ event = "before-sleep"; command = "${pkgs.swaylock-effects}/bin/swaylock"; } { event = "before-sleep"; command = "${pkgs.swaylock-effects}/bin/swaylock"; }
{ event = "lock"; command = "${pkgs.swaylock-effects}/bin/swaylock"; } { event = "lock"; command = "${pkgs.swaylock-effects}/bin/swaylock"; }

View file

@ -1,16 +1,17 @@
{ self, config, pkgs, hyprland, ... }: { self, config, pkgs, ... }:
{ {
systemd.user.services.waybar.Service.Environment = "PATH=${pkgs.hyprland}/bin"; # systemd.user.services.waybar.Service.Environment = "PATH=${pkgs.hyprland}/bin";
programs.waybar = { programs.waybar = {
enable = true; enable = true;
systemd.enable = true; systemd.enable = true;
package = hyprland.packages.x86_64-linux.waybar-hyprland; # package = hyprland.packages.x86_64-linux.waybar-hyprland;
settings = { settings = {
mainBar = { mainBar = {
layer = "top"; layer = "top";
position = "top"; position = "top";
height = 26; height = 26;
modules-left = [ "wlr/workspaces" "custom/spotifytitle" "hyprland/window" ]; # modules-left = [ "wlr/workspaces" "custom/spotifytitle" "hyprland/window" ];
modules-left = [ "sway/workspaces" "custom/spotifytitle" "sway/window" ];
modules-right = [ "network" "cpu" "temperature" "pulseaudio" "battery" "tray" "clock" ]; modules-right = [ "network" "cpu" "temperature" "pulseaudio" "battery" "tray" "clock" ];
network = { network = {
format-wifi = " {essid} ({signalStrength}%)"; format-wifi = " {essid} ({signalStrength}%)";
@ -20,13 +21,13 @@
format-disconnected = "Disconnected "; format-disconnected = "Disconnected ";
format-alt = "{ifname}: {ipaddr}/{cidr}"; format-alt = "{ifname}: {ipaddr}/{cidr}";
}; };
"wlr/workspaces" = { "sway/workspaces" = {
format = "{icon}"; format = "{icon}";
on-click = "activate"; on-click = "activate";
}; };
"hyprland/window" = { "sway/window" = {
format = " {}"; format = " {}";
separate-outputs = true; # separate-outputs = true;
}; };
"custom/spotifytitle" = { "custom/spotifytitle" = {