laptop cfg

This commit is contained in:
Vivian 2022-09-07 13:57:45 +02:00
parent 34f8e5cb61
commit 8be9000dc1
5 changed files with 40 additions and 46 deletions

View file

@ -16,7 +16,7 @@ let
'';
run-hyprland = pkgs.writeShellScriptBin "run-hyprland" ''
export _JAVA_AWT_WM_NONREPARENTING=1
export XCURSOR_SIZE=24
export XCURSOR_SIZE=32
export CLUTTER_BACKEND=wayland
export XDG_SESSION_TYPE=wayland
@ -26,6 +26,7 @@ let
export WLR_BACKEND=vulkan
export QT_QPA_PLATFORM=wayland
export GDK_BACKEND=wayland
export SDL_VIDEODRIVER=wayland
exec Hyprland
'';
@ -131,22 +132,20 @@ in
};
environment.loginShellInit = ''
if [[ "$(tty)" == /dev/tty1 ]]; then
if [ -z $DISPLAY ] && [ "$(tty)" = "/dev/tty1" ]; then
${run-hyprland}/bin/run-hyprland
fi
'';
services.xserver = {
# enable = true;
enable = false;
layout = "us";
xkbVariant = "altgr-intl";
xkbOptions = "caps:swapescape";
videoDrivers = [ "nvidia" ];
};
# hardware.nvidia.modesetting.enable = true;
hardware.nvidia = {
# open = true;
prime = {
offload.enable = true;
intelBusId = "PCI:0:2:0";

View file

@ -18,6 +18,7 @@
element-desktop-wayland
fluxcd
fusee-launcher
gcc
gimp
gnome.eog
gnome.file-roller
@ -41,7 +42,6 @@
wf-recorder # Screenrecorder
wl-clipboard # Clipboard manager
wofi # Wayland rofi
];
programs.foot = {

View file

@ -1,5 +1,29 @@
@import url(./colours.scss);
$rosewater: #f2d5cf;
$flamingo: #eebebe;
$pink: #f4b8e4;
$mauve: #ca9ee6;
$red: #e78284;
$maroon: #ea999c;
$peach: #ef9f76;
$yellow: #e5c890;
$green: #a6d189;
$teal: #81c8be;
$sky: #99d1db;
$sapphire: #85c1dc;
$blue: #8caaee;
$lavender: #babbf1;
$text: #c6d0f5;
$subtext1: #b5bfe2;
$subtext0: #a5adce;
$overlay2: #949cbb;
$overlay1: #838ba7;
$overlay0: #737994;
$surface2: #626880;
$surface1: #51576d;
$surface0: #414559;
$base: #303446;
$mantle: #292c3c;
$crust: #232634;
$light-gray: #9699b7;
* {

View file

@ -33,35 +33,6 @@ let
};
in
{
home.file.".config/eww/colours.scss".text = ''
$rosewater: #${colour.rosewater};
$flamingo: #${colour.flamingo};
$pink: #${colour.pink};
$mauve: #${colour.mauve};
$red: #${colour.red};
$maroon: #${colour.maroon};
$peach: #${colour.peach};
$yellow: #${colour.yellow};
$green: #${colour.green};
$teal: #${colour.teal};
$sky: #${colour.sky};
$sapphire: #${colour.sapphire};
$blue: #${colour.blue};
$lavender: #${colour.lavender};
$text: #${colour.text};
$subtext1: #${colour.subtext1};
$subtext0: #${colour.subtext0};
$overlay2: #${colour.overlay2};
$overlay1: #${colour.overlay1};
$overlay0: #${colour.overlay0};
$surface2: #${colour.surface2};
$surface1: #${colour.surface1};
$surface0: #${colour.surface0};
$base: #${colour.base};
$mantle: #${colour.mantle};
$crust: #${colour.crust};
'';
# Note, pink and blue are switched
programs.foot.settings.colors = {
foreground = colour.text; # Text