Use cage for the display manager
This commit is contained in:
@@ -43,6 +43,10 @@ tooltip label {
|
||||
color: $base0D;
|
||||
}
|
||||
|
||||
.wifi.icon {
|
||||
padding-right: 12px;
|
||||
}
|
||||
|
||||
.wifi-text {
|
||||
padding-left: 8px;
|
||||
}
|
||||
|
||||
@@ -58,14 +58,10 @@ run_cmd() {
|
||||
elif [[ $1 == '--suspend' ]]; then
|
||||
systemctl suspend
|
||||
elif [[ $1 == '--logout' ]]; then
|
||||
if [[ "$DESKTOP_SESSION" == 'openbox' ]]; then
|
||||
openbox --exit
|
||||
elif [[ "$DESKTOP_SESSION" == 'bspwm' ]]; then
|
||||
bspc quit
|
||||
elif [[ "$DESKTOP_SESSION" == 'i3' ]]; then
|
||||
if [[ "$DESKTOP_SESSION" == 'i3' ]]; then
|
||||
i3-msg exit
|
||||
elif [[ "$DESKTOP_SESSION" == 'plasma' ]]; then
|
||||
qdbus org.kde.ksmserver /KSMServer logout 0 0 0
|
||||
elif [[ ! -z $HYPRLAND_INSTANCE_SIGNATURE ]]; then
|
||||
hyprctl dispatch exit
|
||||
fi
|
||||
fi
|
||||
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;
|
||||
let
|
||||
nix-colors-lib = inputs.nix-colors.lib-contrib { inherit pkgs; };
|
||||
wallpaper = ../../data/wallpapers/wallhaven/canyon.jpg;
|
||||
wallpaper = ../../data/wallpapers/wallhaven/muntanya.png;
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
|
||||
@@ -21,8 +21,42 @@ in {
|
||||
environment.systemPackages = with pkgs; [
|
||||
# Wallpaper
|
||||
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 -----------------------------
|
||||
samfelag.modules.desktop.rofi.enable = true;
|
||||
samfelag.modules.desktop.eww.enable = true;
|
||||
@@ -31,8 +65,8 @@ in {
|
||||
|
||||
# Hyprpaper
|
||||
hm.xdg.configFile."hypr/hyprpaper.conf".text = ''
|
||||
preload = ${config.samfelag.modules.desktop.wallpaper}
|
||||
wallpaper = ,${config.samfelag.modules.desktop.wallpaper}
|
||||
preload = ${config.samfelag.modules.desktop.wallpaper}
|
||||
wallpaper = ,${config.samfelag.modules.desktop.wallpaper}
|
||||
'';
|
||||
|
||||
programs.hyprland = {
|
||||
@@ -69,7 +103,7 @@ in {
|
||||
|
||||
gestures = {
|
||||
# See https://wiki.hyprland.org/Configuring/Variables/ for more
|
||||
workspace_swipe = false;
|
||||
workspace_swipe = true;
|
||||
};
|
||||
|
||||
bind = [
|
||||
|
||||
Reference in New Issue
Block a user