Use cage for the display manager

This commit is contained in:
marc
2024-03-02 23:03:20 +01:00
parent d1b63fe326
commit f2b20c7acd
7 changed files with 45 additions and 11 deletions

View File

@@ -43,6 +43,10 @@ tooltip label {
color: $base0D; color: $base0D;
} }
.wifi.icon {
padding-right: 12px;
}
.wifi-text { .wifi-text {
padding-left: 8px; padding-left: 8px;
} }

View File

@@ -58,14 +58,10 @@ run_cmd() {
elif [[ $1 == '--suspend' ]]; then elif [[ $1 == '--suspend' ]]; then
systemctl suspend systemctl suspend
elif [[ $1 == '--logout' ]]; then elif [[ $1 == '--logout' ]]; then
if [[ "$DESKTOP_SESSION" == 'openbox' ]]; then if [[ "$DESKTOP_SESSION" == 'i3' ]]; then
openbox --exit
elif [[ "$DESKTOP_SESSION" == 'bspwm' ]]; then
bspc quit
elif [[ "$DESKTOP_SESSION" == 'i3' ]]; then
i3-msg exit i3-msg exit
elif [[ "$DESKTOP_SESSION" == 'plasma' ]]; then elif [[ ! -z $HYPRLAND_INSTANCE_SIGNATURE ]]; then
qdbus org.kde.ksmserver /KSMServer logout 0 0 0 hyprctl dispatch exit
fi fi
fi fi
else else

View File

Before

Width:  |  Height:  |  Size: 880 KiB

After

Width:  |  Height:  |  Size: 880 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 MiB

View File

@@ -3,7 +3,7 @@
with lib; with lib;
let let
nix-colors-lib = inputs.nix-colors.lib-contrib { inherit pkgs; }; nix-colors-lib = inputs.nix-colors.lib-contrib { inherit pkgs; };
wallpaper = ../../data/wallpapers/wallhaven/canyon.jpg; wallpaper = ../../data/wallpapers/wallhaven/muntanya.png;
in in
{ {
imports = [ imports = [

View File

@@ -21,8 +21,42 @@ in {
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
# Wallpaper # Wallpaper
hyprpaper hyprpaper
greetd.gtkgreet
cage
]; ];
# - Login screen -----------------------------
services.greetd = {
enable = true;
settings = {
default_session = {
command = "${pkgs.cage}/bin/cage -d -s ${pkgs.greetd.gtkgreet}/bin/gtkgreet -- -c Hyprland -s /etc/greetd/greetd.css";
user = config.user.name;
};
};
};
environment.etc."greetd/environments".text = ''
Hyprland
'';
environment.etc."greetd/greetd.css".text = ''
window {
background-image: url("file://${config.samfelag.modules.desktop.wallpaper}");
background-size: cover;
background-position: center;
font-family: Iosevka;
color: #${config.colorScheme.palette.base00};
}
box#body {
background-color: #${config.colorScheme.palette.base06};
opacity: 0.75;
border-radius: 10px;
padding: 50px;
}
'';
# - Dependencies ----------------------------- # - Dependencies -----------------------------
samfelag.modules.desktop.rofi.enable = true; samfelag.modules.desktop.rofi.enable = true;
samfelag.modules.desktop.eww.enable = true; samfelag.modules.desktop.eww.enable = true;
@@ -31,8 +65,8 @@ in {
# Hyprpaper # Hyprpaper
hm.xdg.configFile."hypr/hyprpaper.conf".text = '' hm.xdg.configFile."hypr/hyprpaper.conf".text = ''
preload = ${config.samfelag.modules.desktop.wallpaper} preload = ${config.samfelag.modules.desktop.wallpaper}
wallpaper = ,${config.samfelag.modules.desktop.wallpaper} wallpaper = ,${config.samfelag.modules.desktop.wallpaper}
''; '';
programs.hyprland = { programs.hyprland = {
@@ -69,7 +103,7 @@ in {
gestures = { gestures = {
# See https://wiki.hyprland.org/Configuring/Variables/ for more # See https://wiki.hyprland.org/Configuring/Variables/ for more
workspace_swipe = false; workspace_swipe = true;
}; };
bind = [ bind = [