From 6881f4fcddefad0300bf1afcc51efdd2ec043e70 Mon Sep 17 00:00:00 2001 From: iFargle Date: Thu, 31 Aug 2023 00:04:36 +0900 Subject: [PATCH] wlogout --- .../desktops/hyprland/gruvbox/wlogout.nix | 68 +++++++------------ .../hyprland/gruvbox/wlogout/hibernate.svg | 1 + .../hyprland/gruvbox/wlogout/lock.svg | 1 + .../hyprland/gruvbox/wlogout/logout.svg | 1 + .../hyprland/gruvbox/wlogout/reboot.svg | 1 + .../hyprland/gruvbox/wlogout/shutdown.svg | 1 + .../hyprland/gruvbox/wlogout/suspend.svg | 1 + 7 files changed, 31 insertions(+), 43 deletions(-) create mode 100644 home-manager/hosts/nixos-laptop/desktops/hyprland/gruvbox/wlogout/hibernate.svg create mode 100644 home-manager/hosts/nixos-laptop/desktops/hyprland/gruvbox/wlogout/lock.svg create mode 100644 home-manager/hosts/nixos-laptop/desktops/hyprland/gruvbox/wlogout/logout.svg create mode 100644 home-manager/hosts/nixos-laptop/desktops/hyprland/gruvbox/wlogout/reboot.svg create mode 100644 home-manager/hosts/nixos-laptop/desktops/hyprland/gruvbox/wlogout/shutdown.svg create mode 100644 home-manager/hosts/nixos-laptop/desktops/hyprland/gruvbox/wlogout/suspend.svg diff --git a/home-manager/hosts/nixos-laptop/desktops/hyprland/gruvbox/wlogout.nix b/home-manager/hosts/nixos-laptop/desktops/hyprland/gruvbox/wlogout.nix index c0cab744..09582e36 100644 --- a/home-manager/hosts/nixos-laptop/desktops/hyprland/gruvbox/wlogout.nix +++ b/home-manager/hosts/nixos-laptop/desktops/hyprland/gruvbox/wlogout.nix @@ -4,40 +4,39 @@ target = "./wlogout/layout"; text = '' { - "label" : "lock", - "action" : "swaylock", - "text" : " - Lock", + "label" : "lock", + "action" : "swaylock", + "text" : "Lock", "keybind" : "l" } { - "label" : "hibernate", - "action" : "systemctl hibernate", - "text" : "Hibernate", + "label" : "hibernate", + "action" : "systemctl hibernate", + "text" : "Hibernate", "keybind" : "h" } { - "label" : "logout", - "action" : "loginctl terminate-user $USER", - "text" : "󰍃", + "label" : "logout", + "action" : "loginctl terminate-user $USER", + "text" : "Logout", "keybind" : "e" } { - "label" : "shutdown", - "action" : "systemctl poweroff", - "text" : "Shutdown", + "label" : "shutdown", + "action" : "systemctl poweroff", + "text" : "Shutdown", "keybind" : "s" } { - "label" : "suspend", - "action" : "systemctl suspend", - "text" : "Suspend", + "label" : "suspend", + "action" : "systemctl suspend", + "text" : "Suspend", "keybind" : "u" } { - "label" : "reboot", - "action" : "systemctl reboot", - "text" : "Reboot", + "label" : "reboot", + "action" : "systemctl reboot", + "text" : "Reboot", "keybind" : "r" } ''; @@ -65,32 +64,15 @@ button:focus, button:active, button:hover { background-color: #a89984; - outline-style: none; + outline-style: none; } - #lock { - background-image: url("/usr/local/share/wlogout/icons/lock.png"); - } - - #logout { - background-image: url("/usr/local/share/wlogout/icons/logout.png"); - } - - #suspend { - background-image: url("/usr/local/share/wlogout/icons/suspend.png"); - } - - #hibernate { - background-image: url("/usr/local/share/wlogout/icons/hibernate.png"); - } - - #shutdown { - background-image: url("/usr/local/share/wlogout/icons/shutdown.png"); - } - - #reboot { - background-image: url("/usr/local/share/wlogout/icons/reboot.png"); - } + #lock { background-image: url("/etc/nixos/git/home-manager/hosts/nixos-laptop/desktops/hyprland/gruvbox/wlogout/lock.svg") ; } + #logout { background-image: url("/etc/nixos/git/home-manager/hosts/nixos-laptop/desktops/hyprland/gruvbox/wlogout/logout.svg") ; } + #suspend { background-image: url("/etc/nixos/git/home-manager/hosts/nixos-laptop/desktops/hyprland/gruvbox/wlogout/suspend.svg") ; } + #hibernate { background-image: url("/etc/nixos/git/home-manager/hosts/nixos-laptop/desktops/hyprland/gruvbox/wlogout/hibernate.svg") ; } + #shutdown { background-image: url("/etc/nixos/git/home-manager/hosts/nixos-laptop/desktops/hyprland/gruvbox/wlogout/shutdown.svg") ; } + #reboot { background-image: url("/etc/nixos/git/home-manager/hosts/nixos-laptop/desktops/hyprland/gruvbox/wlogout/reboot.svg") ; } ''; }; } \ No newline at end of file diff --git a/home-manager/hosts/nixos-laptop/desktops/hyprland/gruvbox/wlogout/hibernate.svg b/home-manager/hosts/nixos-laptop/desktops/hyprland/gruvbox/wlogout/hibernate.svg new file mode 100644 index 00000000..084d2034 --- /dev/null +++ b/home-manager/hosts/nixos-laptop/desktops/hyprland/gruvbox/wlogout/hibernate.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/home-manager/hosts/nixos-laptop/desktops/hyprland/gruvbox/wlogout/lock.svg b/home-manager/hosts/nixos-laptop/desktops/hyprland/gruvbox/wlogout/lock.svg new file mode 100644 index 00000000..e8ec24c4 --- /dev/null +++ b/home-manager/hosts/nixos-laptop/desktops/hyprland/gruvbox/wlogout/lock.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/home-manager/hosts/nixos-laptop/desktops/hyprland/gruvbox/wlogout/logout.svg b/home-manager/hosts/nixos-laptop/desktops/hyprland/gruvbox/wlogout/logout.svg new file mode 100644 index 00000000..7ad7cba1 --- /dev/null +++ b/home-manager/hosts/nixos-laptop/desktops/hyprland/gruvbox/wlogout/logout.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/home-manager/hosts/nixos-laptop/desktops/hyprland/gruvbox/wlogout/reboot.svg b/home-manager/hosts/nixos-laptop/desktops/hyprland/gruvbox/wlogout/reboot.svg new file mode 100644 index 00000000..8571b65d --- /dev/null +++ b/home-manager/hosts/nixos-laptop/desktops/hyprland/gruvbox/wlogout/reboot.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/home-manager/hosts/nixos-laptop/desktops/hyprland/gruvbox/wlogout/shutdown.svg b/home-manager/hosts/nixos-laptop/desktops/hyprland/gruvbox/wlogout/shutdown.svg new file mode 100644 index 00000000..a766b2c4 --- /dev/null +++ b/home-manager/hosts/nixos-laptop/desktops/hyprland/gruvbox/wlogout/shutdown.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/home-manager/hosts/nixos-laptop/desktops/hyprland/gruvbox/wlogout/suspend.svg b/home-manager/hosts/nixos-laptop/desktops/hyprland/gruvbox/wlogout/suspend.svg new file mode 100644 index 00000000..a90fba87 --- /dev/null +++ b/home-manager/hosts/nixos-laptop/desktops/hyprland/gruvbox/wlogout/suspend.svg @@ -0,0 +1 @@ + \ No newline at end of file