swaylock instead of gtklock (#177)

This commit is contained in:
end-4 2024-01-07 11:37:26 +07:00
parent 5397bb2dc9
commit c2b344fde3
5 changed files with 5 additions and 5 deletions

View file

@ -57,7 +57,8 @@ const SessionButton = (name, icon, command, props = {}) => {
export default () => {
// lock, logout, sleep
const lockButton = SessionButton('Lock', 'lock', () => { App.closeWindow('session'); execAsync('gtklock') });
// const lockButton = SessionButton('Lock', 'lock', () => { App.closeWindow('session'); execAsync('gtklock') });
const lockButton = SessionButton('Lock', 'lock', () => { App.closeWindow('session'); execAsync('swaylock') });
const logoutButton = SessionButton('Logout', 'logout', () => { App.closeWindow('session'); execAsync(['bash', '-c', 'loginctl terminate-user $USER']) });
const sleepButton = SessionButton('Sleep', 'sleep', () => { App.closeWindow('session'); execAsync('systemctl suspend') });
// hibernate, shutdown, reboot

2
.config/wlogout/layout Normal file → Executable file
View file

@ -1,6 +1,6 @@
{
"label" : "lock",
"action" : "gtklock",
"action" : "swaylock",
"text" : "lock",
"keybind" : "l"
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 132 KiB

1
.config/wlogout/style.css Normal file → Executable file
View file

@ -6,7 +6,6 @@
window {
background: rgba(0, 0, 0, 0.5);
background-image: url('./noise.png');
}
button {

View file

@ -20,7 +20,7 @@ set -e
# Undo Step 3: Removing copied config and local folders
printf '\e[36mRemoving copied config and local folders...\n\e[97m'
for i in ags fish fontconfig foot fuzzel gtklock hypr mpv swaylock wlogout "starship.toml" rubyshot
for i in ags fish fontconfig foot fuzzel hypr mpv swaylock wlogout "starship.toml" rubyshot
do v rm -rf "$HOME/.config/$i"
done
@ -44,6 +44,6 @@ v sudo deluser "$user" input
##############################################################################################################################
# Removing installed yay packages and dependencies
v yay -Rns adw-gtk3-git brightnessctl cava foot fuzzel gjs gojq gradience-git grim gtk-layer-shell gtklock gtklock-playerctl-module gtklock-powerbar-module gtklock-userinfo-module hyprland-git lexend-fonts-git libdbusmenu-gtk3 plasma-browser-integration playerctl python-build python-material-color-utilities python-poetry python-pywal ripgrep sassc slurp starship swayidle swaylock swww tesseract ttf-jetbrains-mono-nerd ttf-material-symbols-variable-git ttf-space-mono-nerd typescript webp-pixbuf-loader wl-clipboard wlogout yad ydotool
v yay -Rns adw-gtk3-git brightnessctl cava foot fuzzel gjs gojq gradience-git grim gtk-layer-shell hyprland-git lexend-fonts-git libdbusmenu-gtk3 plasma-browser-integration playerctl python-build python-material-color-utilities python-poetry python-pywal ripgrep sassc slurp starship swayidle swaylock swww tesseract ttf-jetbrains-mono-nerd ttf-material-symbols-variable-git ttf-space-mono-nerd typescript webp-pixbuf-loader wl-clipboard wlogout yad ydotool
printf '\e[36mUninstall Complete.\n\e[97m'