Skip to content

Commit 4bdaee3

Browse files
Save changes at: 1774123119
1 parent 8bb6a54 commit 4bdaee3

1 file changed

Lines changed: 64 additions & 1 deletion

File tree

sway.sh

Lines changed: 64 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ function main() {
99
install_fonts
1010
configure_sway
1111
configure_waybar
12+
configure_wlogout
1213
configure_application_launcher
1314
configure_background
1415
configure_alacritty
@@ -389,7 +390,6 @@ function configure_background() {
389390
function configure_waybar() {
390391
echo "==> Configure waybar."
391392

392-
393393
mkdir -p "$HOME"/.config/waybar/
394394
cat > "$HOME"/.config/waybar/config << 'EOF'
395395
{
@@ -583,6 +583,69 @@ window#waybar {
583583
EOF
584584
}
585585

586+
function configure_wlogout() {
587+
echo "==> Configure wlogout."
588+
589+
mkdir -p "$HOME"/.config/wlogout/
590+
cat > "$HOME"/.config/wlogout/layout << 'EOF'
591+
[
592+
{ "label" : "lock", "action" : "swaylock" },
593+
{ "label" : "logout", "action" : "hyprctl dispatch exit" },
594+
{ "label" : "suspend", "action" : "systemctl suspend" },
595+
{ "label" : "reboot", "action" : "systemctl reboot" },
596+
{ "label" : "shutdown", "action" : "systemctl poweroff" }
597+
]
598+
EOF
599+
600+
cat > "$HOME"/.config/wlogout/style.css << 'EOF'
601+
* {
602+
font-family: "JetBrainsMono Nerd Font";
603+
font-size: 16px;
604+
}
605+
606+
window {
607+
background-color: rgba(27, 38, 44, 0.95);
608+
}
609+
610+
button {
611+
color: rgb(187, 225, 250);
612+
background-color: transparent;
613+
border: none;
614+
margin: 10px;
615+
padding: 20px;
616+
border-radius: 6px;
617+
min-width: 120px;
618+
min-height: 120px;
619+
transition: all 0.2s ease;
620+
}
621+
622+
button:hover {
623+
background-color: #313244;
624+
}
625+
626+
/* Botones específicos */
627+
#lock {
628+
color: #89b4fa;
629+
}
630+
631+
#logout {
632+
color: #89b4fa;
633+
}
634+
635+
#suspend {
636+
color: #f9e2af;
637+
}
638+
639+
#reboot {
640+
color: #fab387;
641+
}
642+
643+
#shutdown {
644+
color: #D53E0F;
645+
}
646+
EOF
647+
}
648+
586649
function configure_alacritty() {
587650
echo "==> Configure Alacritty."
588651

0 commit comments

Comments
 (0)