diff --git a/Installer.sh b/Installer.sh index c019c4b0..44826aeb 100755 --- a/Installer.sh +++ b/Installer.sh @@ -132,6 +132,7 @@ dependencias=( lxappearance xsel bc + wlogout sddm adobe-source-code-pro-fonts ttf-fira-code diff --git a/config/hypr/UserConfigs/UserKeybinds.conf b/config/hypr/UserConfigs/UserKeybinds.conf index 930e9882..8e45797b 100644 --- a/config/hypr/UserConfigs/UserKeybinds.conf +++ b/config/hypr/UserConfigs/UserKeybinds.conf @@ -32,7 +32,6 @@ bind = $mainMod_SHIFT, Slash, exec, codium --disable-gpu # FEATURES / EXTRAS bind = SHIFT_ALT, R, exec, $RunCMD reload_all bind = $mainMod_SHIFT, D, exec, $RunCMD toggle_touchpad -bind = $mainMod, X, exec, $RunCMD powermenu bind = $mainMod_SHIFT, A, exec, $RunCMD gamemode bind = ALT, slash, exec, $RunCMD emoji bind = ALT, F1, exec, $RunCMD kb_changer @@ -45,6 +44,7 @@ bind = SHIFT_ALT,W, exec, $RunCMD random_wall bind = $mainMod, F1, exec, $RunCMD keybind bind = ALT, T, exec, $RunCMD tmux bind = $mainMod, R, exec, $RunCMD sr +bind = $mainMod, escape, exec, wlogout bind = $mainMod_SHIFT, N, exec, swaync-client -C # Online Music related keybinds diff --git a/config/hypr/scripts/Rofi_cmd.sh b/config/hypr/scripts/Rofi_cmd.sh index ba325132..244b6879 100755 --- a/config/hypr/scripts/Rofi_cmd.sh +++ b/config/hypr/scripts/Rofi_cmd.sh @@ -108,40 +108,6 @@ edit() { main } - -###################################### -# # -# Powermenu # -# # -###################################### - -powermenu() { - uptime_info=$(uptime -p | sed -e 's/up //g') - host=$(hostnamectl hostname) - options=("Lock(l)" "Suspend(u)" "Logout(e)" "Reboot(r)" "Shutdown(s)" "Hibernate(h)") - icons=("" "" "󰿅" "󱄌" "" "󰒲") - - chosen_option=$(printf "%s\n" "${options[@]}" | \ - rofi -dmenu -i -p " $USER@$host" -mesg " Uptime: $uptime_info" \ - -kb-select-1 "l" \ - -kb-select-2 "u" \ - -kb-select-3 "e" \ - -kb-select-4 "r" \ - -kb-select-5 "s" \ - -kb-select-6 "h" \ - -theme ~/.config/rofi/config-powermenu.rasi | awk '{print $1}') - - case $chosen_option in - "Lock(l)") swaylock & ;; - "Suspend(u)") swaylock -f && systemctl suspend ;; - "Logout(e)") hyprctl dispatch exit 0 ;; - "Reboot(r)") systemctl reboot ;; - "Shutdown(s)") systemctl poweroff ;; - "Hibernate(h)") swaylock -f && systemctl hibernate ;; - *) echo "choose: $chosen_option" ;; - esac -} - ###################################### # # # Keybinds # diff --git a/config/wlogout/icons/hibernate.png b/config/wlogout/icons/hibernate.png new file mode 100644 index 00000000..6e3ba13e Binary files /dev/null and b/config/wlogout/icons/hibernate.png differ diff --git a/config/wlogout/icons/lock.png b/config/wlogout/icons/lock.png new file mode 100644 index 00000000..08f0e986 Binary files /dev/null and b/config/wlogout/icons/lock.png differ diff --git a/config/wlogout/icons/logout.png b/config/wlogout/icons/logout.png new file mode 100644 index 00000000..080ccb90 Binary files /dev/null and b/config/wlogout/icons/logout.png differ diff --git a/config/wlogout/icons/power.png b/config/wlogout/icons/power.png new file mode 100644 index 00000000..190f2ee2 Binary files /dev/null and b/config/wlogout/icons/power.png differ diff --git a/config/wlogout/icons/restart.png b/config/wlogout/icons/restart.png new file mode 100644 index 00000000..963c58e3 Binary files /dev/null and b/config/wlogout/icons/restart.png differ diff --git a/config/wlogout/icons/sleep.png b/config/wlogout/icons/sleep.png new file mode 100644 index 00000000..829316bb Binary files /dev/null and b/config/wlogout/icons/sleep.png differ diff --git a/config/wlogout/layout b/config/wlogout/layout new file mode 100644 index 00000000..530cf69b --- /dev/null +++ b/config/wlogout/layout @@ -0,0 +1,41 @@ +{ + "label" : "lock", + "action" : "swaylock", + "text" : "Lock", + "keybind" : "l" +} + +{ + "label" : "logout", + "action" : "loginctl terminate-user $USER", + "text" : "Logout", + "keybind" : "e" +} + +{ + "label" : "shutdown", + "action" : "systemctl poweroff", + "text" : "Shutdown", + "keybind" : "s" +} + +{ + "label" : "reboot", + "action" : "systemctl reboot", + "text" : "Reboot", + "keybind" : "r" +} + +{ + "label" : "suspend", + "action" : "swaylock -f && systemctl suspend", + "text" : "Suspend", + "keybind" : "u" +} + +{ + "label" : "hibernate", + "action" : "systemctl hibernate", + "text" : "Hibernate", + "keybind": "h" +} diff --git a/config/wlogout/style.css b/config/wlogout/style.css new file mode 100644 index 00000000..befde935 --- /dev/null +++ b/config/wlogout/style.css @@ -0,0 +1,61 @@ +* { + background-image: none; +} +window { + font-family: CaskaydiaCove Nerd Font, monospace; + font-size: 18pt; + background-color: rgba(17, 17, 27, .88); +} + +button { + background-repeat: no-repeat; + background-position: center; + background-size: 25%; + text-shadow: none; + border-radius: 20px 20px 20px 20px; + background-color: rgba(17, 17, 27, 0.0); + color: #ad8ee6; + margin: 20px; + /* transition: box-shadow 0.2s ease-in-out, background-color 0.2s ease-in-out; */ +} + +button:focus { + + background-color: rgba(17, 17, 27, 0.0); + background-size: 50%; +} + +button:active { + background-color: rgba(17, 17, 27, 0.0); + background-size: 25%; +} + +button:hover { + background-color: rgba(17, 17, 27, 0.0); + background-size: 50%; +} + +#lock { + background-image: image(url("./icons/lock.png")); + /* background-size: 70%; */ +} + +#logout { + background-image: image(url("./icons/logout.png")); +} + +#suspend { + background-image: image(url("./icons/sleep.png")); +} + +#shutdown { + background-image: image(url("./icons/power.png")); +} + +#reboot { + background-image: image(url("./icons/restart.png")); +} + +#hibernate { + background-image: image(url("./icons/hibernate.png")); +}