Use cage for the display manager
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 880 KiB After Width: | Height: | Size: 880 KiB |
BIN
data/wallpapers/wallhaven/desert.jpg
Normal file
BIN
data/wallpapers/wallhaven/desert.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.5 MiB |
BIN
data/wallpapers/wallhaven/muntanya.png
Normal file
BIN
data/wallpapers/wallhaven/muntanya.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.0 MiB |
@@ -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 = [
|
||||||
|
|||||||
@@ -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;
|
||||||
@@ -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 = [
|
||||||
|
|||||||
Reference in New Issue
Block a user