Browse Source

minor tweaks before final

pull/81/head
JaKooLit 2 years ago
parent
commit
70d3ed2420
  1. 2
      config/hypr/configs/Settings.conf
  2. 20
      config/hypr/configs/WindowRules.conf
  3. 2
      config/hypr/scripts/AirplaneMode.sh
  4. 2
      config/hypr/scripts/ChangeBlur.sh
  5. 4
      config/hypr/scripts/SwitchKeyboardLayout.sh
  6. 22
      copy.sh

2
config/hypr/configs/Settings.conf

@ -59,7 +59,7 @@ decoration {
blur { blur {
enabled = true enabled = true
size = 6 size = 5
passes = 2 passes = 2
ignore_opacity = true ignore_opacity = true
new_optimizations = true new_optimizations = true

20
config/hypr/configs/WindowRules.conf

@ -1,7 +1,6 @@
## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## ## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
# See https://wiki.hyprland.org/Configuring/Window-Rules/ for more # See https://wiki.hyprland.org/Configuring/Window-Rules/ for more
windowrule = float, org.kde.polkit-kde-authentication-agent-1 windowrule = float, org.kde.polkit-kde-authentication-agent-1
windowrule = float, nm-connection-editor|blueman-manager windowrule = float, nm-connection-editor|blueman-manager
windowrule = float, pavucontrol windowrule = float, pavucontrol
@ -17,12 +16,9 @@ windowrule = float, yad
#windowrule = fullscreen,gamescope #windowrule = fullscreen,gamescope
#windowrule = workspace 6 silent,^(gamescope)$ #windowrule = workspace 6 silent,^(gamescope)$
# windowrule = move 1380 495,^(pavucontrol) # Make sure to change these valuers windowrule = center,^(pavucontrol)
windowrule = center,^(pavucontrol) # Make sure to delete this line if uncommen the line above
#windowrule = size 533 533,^(pavucontrol) # These are optionals. But recommended
# windowrule v2 # windowrule v2
windowrulev2 = workspace 1, class:^(thunderbird)$ windowrulev2 = workspace 1, class:^(thunderbird)$
windowrulev2 = workspace 2, class:^(firefox)$ windowrulev2 = workspace 2, class:^(firefox)$
windowrulev2 = workspace 2, class:^(Firefox-esr)$ windowrulev2 = workspace 2, class:^(Firefox-esr)$
@ -38,15 +34,15 @@ windowrulev2 = workspace 9 silent, class:^(audacious)$
#opacity (transparent) #enable as desired #opacity (transparent) #enable as desired
windowrulev2 = opacity 0.9 0.6, class:^([Rr]ofi)$ windowrulev2 = opacity 0.9 0.6, class:^([Rr]ofi)$
windowrulev2 = opacity 0.9 0.7, class:^(firefox)$ windowrulev2 = opacity 0.9 0.6, class:^(firefox)$
windowrulev2 = opacity 0.9 0.8, class:^([Tt]hunar)$ windowrulev2 = opacity 0.9 0.7, class:^([Tt]hunar)$
windowrulev2 = opacity 0.8 0.6, class:^(pcmanfm-qt)$ windowrulev2 = opacity 0.8 0.6, class:^(pcmanfm-qt)$
windowrulev2 = opacity 0.9 0.7, class:^(gedit)$ windowrulev2 = opacity 0.9 0.7, class:^(gedit)$
windowrulev2 = opacity 0.9 0.8, class:^(kitty)$ windowrulev2 = opacity 0.9 0.7, class:^(kitty)$
#windowrulev2 = opacity 0.9 0.7, class:^(mousepad)$ windowrulev2 = opacity 0.9 0.6, class:^(mousepad)$
windowrulev2 = opacity 0.9 0.7, class:^(codium-url-handler)$ windowrulev2 = opacity 0.9 0.6, class:^(codium-url-handler)$
windowrulev2 = opacity 0.9 0.7, class:^(VSCodium)$ windowrulev2 = opacity 0.9 0.6, class:^(VSCodium)$
windowrulev2 = opacity 0.9 0.7, class:^(yad)$ windowrulev2 = opacity 0.9 0.6, class:^(yad)$
#layerrule = unset,class:^([Rr]ofi)$ #layerrule = unset,class:^([Rr]ofi)$
#layerrule = blur,class:^([Rr]ofi)$ #layerrule = blur,class:^([Rr]ofi)$

2
config/hypr/scripts/AirplaneMode.sh

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
dunstify -u low -i "$dunst_notif" dunst_notif="$HOME/.config/dunst/images/bell.png"
wifi="$(nmcli r wifi | awk 'FNR = 2 {print $1}')" wifi="$(nmcli r wifi | awk 'FNR = 2 {print $1}')"
if [ "$wifi" == "enabled" ]; then if [ "$wifi" == "enabled" ]; then

2
config/hypr/scripts/ChangeBlur.sh

@ -9,7 +9,7 @@ if [ "${STATE}" == "2" ]; then
hyprctl keyword decoration:blur:passes 1 hyprctl keyword decoration:blur:passes 1
dunstify -u low -i "$dunst_notif" "Less blur" dunstify -u low -i "$dunst_notif" "Less blur"
else else
hyprctl keyword decoration:blur:size 6 hyprctl keyword decoration:blur:size 5
hyprctl keyword decoration:blur:passes 2 hyprctl keyword decoration:blur:passes 2
dunstify -u low -i "$dunst_notif" "Normal blur" dunstify -u low -i "$dunst_notif" "Normal blur"
fi fi

4
config/hypr/scripts/SwitchKeyboardLayout.sh

@ -2,6 +2,7 @@
layout_f="$HOME/.cache/kb_layout" layout_f="$HOME/.cache/kb_layout"
settings_file="$HOME/.config/hypr/configs/Settings.conf" settings_file="$HOME/.config/hypr/configs/Settings.conf"
dunst_notif="$HOME/.config/dunst/images/bell.png"
# Check if ~/.cache/kb_layout exists and create it with a default layout from Settings.conf if not found # Check if ~/.cache/kb_layout exists and create it with a default layout from Settings.conf if not found
if [ ! -f "$layout_f" ]; then if [ ! -f "$layout_f" ]; then
@ -37,3 +38,6 @@ new_layout="${layout_mapping[next_index]}"
# Update the keyboard layout # Update the keyboard layout
hyprctl keyword input:kb_layout "$new_layout" hyprctl keyword input:kb_layout "$new_layout"
echo "$new_layout" > "$layout_f" echo "$new_layout" > "$layout_f"
# Notification for the new keyboard layout
dunstify -u low -i "$dunst_notif" "Keyboard layout set to $new_layout"

22
copy.sh

@ -99,8 +99,13 @@ if [ "$confirm" = "y" ]; then
mv temp.conf config/hypr/configs/Settings.conf mv temp.conf config/hypr/configs/Settings.conf
else else
# If the detected layout is not correct, prompt the user to enter the correct layout # If the detected layout is not correct, prompt the user to enter the correct layout
printf "${YELLOW} Ensure to type in the proper keyboard layout else Hyprland will crash and might not start!!!\n\n" printf "\n%.0s" {1..2}
printf "${WARN} - Sample Keyboard layouts are us, kr, es, gb, de, pl, etc.\n\n" echo "$(tput bold)$(tput setaf 3)ATTENTION!!!! VERY IMPORTANT!!!! $(tput sgr0)"
echo "$(tput bold)$(tput setaf 7)Setting a wrong value here will result in Hyprland not starting $(tput sgr0)"
echo "$(tput bold)$(tput setaf 7)If you are not sure, keep it in us layout. You can change later on! $(tput sgr0)"
echo "$(tput bold)$(tput setaf 7)You can also set more than 2 layouts!$(tput sgr0)"
echo "$(tput bold)$(tput setaf 7)ie: us,kr,es $(tput sgr0)"
printf "\n%.0s" {1..2}
read -p "${CAT} - Please enter the correct keyboard layout: " new_layout read -p "${CAT} - Please enter the correct keyboard layout: " new_layout
# Update the 'kb_layout=' line with the correct layout in the file # Update the 'kb_layout=' line with the correct layout in the file
awk -v new_layout="$new_layout" '/kb_layout/ {$0 = " kb_layout=" new_layout} 1' config/hypr/configs/Settings.conf > temp.conf awk -v new_layout="$new_layout" '/kb_layout/ {$0 = " kb_layout=" new_layout} 1' config/hypr/configs/Settings.conf > temp.conf
@ -192,19 +197,22 @@ while true; do
case $WALL in case $WALL in
[Yy]) [Yy])
echo "${NOTE} Downloading additional wallpapers..." echo "${NOTE} Downloading additional wallpapers..."
if git clone https://github.com/JaKooLit/Wallpaper-Bank.git 2>&1 | tee -a "$LOG"; then if git clone --progress "https://github.com/JaKooLit/Wallpaper-Bank.git" 2>&1 | tee -a "$LOG"; then
if cp -R Wallpaper-Bank/wallpapers/* ~/Pictures/wallpapers/; then 2>&1 | tee -a "$LOG" echo "${NOTE} Wallpapers downloaded successfully."
if cp -R Wallpaper-Bank/wallpapers/* ~/Pictures/wallpapers/ 2>&1 | tee -a "$LOG"; then
echo "${NOTE} Wallpapers copied successfully."
rm -rf Wallpaper-Bank 2>&1 | tee -a "$LOG" # Remove cloned repository after copying wallpapers rm -rf Wallpaper-Bank 2>&1 | tee -a "$LOG" # Remove cloned repository after copying wallpapers
break break
else else
echo "${ERROR} Copying wallpapers failed" 2>&1 | tee -a "$LOG" echo "${ERROR} Copying wallpapers failed" >&2 | tee -a "$LOG"
fi fi
else else
echo "${ERROR} Downloading additional wallpapers failed" 2>&1 | tee -a "$LOG" echo "${ERROR} Downloading additional wallpapers failed" >&2 | tee -a "$LOG"
fi fi
;; ;;
[Nn]) [Nn])
echo "You chose not to download additional wallpapers." 2>&1 | tee -a "$LOG" echo "You chose not to download additional wallpapers." >&2 | tee -a "$LOG"
break break
;; ;;
*) *)

Loading…
Cancel
Save