mirror of
https://github.com/Stunkymonkey/dotfiles.git
synced 2025-05-24 02:54:40 +02:00
[wofi] replace rofi with wofi in sway
This commit is contained in:
parent
e4726c9174
commit
72acfd474b
4 changed files with 55 additions and 3 deletions
|
@ -147,9 +147,9 @@ bindsym $mod+y exec ~/.dotfiles/sway/lock.sh
|
|||
bindsym Scroll_Lock exec ~/.dotfiles/sway/lock.sh
|
||||
|
||||
# start dmenu (a program launcher)
|
||||
bindsym $mod+d exec rofi -show || albert toggle || albert
|
||||
bindsym $mod+Shift+d exec ~/.dotfiles/rofi/system.sh
|
||||
bindsym Alt+Space exec rofi -show
|
||||
bindsym $mod+d exec wofi --show drun
|
||||
bindsym $mod+Shift+d exec ~/.dotfiles/wofi/system.sh
|
||||
bindsym Alt+Space exec wofi --show drun
|
||||
|
||||
# gtk3
|
||||
set $gnome-schema org.gnome.desktop.interface
|
||||
|
|
5
wofi/config
Normal file
5
wofi/config
Normal file
|
@ -0,0 +1,5 @@
|
|||
mode=run
|
||||
colors=colors
|
||||
filter_rate=100
|
||||
allow_images=true
|
||||
allow_markup=true
|
27
wofi/style.css
Normal file
27
wofi/style.css
Normal file
|
@ -0,0 +1,27 @@
|
|||
/* https://cloudninja.pw/docs/wofi.html */
|
||||
window {
|
||||
border: 2px solid black;
|
||||
background-color: #333333;
|
||||
}
|
||||
|
||||
#input {
|
||||
border: 2px solid black;
|
||||
background-color: #555555;
|
||||
font-size: 18px;
|
||||
color: #fff
|
||||
}
|
||||
|
||||
|
||||
#outer-box {
|
||||
margin: 10px;
|
||||
}
|
||||
|
||||
#scroll {
|
||||
margin: 5px 0px;
|
||||
font-size: 16px;
|
||||
color: #ccc;
|
||||
}
|
||||
|
||||
#scroll label {
|
||||
margin: 2px 0px;
|
||||
}
|
20
wofi/system.sh
Executable file
20
wofi/system.sh
Executable file
|
@ -0,0 +1,20 @@
|
|||
#!/bin/bash
|
||||
|
||||
chosen=$(echo -e "[Cancel]\nLogout\nShutdown\nReboot\nSuspend\nHibernate\nHybrid-sleep\nSuspend-then-hibernate" | wofi --dmenu --insensitive)
|
||||
|
||||
if [[ $chosen = "Logout" ]]; then
|
||||
swaymsg exit
|
||||
loginctl terminate-session "$(loginctl session-status | awk 'NR==1{print $1}')"
|
||||
elif [[ $chosen = "Shutdown" ]]; then
|
||||
systemctl poweroff
|
||||
elif [[ $chosen = "Reboot" ]]; then
|
||||
systemctl reboot
|
||||
elif [[ $chosen = "Suspend" ]]; then
|
||||
systemctl suspend
|
||||
elif [[ $chosen = "Hibernate" ]]; then
|
||||
systemctl hibernate
|
||||
elif [[ $chosen = "Hybrid-sleep" ]]; then
|
||||
systemctl hibernate
|
||||
elif [[ $chosen = "Suspend-then-hibernate" ]]; then
|
||||
systemctl suspend-then-hibernate
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue