Changed wlogout to tui

This commit is contained in:
ManOfGoldForever 2026-04-05 01:12:45 -04:00
parent 56b6b91e57
commit b532a2b8f4
12 changed files with 24 additions and 166 deletions

View file

@ -0,0 +1,22 @@
function powermenu
set choice (printf "Logout\nReboot\nShutdown\nLock" | fzf \
--prompt=" power " \
--no-info \
--no-sort \
--border=rounded \
--border-label=" system " \
--color="bg:#141514,bg+:#1e1f1e,fg:#f4decd,fg+:#f4decd,hl:#ef934d,hl+:#ef934d,prompt:#ef934d,pointer:#ef934d,border:#2a2b2a,label:#ef934d" \
--pointer=">" \
--margin=2,4)
switch $choice
case Logout
swaymsg exit
case Reboot
systemctl reboot
case Shutdown
systemctl poweroff
case Lock
swaylock -f -c 141514
end
end

View file

@ -46,7 +46,7 @@ for_window [app_id="dev.zed.Zed"] focus
# App launchers:
bindsym $mod+b exec $browser
bindsym $mod+e exec $filemanager
bindsym $mod+p exec wlogout
bindsym $mod+p exec kitty --app-id powermenu fish -c powermenu
bindsym $mod+s exec steam
bindsym $mod+a exec mumble
bindsym $mod+z exec swaylock -f -c 282a36

View file

@ -1,36 +0,0 @@
{
"label" : "lock",
"action" : "hyprlock",
"text" : "Lock",
"keybind" : "l"
}
{
"label" : "hibernate",
"action" : "systemctl hibernate",
"text" : "Hibernate",
"keybind" : "h"
}
{
"label" : "logout",
"action" : "hyprctl dispatch exit",
"text" : "Logout",
"keybind" : "e"
}
{
"label" : "shutdown",
"action" : "systemctl poweroff",
"text" : "Shutdown",
"keybind" : "s"
}
{
"label" : "suspend",
"action" : "systemctl suspend",
"text" : "Suspend",
"keybind" : "u"
}
{
"label" : "reboot",
"action" : "systemctl reboot",
"text" : "Reboot",
"keybind" : "r"
}

View file

@ -1,51 +0,0 @@
* {
background-image: none;
box-shadow: none;
}
window {
background-color: rgba(40, 42, 54, 0.8); /* DraculaBackground and slightly transparent */
}
button {
border-radius: 4;
margin: 5;
border-color: #44475a; /* DraculaPurple */
text-decoration-color: #BD93F9; /* DraculaPurple */
color: #BD93F9; /* DraculaPurple */
background-color: #282A36; /* DraculaBackground */
border-style: solid;
border-width: 2px;
background-repeat: no-repeat;
background-position: center;
background-size: 25%;
}
button:focus, button:active, button:hover {
border-color: #BD93F9; /* DraculaPurple */
outline-style: none;
}
#lock {
background-image: image(url("/usr/share/wlogout/icons/lock.png"), url("/usr/local/share/wlogout/icons/lock.png"));
}
#logout {
background-image: image(url("/usr/share/wlogout/icons/logout.png"), url("/usr/local/share/wlogout/icons/logout.png"));
}
#suspend {
background-image: image(url("/usr/share/wlogout/icons/suspend.png"), url("/usr/local/share/wlogout/icons/suspend.png"));
}
#hibernate {
background-image: image(url("/usr/share/wlogout/icons/hibernate.png"), url("/usr/local/share/wlogout/icons/hibernate.png"));
}
#shutdown {
background-image: image(url("/usr/share/wlogout/icons/shutdown.png"), url("/usr/local/share/wlogout/icons/shutdown.png"));
}
#reboot {
background-image: image(url("/usr/share/wlogout/icons/reboot.png"), url("/usr/local/share/wlogout/icons/reboot.png"));
}

View file

@ -50,7 +50,7 @@ for_window [app_id="dev.zed.Zed"] focus
bindsym $mod+b exec $browser
bindsym $mod+e exec $filemanager
# bindsym $mod+w (wallpaper selector removed - using solid color bg)
bindsym $mod+p exec wlogout
bindsym $mod+p exec kitty --app-id powermenu fish -c powermenu
bindsym $mod+s exec steam
bindsym $mod+a exec mumble

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

View file

@ -1,30 +0,0 @@
{
"label" : "hibernate",
"action" : "systemctl hibernate",
"text" : "Hibernate",
"keybind" : "h"
}
{
"label" : "logout",
"action" : "swaymsg exit",
"text" : "Logout",
"keybind" : "e"
}
{
"label" : "shutdown",
"action" : "systemctl poweroff",
"text" : "Shutdown",
"keybind" : "s"
}
{
"label" : "suspend",
"action" : "systemctl suspend",
"text" : "Suspend",
"keybind" : "u"
}
{
"label" : "reboot",
"action" : "systemctl reboot",
"text" : "Reboot",
"keybind" : "r"
}

View file

@ -1,47 +0,0 @@
* {
background-image: none;
box-shadow: none;
}
window {
background-color: rgba(20, 21, 20, 0.92);
}
button {
border-radius: 0px;
margin: 4px;
border-style: solid;
border-width: 2px;
border-color: #ef934d;
background-color: #1e1f1e;
background-repeat: no-repeat;
background-position: center;
background-size: 25%;
color: #ef934d;
}
button:focus, button:active, button:hover {
border-color: #ef934d;
background-color: #2a2b2a;
outline-style: none;
}
#logout {
background-image: image(url("icons/logout.png"));
}
#suspend {
background-image: image(url("icons/suspend.png"));
}
#hibernate {
background-image: image(url("icons/hibernate.png"));
}
#shutdown {
background-image: image(url("icons/shutdown.png"));
}
#reboot {
background-image: image(url("icons/reboot.png"));
}