feat(installer): dropping rofipower & using wlogout
This commit is contained in:
1 parent
221f8425a9
commit
fab4eb11aa
11 files changed
+104
-35
No files matched your search
@@ -132,6 +132,7 @@ dependencias=(
|
||||
lxappearance
|
||||
xsel
|
||||
bc
|
||||
wlogout
|
||||
sddm
|
||||
adobe-source-code-pro-fonts
|
||||
ttf-fira-code
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 #
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 8.4 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 19 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 11 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 59 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 50 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 25 KiB |
@@ -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"
|
||||
}
|
||||
@@ -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"));
|
||||
}
|
||||
Reference in new issue
Block a user