diff --git a/modules/home/hyprland/config.nix b/modules/home/hyprland/config.nix index d897aa4..834ed09 100644 --- a/modules/home/hyprland/config.nix +++ b/modules/home/hyprland/config.nix @@ -87,6 +87,7 @@ ", XF86AudioMicMute, exec, ${pkgs.pulsemixer}/bin/pulsemixer --toggle-mute --id 1" ", XF86MonBrightnessUp, exec, ${pkgs.brightnessctl}/bin/brightnessctl set +5%" ", XF86MonBrightnessDown, exec, ${pkgs.brightnessctl}/bin/brightnessctl set 5%-" + "$mod, 9, exec, ${pkgs.hyprlock}/bin/hyprlock" "$mod, 0, exec, ${pkgs.wlogout}/bin/wlogout" ] ++ ( diff --git a/modules/home/wlogout/config.nix b/modules/home/wlogout/config.nix index 8565d50..cf1dee1 100644 --- a/modules/home/wlogout/config.nix +++ b/modules/home/wlogout/config.nix @@ -31,4 +31,38 @@ keybind = "l"; } ]; + programs.wlogout.style = builtins.readFile ./style.css; + xdg.enable = true; + xdg.configFile = { + "wlogout/icons/hibernate.png" = { + source = ./icons/hibernate.png; + }; + "wlogout/icons/lock.png" = { + source = ./icons/lock.png; + }; + "wlogout/icons/logout.png" = { + source = ./icons/logout.png; + }; + "wlogout/icons/power.png" = { + source = ./icons/power.png; + }; + "wlogout/icons/restart.png" = { + source = ./icons/restart.png; + }; + "wlogout/icons/hibernate-hover.png" = { + source = ./icons/hibernate-hover.png; + }; + "wlogout/icons/lock-hover.png" = { + source = ./icons/lock-hover.png; + }; + "wlogout/icons/logout-hover.png" = { + source = ./icons/logout-hover.png; + }; + "wlogout/icons/power-hover.png" = { + source = ./icons/power-hover.png; + }; + "wlogout/icons/restart-hover.png" = { + source = ./icons/restart-hover.png; + }; + }; } diff --git a/modules/home/wlogout/icons/hibernate-hover.png b/modules/home/wlogout/icons/hibernate-hover.png new file mode 100644 index 0000000..9f93aaf Binary files /dev/null and b/modules/home/wlogout/icons/hibernate-hover.png differ diff --git a/modules/home/wlogout/icons/hibernate.png b/modules/home/wlogout/icons/hibernate.png new file mode 100644 index 0000000..0090e02 Binary files /dev/null and b/modules/home/wlogout/icons/hibernate.png differ diff --git a/modules/home/wlogout/icons/lock-hover.png b/modules/home/wlogout/icons/lock-hover.png new file mode 100644 index 0000000..093d11e Binary files /dev/null and b/modules/home/wlogout/icons/lock-hover.png differ diff --git a/modules/home/wlogout/icons/lock.png b/modules/home/wlogout/icons/lock.png new file mode 100644 index 0000000..6b4afb7 Binary files /dev/null and b/modules/home/wlogout/icons/lock.png differ diff --git a/modules/home/wlogout/icons/logout-hover.png b/modules/home/wlogout/icons/logout-hover.png new file mode 100644 index 0000000..bcdf57b Binary files /dev/null and b/modules/home/wlogout/icons/logout-hover.png differ diff --git a/modules/home/wlogout/icons/logout.png b/modules/home/wlogout/icons/logout.png new file mode 100644 index 0000000..f280ca9 Binary files /dev/null and b/modules/home/wlogout/icons/logout.png differ diff --git a/modules/home/wlogout/icons/power-hover.png b/modules/home/wlogout/icons/power-hover.png new file mode 100644 index 0000000..26c06af Binary files /dev/null and b/modules/home/wlogout/icons/power-hover.png differ diff --git a/modules/home/wlogout/icons/power.png b/modules/home/wlogout/icons/power.png new file mode 100644 index 0000000..a32880b Binary files /dev/null and b/modules/home/wlogout/icons/power.png differ diff --git a/modules/home/wlogout/icons/restart-hover.png b/modules/home/wlogout/icons/restart-hover.png new file mode 100644 index 0000000..09f7797 Binary files /dev/null and b/modules/home/wlogout/icons/restart-hover.png differ diff --git a/modules/home/wlogout/icons/restart.png b/modules/home/wlogout/icons/restart.png new file mode 100644 index 0000000..719e03f Binary files /dev/null and b/modules/home/wlogout/icons/restart.png differ diff --git a/modules/home/wlogout/icons/sleep-hover.png b/modules/home/wlogout/icons/sleep-hover.png new file mode 100644 index 0000000..cd39d3d Binary files /dev/null and b/modules/home/wlogout/icons/sleep-hover.png differ diff --git a/modules/home/wlogout/icons/sleep.png b/modules/home/wlogout/icons/sleep.png new file mode 100644 index 0000000..3c6c618 Binary files /dev/null and b/modules/home/wlogout/icons/sleep.png differ diff --git a/modules/home/wlogout/style.css b/modules/home/wlogout/style.css new file mode 100644 index 0000000..f7f99be --- /dev/null +++ b/modules/home/wlogout/style.css @@ -0,0 +1,76 @@ + /* ----------- 💫 https://github.com/JaKooLit 💫 -------- */ + /* pywal-wlogout */ + +/* Importing pywal colors */ + +// @import '../../.cache/wal/colors-waybar.css'; + +window { + font-family: Fira Code Medium; + font-size: 16pt; + color: @foreground; /* text */ + background-color: rgba(24, 27, 32, 0.2); + +} + +button { + background-repeat: no-repeat; + background-position: center; + background-size: 20%; + background-color: transparent; + animation: gradient_f 20s ease-in infinite; + transition: all 0.3s ease-in; + box-shadow: 0 0 10px 2px transparent; + border-radius: 36px; + margin: 10px; +} + +button:focus { + box-shadow: none; + background-size : 20%; +} + +button:hover { + background-size: 50%; + box-shadow: 0 0 10px 3px rgba(0,0,0,.4); + // background-color: @color6; + background-color: rgba(24, 27, 32, 0.4); + color: transparent; + transition: all 0.3s cubic-bezier(.55, 0.0, .28, 1.682), box-shadow 0.5s ease-in; +} + +#shutdown { + background-image: image(url("./icons/power.png")); +} +#shutdown:hover { + background-image: image(url("./icons/power-hover.png")); +} + +#logout { + background-image: image(url("./icons/logout.png")); + +} +#logout:hover { + background-image: image(url("./icons/logout-hover.png")); +} + +#reboot { + background-image: image(url("./icons/restart.png")); +} +#reboot:hover { + background-image: image(url("./icons/restart-hover.png")); +} + +#lock { + background-image: image(url("./icons/lock.png")); +} +#lock:hover { + background-image: image(url("./icons/lock-hover.png")); +} + +#hibernate { + background-image: image(url("./icons/hibernate.png")); +} +#hibernate:hover { + background-image: image(url("./icons/hibernate-hover.png")); +}