big updates

This commit is contained in:
sankalp committed 2024-07-30 10:19:03 +05:45
1 parent 0c82692536
commit c7c8ea67c7
42 files changed
+1083 -665

No files matched your search

+3 -67
View File
@@ -3,30 +3,6 @@
notif="$HOME/dotfiles/hypr/assets/bell.png"
# For Keyboard Layout Switcher
######################################
# #
# Toggle Blur #
# #
######################################
toggle_blur (){
STATE=$(hyprctl -j getoption decoration:blur:passes | jq ".int")
if [ "${STATE}" == "2" ]; then
hyprctl keyword decoration:blur:size 2
hyprctl keyword decoration:blur:passes 1
notify-send -e -u low -i "$notif" "Less blur"
else
hyprctl keyword decoration:blur:size 5
hyprctl keyword decoration:blur:passes 2
notify-send -e -u low -i "$notif" "Normal blur"
fi
}
######################################
# #
# Toggle Animation #
@@ -77,32 +53,6 @@ change_layout() {
}
######################################
# #
# Auto Wallpaper Changer #
# #
######################################
auto_wall() {
wallDIR="$HOME/Pictures/wallpapers"
FPS=60
TYPE="random"
DURATION=1
BEZIER=".43,1.19,1,.4"
SWWW_PARAMS="--transition-fps ${FPS} --transition-type ${TYPE} --transition-duration ${DURATION} --transition-bezier ${BEZIER}"
focused_monitor=$(hyprctl monitors | awk '/^Monitor/{name=$2} /focused: yes/{print name}')
INTERVAL=1800 # This controls (in seconds) when to switch to the next image
while true; do
find "$wallDIR" -type f \( -name "*.jpg" -o -name "*.jpeg" -o -name "*.png" -o -name "*.gif" \) -print0 \
| shuf -z -n 1 \
| xargs -0 -I {} swww img -o $focused_monitor "{}" ${SWWW_PARAMS} &&
$RunCMD symlink
sleep $INTERVAL
done
}
######################################
# #
# GameMode #
@@ -122,23 +72,9 @@ gamemode() {
}
######################################
# #
# Toggle Opaque #
# #
######################################
enable_opaque() {
sleep 0.2
hyprctl setprop address:$(hyprctl -j activewindow | jq -r -c ".address") forceopaque 0 lock
}
disable_opaque() {
sleep 0.2
hyprctl setprop address:$(hyprctl -j activewindow | jq -r -c ".address") forceopaque 1 lock
}
######################################
# Keyboard Layout Switcher #
# #
# #
# Keyboard Layout Switcher #
# #
######################################
kb_changer() {