nuke gtklock stuff

This commit is contained in:
end-4 2024-03-03 23:47:50 +07:00
parent 4ea6af8279
commit 9c1710361b
5 changed files with 0 additions and 175 deletions

View file

@ -61,7 +61,6 @@ 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(['loginctl', 'lock-session']) });
const logoutButton = SessionButton('Logout', 'logout', () => { App.closeWindow('session'); execAsync(['bash', '-c', 'pkill Hyprland || pkill sway']) });
const sleepButton = SessionButton('Sleep', 'sleep', () => { App.closeWindow('session'); execAsync('systemctl suspend') });

View file

@ -57,19 +57,6 @@ get_light_dark() {
echo "$lightdark"
}
apply_gtklock() {
# Check if scripts/templates/gtklock/main.scss exists
if [ ! -f "scripts/templates/gtklock/main.scss" ]; then
echo "SCSS not found for Gtklock. Skipping that."
return
fi
# Copy template
mkdir -p "$HOME"/.cache/ags/user/generated/gtklock
sass "scripts/templates/gtklock/main.scss" "$HOME"/.cache/ags/user/generated/gtklock/style.css
cp "$HOME"/.cache/ags/user/generated/gtklock/style.css "$HOME"/.config/gtklock/style.css
}
apply_fuzzel() {
# Check if scripts/templates/fuzzel/fuzzel.ini exists
if [ ! -f "scripts/templates/fuzzel/fuzzel.ini" ]; then
@ -182,6 +169,5 @@ apply_ags &
apply_hyprland &
apply_hyprlock &
apply_gtk &
# apply_gtklock &
apply_fuzzel &
apply_term &

View file

@ -1,89 +0,0 @@
// Could just sed but scss is better
@import '../../../scss/_material.scss'; // Which is ~/.config/ags/scss/_material.scss
* {
all: unset;
border: 0rem;
}
window {
background-color: transparentize($background, 0.6);
background-size: cover;
background-repeat: no-repeat;
background-position: center;
}
#window-box {
border-radius: 1.5rem;
padding: 1.5rem;
}
#input-label {
font-size: 1.5rem;
color: transparent;
background-color: transparent;
margin: -20rem; // bye bye
}
#input-field {
background-color: $secondaryContainer;
color: $onSecondaryContainer;
caret-color: $onSecondaryContainer;
border-radius: 999px;
font-size: 1.3rem;
padding: 0.341rem 1.364rem;
margin: 0.477rem;
box-shadow: 2px 2px 4px rgba(22, 22, 22, 0.5);
min-height: 2.727rem;
}
#unlock-button {
margin: -20rem; // bye bye
color: transparent;
background-color: transparent;
}
#error-label {
color: $error;
}
#clock-label {
font-family: 'Lexend';
font-size: 6rem;
border-radius: 1.2rem;
padding: 0.5rem;
margin: 0.6rem;
margin-top: -35rem; // higher clock position
color: $onSecondaryContainer;
text-shadow: 1px 1px 2px rgba(22, 22, 30, 0.5);
}
// #user-image {}
// #powerbar-box {}
#poweroff-button,
#reboot-button,
#suspend-button {
background-color: $secondaryContainer;
color: $onSecondaryContainer;
min-width: 3rem;
min-height: 3rem;
margin: 0.341rem;
border-radius: 9999px;
}
#poweroff-button:hover,
#reboot-button:hover,
#suspend-button:hover,
#poweroff-button:focus,
#reboot-button:focus,
#suspend-button:focus {
background-color: mix($secondaryContainer, white, 80%);
}
#poweroff-button:active,
#reboot-button:active,
#suspend-button:active {
background-color: mix($secondaryContainer, white, 70%);
}

View file

@ -1,3 +0,0 @@
[main]
gtk-theme=Tokyonight-Dark-BL-LB
modules=/usr/lib/gtklock/powerbar-module.so

View file

@ -1,68 +0,0 @@
* {
all: unset;
border: 0rem; }
window {
background-color: rgba(29, 27, 31, 0.4);
background-size: cover;
background-repeat: no-repeat;
background-position: center; }
#window-box {
border-radius: 1.5rem;
padding: 1.5rem; }
#input-label {
font-size: 1.5rem;
color: transparent;
background-color: transparent;
margin: -20rem; }
#input-field {
background-color: #4b4358;
color: #e9def8;
caret-color: #e9def8;
border-radius: 999px;
font-size: 1.3rem;
padding: 0.341rem 1.364rem;
margin: 0.477rem;
box-shadow: 2px 2px 4px rgba(22, 22, 22, 0.5);
min-height: 2.727rem; }
#unlock-button {
margin: -20rem;
color: transparent;
background-color: transparent; }
#error-label {
color: #ffb4a9; }
#clock-label {
font-family: 'Lexend';
font-size: 6rem;
border-radius: 1.2rem;
padding: 0.5rem;
margin: 0.6rem;
margin-top: -35rem;
color: #e9def8;
text-shadow: 1px 1px 2px rgba(22, 22, 30, 0.5); }
#poweroff-button,
#reboot-button,
#suspend-button {
background-color: #4b4358;
color: #e9def8;
min-width: 3rem;
min-height: 3rem;
margin: 0.341rem;
border-radius: 9999px; }
#poweroff-button:hover,
#reboot-button:hover,
#suspend-button:hover {
background-color: #6f6979; }
#poweroff-button:active,
#reboot-button:active,
#suspend-button:active {
background-color: #817b8a; }