removed swaylock & swayidle and using hyprlock & hypridle

This commit is contained in:
sankalp committed 2024-03-01 15:10:32 +05:45
1 parent 6cc66064b0
commit 6561acabdc
7 files changed
+146 -71

No files matched your search

+3 -3
View File
@@ -72,13 +72,13 @@ dependencias=(
playerctl
wf-recorder
kvantum
swaylock-effects-git
hyprlock
qt5ct
qt6ct
nwg-look
mpv-mpris
pacman-contrib
swayidle
hypridle
pavucontrol
pamixer
file-roller
@@ -206,7 +206,7 @@ if [ ! -d "$backup_folder" ]; then
mkdir -p "$backup_folder"
fi
for folder in cava geany hypr keyb kitty Kvantum lazygit lsd mpv neofetch nvim qimgv qt5ct qt6ct rofi starship swaylock swaync Thunar VSCodium waybar yazi zathura zsh; do
for folder in cava geany hypr keyb kitty Kvantum lazygit lsd mpv neofetch nvim qimgv qt5ct qt6ct rofi starship npm swaync Thunar VSCodium waybar yazi zathura zsh; do
if [ -d "$HOME/.config/$folder" ]; then
mv "$HOME/.config/$folder" "$backup_folder/${folder}_$date"
echo "$folder folder backed up successfully at $backup_folder/${folder}_$date"
+1 -7
View File
@@ -26,6 +26,7 @@ exec-once = waybar &
exec-once = swaync &
exec-once = blueman-applet &
exec-once = nm-applet --indicator &
exec-once = hypridle &
exec-once = udiskie &
#exec-once = blueman-applet &
exec-once = bluetoothctl power off &
@@ -37,13 +38,6 @@ exec-once = wl-paste --type image --watch cliphist store
# Rainbow borders
#exec-once = $RunCMD rainbow_border
# sway-idle with lock only
#exec-once = swayidle -w timeout 900 '$lock'
# sway-idle with lock and sleep
#exec-once = swayidle -w timeout 900 '$lock' timeout 1200 'hyprctl dispatch dpms off' resume 'hyprctl dispatch dpms on' before-sleep '$lock'
# sway idle without lock
#exec-once = swayidle -w timeout 900 'hyprctl dispatch dpms off' resume 'hyprctl dispatch dpms on'
## Here are list of features available but disabled by default
#exec-once = swww query || swww init && swww img $HOME/Pictures/wallpapers/mecha-nostalgia.png # persistent wallpaper
+29
View File
@@ -0,0 +1,29 @@
# _ _ _ _
# | |__ _ _ _ __ _ __(_) __| | | ___
# | '_ \| | | | '_ \| '__| |/ _` | |/ _ \
# | | | | |_| | |_) | | | | (_| | | __/
# |_| |_|\__, | .__/|_| |_|\__,_|_|\___|
# |___/|_|
#
general {
# lock_cmd = notify-send "lock!" # dbus/sysd lock command (loginctl lock-session)
# unlock_cmd = notify-send "unlock!" # same as above, but unlock
# before_sleep_cmd = notify-send "Zzz" # command ran before sleep
# after_sleep_cmd = notify-send "Awake!" # command ran after sleep
ignore_dbus_inhibit = false # whether to ignore dbus-sent idle-inhibit requests (used by e.g. firefox or steam)
}
# Screenlock
listener {
timeout = 600 # in seconds
on-timeout = hyprlock # command to run when timeout has passed
# on-resume = notify-send "Welcome back to your desktop!" # command to run when activity is detected after timeout has fired.
}
# Suspend
listener {
timeout = 660 # in seconds
on-timeout = systemctl suspend # command to run when timeout has passed
# on-resume = notify-send "Welcome back to your desktop!" # command to run when activity is detected after timeout has fired.
}
+89
View File
@@ -0,0 +1,89 @@
# _ _ _
# | |__ _ _ _ __ _ __| | ___ ___| | __
# | '_ \| | | | '_ \| '__| |/ _ \ / __| |/ /
# | | | | |_| | |_) | | | | (_) | (__| <
# |_| |_|\__, | .__/|_| |_|\___/ \___|_|\_\
# |___/|_|
#
background {
path = $HOME/dotfiles/rofi/.current_wallpaper
color = rgba(130F0F77)
blur_passes = 3
blur_size = 5
}
input-field {
monitor =
size = 250, 50
outline_thickness = 2
dots_size = 0.1
dots_spacing = 0.3
outer_color = rgb(a08c8955)
inner_color = rgb(130F0F11)
font_color = rgb(d8c2bfFF)
# fade_on_empty = true
hide_input = false
position = 0, 20
halign = center
valign = center
}
label { # Clock
monitor =
text = $TIME
color = $text_color
font_size = 65
font_family = CaskaydiaCove Nerd Font
position = 0, 300
halign = center
valign = center
}
label { # Greeting
monitor =
text = Hi $USER !!!
color = $text_color
font_size = 20
font_family = CaskaydiaCove Nerd Font Italic
position = 0, 240
halign = center
valign = center
}
label { # lock icon
monitor =
text = lock
color = rgba(ede0deFF)
font_size = 21
font_family = CaskaydiaCove Nerd Font Italic
position = 0, 65
halign = center
valign = bottom
}
label { # "locked" text
monitor =
text = locked
color = rgba(ede0deFF)
font_size = 14
font_family = CaskaydiaCove Nerd Font Italic
position = 0, 50
halign = center
valign = bottom
}
label { # Status
monitor =
text = cmd[update:5000] status.sh
color = rgba(ede0deFF)
font_size = 14
font_family = CaskaydiaCove Nerd Font Italic
position = 30, -30
halign = left
valign = top
}
-59
View File
@@ -1,59 +0,0 @@
daemonize
show-failed-attempts
clock
# AM/PM formats (American Format)
datestr=%a, %B %e
timestr=%I:%M %p
#24 HRS clock format and standard Europe Date Format
#timestr=%H:%M:%S
#datestr=%d %B, %a
# Add current display as background
#screenshots
# Add an image as a background. You need to disable screenshots above
image=$HOME/.config/rofi/.current_wallpaper
# Effect for background
# NOTE: if you choose image as wallpaper, you may want to comment (#) these effects
# effect-blur=10x5
# effect-vignette=0.5:0.5
effect-greyscale
#effect-pixelate=5
color=1f1d2e80
font="Fira Code Medium"
indicator
indicator-radius=100
indicator-thickness=7
text-color=e0def4
text-caps-lock-color=ffffff
inside-color=000000
line-color=1f1d2e
ring-color=191724
separator-color=00000000
text-ver-color=ffffff
inside-ver-color=000000
line-ver-color=0000ff
ring-ver-color=2777ff
text-wrong-color=ff0000
inside-wrong-color=000000
line-wrong-color=000000
ring-wrong-color=ff8000
text-clear-color=000000
inside-clear-color=ffffff
line-clear-color=00ff00
ring-clear-color=0ffff0
key-hl-color=ff0000
bs-hl-color=ffffff
grace=1
grace-no-mouse
grace-no-touch
fade-in=0.25
ignore-empty-password
+2 -2
View File
@@ -1,6 +1,6 @@
{
"label" : "lock",
"action" : "swaylock",
"action" : "hyprlock",
"text" : "Lock",
"keybind" : "l"
}
@@ -28,7 +28,7 @@
{
"label" : "suspend",
"action" : "swaylock -f && systemctl suspend",
"action" : "hyprlock -f && systemctl suspend",
"text" : "Suspend",
"keybind" : "u"
}
+22
View File
@@ -0,0 +1,22 @@
#!/usr/bin/env bash
############ Variables ############
enable_battery=false
####### Check availability ########
for battery in /sys/class/power_supply/*BAT*; do
if [[ -f "$battery/uevent" ]]; then
enable_battery=true
break
fi
done
############# Output #############
if [[ $enable_battery == true ]]; then
if [[ $(cat /sys/class/power_supply/*/status | head -1) == "Charging" ]]; then
echo -n "(+) "
fi
echo -n "$(cat /sys/class/power_supply/*/capacity | head -1)"% remaining
fi
echo ''