wofi style and wofi power menu on keybind press

This commit is contained in:
Alexander Bell 2025-05-13 05:24:09 +02:00
parent 132b9f97a1
commit 1531844053
6 changed files with 73 additions and 10 deletions

View File

@ -10,6 +10,7 @@ bind = $mainMod, RETURN, exec, $terminal
bind = $mainMod, B, exec, $browser
bind = $mainMod, Y, exec, $filemanager
bind = $mainMod, M, exec, $email
bind = $mainMod, XF86AudioMedia, exec, $powerMenu
# General binds
bind = $mainMod, Q, killactive,

View File

@ -7,7 +7,7 @@
# https://wiki.hyprland.org/Configuring/Variables/#general
general {
gaps_in = 5
gaps_out = 20
gaps_out = 13
border_size = 2
@ -26,12 +26,12 @@ general {
# https://wiki.hyprland.org/Configuring/Variables/#decoration
decoration {
rounding = 7
rounding_power = 7
rounding = 10
rounding_power = 10
# Change transparency of focused and unfocused windows
active_opacity = 0.85
inactive_opacity = 0.85
active_opacity = 0.87
inactive_opacity = 0.87
shadow {
enabled = true
@ -44,9 +44,8 @@ decoration {
blur {
enabled = true
size = 15
passes = 2
vibrancy = 0.1696
passes = 3
vibrancy = 0
}
}
@ -90,8 +89,8 @@ windowrules {
#windowrule = opaque, instance=gtk-tooltip
# Smart gaps
workspace = w[tv1], gapsout:6, gapsin:0
workspace = f[1], gapsout:6, gapsin:0
workspace = w[tv1], gapsout:7, gapsin:0
workspace = f[1], gapsout:7, gapsin:0
windowrule = bordersize 0, floating:0, onworkspace:w[tv1]
windowrule = bordersize 0, floating:0, onworkspace:f[1]
}

View File

@ -18,6 +18,7 @@ monitor=,preferred,auto,1.566667
$terminal = kitty
$filemanager = kitty -e yazi
$menu = wofi --show drun
$powerMenu = bash ~/.config/wofi/wofi-powermenu.sh
$browser = firefox
$email = thunderbird

6
wofi/config Normal file
View File

@ -0,0 +1,6 @@
allow_images=true
gtk-dark=true
image_size=20
width=25%
hide-scroll=true
lines=7

39
wofi/style.css Normal file
View File

@ -0,0 +1,39 @@
window {
margin: 25px;
#border: 1px solid #bd93f9;
background-color: #282a36;
}
#input {
margin: 15px;
border: none;
color: #f8f8f2;
background-color: #44475a;
}
#inner-box {
margin: 15px;
border: none;
background-color: #282a36;
}
#outer-box {
margin: 5px;
border: none;
background-color: #282a36;
}
#scroll {
margin: 5px;
border: none;
}
#text {
margin: 5px;
border: none;
color: #f8f8f2;
}
#entry:selected {
background-color: #44475a;
}

17
wofi/wofi-powermenu.sh Executable file
View File

@ -0,0 +1,17 @@
#!/bin/bash
entries="⇠ Logout\n⏾ Suspend\n⭮ Reboot\n⏻ Shutdown"
selected=$(echo -e $entries|wofi --width 250 --height 240 --dmenu --cache-file /dev/null | awk '{print tolower($2)}')
case $selected in
logout)
pkill -u kia;;
suspend)
exec systemctl suspend;;
reboot)
exec systemctl reboot;;
shutdown)
exec systemctl poweroff;;
# it used to be poweroff -i
esac