Browse Source

Fix comment

pull/173/head
RyuuyaS 2 years ago
parent
commit
d77aec4b16
  1. 2
      config/hypr/UserScripts/Sounds.sh
  2. 12
      config/hypr/UserScripts/WallpaperAutoChange.sh
  3. 6
      config/hypr/UserScripts/WallpaperRandom.sh
  4. 2
      config/hypr/UserScripts/WallpaperSelect.sh
  5. 2
      config/hypr/scripts/AirplaneMode.sh
  6. 2
      config/hypr/scripts/Brightness.sh
  7. 2
      config/hypr/scripts/BrightnessKbd.sh
  8. 4
      config/hypr/scripts/ChangeBlur.sh
  9. 2
      config/hypr/scripts/ChangeLayout.sh
  10. 3
      config/hypr/scripts/ClipManager.sh
  11. 7
      config/hypr/scripts/DarkLight.sh
  12. 3
      config/hypr/scripts/GameMode.sh
  13. 7
      config/hypr/scripts/KeyHints.sh
  14. 6
      config/hypr/scripts/LockScreen.sh
  15. 2
      config/hypr/scripts/MediaCtrl.sh
  16. 2
      config/hypr/scripts/Polkit-NixOS.sh
  17. 2
      config/hypr/scripts/Polkit.sh
  18. 3
      config/hypr/scripts/PortalHyprland.sh
  19. 2
      config/hypr/scripts/PywalSwww.sh
  20. 2
      config/hypr/scripts/Refresh.sh
  21. 2
      config/hypr/scripts/RefreshNoWaybar.sh
  22. 4
      config/hypr/scripts/RofiEmoji.sh
  23. 5
      config/hypr/scripts/ScreenShot.sh
  24. 2
      config/hypr/scripts/SwitchKeyboardLayout.sh
  25. 2
      config/hypr/scripts/TouchPad.sh
  26. 2
      config/hypr/scripts/Volume.sh
  27. 2
      config/hypr/scripts/WaybarCava.sh
  28. 2
      config/hypr/scripts/WaybarLayout.sh
  29. 2
      config/hypr/scripts/WaybarStyles.sh
  30. 2
      config/hypr/scripts/Wlogout.sh

2
config/hypr/UserScripts/Sounds.sh

@ -1,5 +1,5 @@
#!/bin/bash #!/bin/bash
## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## # /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ #
# This script is used to play system sounds. # This script is used to play system sounds.
theme="freedesktop" # Set the theme for the system sounds. theme="freedesktop" # Set the theme for the system sounds.

12
config/hypr/UserScripts/WallpaperAutoChange.sh

@ -1,5 +1,5 @@
#!/bin/bash #!/bin/bash
## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## # /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ #
# source https://wiki.archlinux.org/title/Hyprland#Using_a_script_to_change_wallpaper_every_X_minutes # source https://wiki.archlinux.org/title/Hyprland#Using_a_script_to_change_wallpaper_every_X_minutes
# This script will randomly go through the files of a directory, setting it # This script will randomly go through the files of a directory, setting it
@ -23,12 +23,12 @@ export SWWW_TRANSITION_TYPE=simple
INTERVAL=1800 INTERVAL=1800
while true; do while true; do
find "$1" \ find "$1" |
| while read -r img; do while read -r img; do
echo "$((RANDOM % 1000)):$img" echo "$((RANDOM % 1000)):$img"
done \ done |
| sort -n | cut -d':' -f2- \ sort -n | cut -d':' -f2- |
| while read -r img; do while read -r img; do
swww img "$img" swww img "$img"
$pywal_refresh $pywal_refresh
sleep $INTERVAL sleep $INTERVAL

6
config/hypr/UserScripts/WallpaperRandom.sh

@ -1,5 +1,5 @@
#!/bin/bash #!/bin/bash
## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## # /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ #
# Script for Random Wallpaper ( CTRL ALT W) # Script for Random Wallpaper ( CTRL ALT W)
wallDIR="$HOME/Pictures/wallpapers" wallDIR="$HOME/Pictures/wallpapers"
@ -8,7 +8,6 @@ scriptsDir="$HOME/.config/hypr/scripts"
PICS=($(find ${wallDIR} -type f \( -name "*.jpg" -o -name "*.jpeg" -o -name "*.png" -o -name "*.gif" \))) PICS=($(find ${wallDIR} -type f \( -name "*.jpg" -o -name "*.jpeg" -o -name "*.png" -o -name "*.gif" \)))
RANDOMPICS=${PICS[$RANDOM % ${#PICS[@]}]} RANDOMPICS=${PICS[$RANDOM % ${#PICS[@]}]}
# Transition config # Transition config
FPS=60 FPS=60
TYPE="random" TYPE="random"
@ -16,11 +15,8 @@ DURATION=1
BEZIER=".43,1.19,1,.4" BEZIER=".43,1.19,1,.4"
SWWW_PARAMS="--transition-fps $FPS --transition-type $TYPE --transition-duration $DURATION --transition-bezier $BEZIER" SWWW_PARAMS="--transition-fps $FPS --transition-type $TYPE --transition-duration $DURATION --transition-bezier $BEZIER"
swww query || swww init && swww img ${RANDOMPICS} $SWWW_PARAMS swww query || swww init && swww img ${RANDOMPICS} $SWWW_PARAMS
${scriptsDir}/PywalSwww.sh ${scriptsDir}/PywalSwww.sh
sleep 1 sleep 1
${scriptsDir}/Refresh.sh ${scriptsDir}/Refresh.sh

2
config/hypr/UserScripts/WallpaperSelect.sh

@ -1,5 +1,5 @@
#!/bin/bash #!/bin/bash
## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## # /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ #
# This script for selecting wallpapers (SUPER W) # This script for selecting wallpapers (SUPER W)
SCRIPTSDIR="$HOME/.config/hypr/scripts" SCRIPTSDIR="$HOME/.config/hypr/scripts"

2
config/hypr/scripts/AirplaneMode.sh

@ -1,5 +1,5 @@
#!/bin/bash #!/bin/bash
## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## # /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ #
# Airplane Mode. Turning on or off all wifi using rfkill. # Airplane Mode. Turning on or off all wifi using rfkill.
notif="$HOME/.config/swaync/images/bell.png" notif="$HOME/.config/swaync/images/bell.png"

2
config/hypr/scripts/Brightness.sh

@ -1,5 +1,5 @@
#!/bin/bash #!/bin/bash
## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## # /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ #
# Script for Monitor backlights (if supported) using brightnessctl # Script for Monitor backlights (if supported) using brightnessctl
iDIR="$HOME/.config/swaync/icons" iDIR="$HOME/.config/swaync/icons"

2
config/hypr/scripts/BrightnessKbd.sh

@ -1,5 +1,5 @@
#!/bin/bash #!/bin/bash
## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## # /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ #
# Script for keyboard backlights (if supported) using brightnessctl # Script for keyboard backlights (if supported) using brightnessctl
iDIR="$HOME/.config/swaync/icons" iDIR="$HOME/.config/swaync/icons"

4
config/hypr/scripts/ChangeBlur.sh

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## # /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ #
## Script for changing blurs on the fly # Script for changing blurs on the fly
notif="$HOME/.config/swaync/images/bell.png" notif="$HOME/.config/swaync/images/bell.png"

2
config/hypr/scripts/ChangeLayout.sh

@ -1,5 +1,5 @@
#!/bin/bash #!/bin/bash
## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## # /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ #
# for changing Hyprland Layouts (Master or Dwindle) on the fly # for changing Hyprland Layouts (Master or Dwindle) on the fly
notif="$HOME/.config/swaync/images/bell.png" notif="$HOME/.config/swaync/images/bell.png"

3
config/hypr/scripts/ClipManager.sh

@ -1,5 +1,5 @@
#!/bin/bash #!/bin/bash
## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## # /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ #
# Clipboard Manager. This script uses cliphist, rofi, and wl-copy. # Clipboard Manager. This script uses cliphist, rofi, and wl-copy.
# Actions: # Actions:
@ -37,4 +37,3 @@ while true; do
;; ;;
esac esac
done done

7
config/hypr/scripts/DarkLight.sh

@ -1,5 +1,5 @@
#!/bin/bash #!/bin/bash
## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## # /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ #
# For Dark and Light switching # For Dark and Light switching
# Note: Scripts are looking for keywords Light or Dark except for wallpapers as the are in a separate folders # Note: Scripts are looking for keywords Light or Dark except for wallpapers as the are in a separate folders
@ -64,7 +64,6 @@ set_waybar_style() {
set_waybar_style "$next_mode" set_waybar_style "$next_mode"
notify_user "$next_mode" notify_user "$next_mode"
# swaync color change # swaync color change
if [ "$next_mode" = "Dark" ]; then if [ "$next_mode" = "Dark" ]; then
sed -i '/@define-color noti-bg/s/rgba([0-9]*,\s*[0-9]*,\s*[0-9]*,\s*[0-9.]*);/rgba(0, 0, 0, 0.8);/' "${swaync_style}" sed -i '/@define-color noti-bg/s/rgba([0-9]*,\s*[0-9]*,\s*[0-9]*,\s*[0-9.]*);/rgba(0, 0, 0, 0.8);/' "${swaync_style}"
@ -84,7 +83,6 @@ fi
# Update wallpaper using swww command # Update wallpaper using swww command
$swww "${next_wallpaper}" $effect $swww "${next_wallpaper}" $effect
# Set Kvantum Manager theme & QT5/QT6 settings # Set Kvantum Manager theme & QT5/QT6 settings
if [ "$next_mode" = "Dark" ]; then if [ "$next_mode" = "Dark" ]; then
kvantum_theme="Tokyo-Night" kvantum_theme="Tokyo-Night"
@ -166,7 +164,7 @@ set_custom_gtk_theme() {
echo "Selected icon theme for $mode mode: $selected_icon" echo "Selected icon theme for $mode mode: $selected_icon"
gsettings set $icon_setting "$selected_icon" gsettings set $icon_setting "$selected_icon"
## QT5ct icon_theme # QT5ct icon_theme
sed -i "s|^icon_theme=.*$|icon_theme=$selected_icon|" "$HOME/.config/qt5ct/qt5ct.conf" sed -i "s|^icon_theme=.*$|icon_theme=$selected_icon|" "$HOME/.config/qt5ct/qt5ct.conf"
sed -i "s|^icon_theme=.*$|icon_theme=$selected_icon|" "$HOME/.config/qt6ct/qt6ct.conf" sed -i "s|^icon_theme=.*$|icon_theme=$selected_icon|" "$HOME/.config/qt6ct/qt6ct.conf"
@ -197,4 +195,3 @@ ${SCRIPTSDIR}/Refresh.sh
notify-send -u normal -i "$notif" "Themes in $next_mode Mode" notify-send -u normal -i "$notif" "Themes in $next_mode Mode"
exit 0 exit 0

3
config/hypr/scripts/GameMode.sh

@ -1,11 +1,10 @@
#!/bin/bash #!/bin/bash
## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## # /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ #
# Game Mode. Turning off all animations # Game Mode. Turning off all animations
notif="$HOME/.config/swaync/images/bell.png" notif="$HOME/.config/swaync/images/bell.png"
SCRIPTSDIR="$HOME/.config/hypr/scripts" SCRIPTSDIR="$HOME/.config/hypr/scripts"
HYPRGAMEMODE=$(hyprctl getoption animations:enabled | awk 'NR==1{print $2}') HYPRGAMEMODE=$(hyprctl getoption animations:enabled | awk 'NR==1{print $2}')
if [ "$HYPRGAMEMODE" = 1 ]; then if [ "$HYPRGAMEMODE" = 1 ]; then
hyprctl --batch "\ hyprctl --batch "\

7
config/hypr/scripts/KeyHints.sh

@ -1,5 +1,5 @@
#!/bin/bash #!/bin/bash
## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## # /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ #
# Keyhints. Idea got from Garuda Hyprland # Keyhints. Idea got from Garuda Hyprland
# Detect monitor resolution and scale # Detect monitor resolution and scale
@ -67,7 +67,4 @@ yad --width=$dynamic_width --height=$dynamic_height \
" H" "Launch this app" "" \ " H" "Launch this app" "" \
" E" "View or EDIT Keybinds, Settings, Monitor" "" \ " E" "View or EDIT Keybinds, Settings, Monitor" "" \
"" "" "" \ "" "" "" \
"More tips:" "https://github.com/JaKooLit/Hyprland-Dots/wiki" ""\ "More tips:" "https://github.com/JaKooLit/Hyprland-Dots/wiki" ""

6
config/hypr/scripts/LockScreen.sh

@ -1,7 +1,9 @@
#!/bin/bash #!/bin/bash
## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## # /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ #
# For Swaylock # For Swaylock
CONFIG="$HOME/.config/swaylock/config" CONFIG="$HOME/.config/swaylock/config"
sleep 0.5s; swaylock --config ${CONFIG} & disown sleep 0.5s
swaylock --config ${CONFIG} &
disown

2
config/hypr/scripts/MediaCtrl.sh

@ -1,5 +1,5 @@
#!/bin/bash #!/bin/bash
## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## # /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ #
# Playerctl # Playerctl
music_icon="$HOME/.config/swaync/icons/music.png" music_icon="$HOME/.config/swaync/icons/music.png"

2
config/hypr/scripts/Polkit-NixOS.sh

@ -1,5 +1,5 @@
#!/bin/bash #!/bin/bash
## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## # /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ #
# For NixOS starting of polkit-gnome. Dec 2023, the settings stated in NixOS wiki does not work so have to manual start it # For NixOS starting of polkit-gnome. Dec 2023, the settings stated in NixOS wiki does not work so have to manual start it
# Find all polkit-gnome executables in the Nix store # Find all polkit-gnome executables in the Nix store

2
config/hypr/scripts/Polkit.sh

@ -1,5 +1,5 @@
#!/bin/bash #!/bin/bash
## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## # /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ #
# This is for polkits, it will start from top and will stop if the top is executed # This is for polkits, it will start from top and will stop if the top is executed
# Polkit possible paths files to check # Polkit possible paths files to check

3
config/hypr/scripts/PortalHyprland.sh

@ -1,5 +1,5 @@
#!/bin/bash #!/bin/bash
## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## # /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ #
# For manually starting xdg-desktop-portal # For manually starting xdg-desktop-portal
sleep 1 sleep 1
@ -13,4 +13,3 @@ sleep 1
sleep 2 sleep 2
/usr/lib/xdg-desktop-portal-hyprland & /usr/lib/xdg-desktop-portal-hyprland &
/usr/libexec/xdg-desktop-portal & /usr/libexec/xdg-desktop-portal &

2
config/hypr/scripts/PywalSwww.sh

@ -1,5 +1,5 @@
#!/bin/bash #!/bin/bash
## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## # /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ #
# Pywal Colors for current wallpaper # Pywal Colors for current wallpaper
# Define the path to the swww cache directory # Define the path to the swww cache directory

2
config/hypr/scripts/Refresh.sh

@ -1,5 +1,5 @@
#!/bin/bash #!/bin/bash
## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## # /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ #
# Scripts for refreshing waybar, rofi, swaync, pywal colors # Scripts for refreshing waybar, rofi, swaync, pywal colors
SCRIPTSDIR=$HOME/.config/hypr/scripts SCRIPTSDIR=$HOME/.config/hypr/scripts

2
config/hypr/scripts/RefreshNoWaybar.sh

@ -1,5 +1,5 @@
#!/bin/bash #!/bin/bash
## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## # /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ #
# Modified version of Refresh but no waybar refresh # Modified version of Refresh but no waybar refresh
# Used by automatic wallpaper change # Used by automatic wallpaper change

4
config/hypr/scripts/RofiEmoji.sh

@ -1,5 +1,5 @@
#!/bin/bash #!/bin/bash
## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## # /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ #
# Rofi Emoticons. Not my own. Cant remember the source # Rofi Emoticons. Not my own. Cant remember the source
sed '1,/^### DATA ###$/d' $0 | sed '1,/^### DATA ###$/d' $0 |
@ -7,7 +7,7 @@ rofi -dmenu -config ~/.config/rofi/config-long.rasi|
cut -d ' ' -f 1 | tr -d '\n' | wl-copy cut -d ' ' -f 1 | tr -d '\n' | wl-copy
exit exit
### DATA ### # ### DATA ###
😀 grinning face face smile happy joy :D grin 😀 grinning face face smile happy joy :D grin
😃 grinning face with big eyes face happy joy haha :D :) smile funny 😃 grinning face with big eyes face happy joy haha :D :) smile funny
😄 grinning face with smiling eyes face happy joy funny haha laugh like :D :) smile 😄 grinning face with smiling eyes face happy joy funny haha laugh like :D :) smile

5
config/hypr/scripts/ScreenShot.sh

@ -1,5 +1,5 @@
#!/bin/bash #!/bin/bash
## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## # /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ #
# Screenshots scripts # Screenshots scripts
iDIR="$HOME/.config/swaync/icons" iDIR="$HOME/.config/swaync/icons"
@ -36,8 +36,6 @@ notify_view() {
fi fi
} }
# countdown # countdown
countdown() { countdown() {
for sec in $(seq $1 -1 1); do for sec in $(seq $1 -1 1); do
@ -102,7 +100,6 @@ shotswappy() {
rm "$tmpfile" rm "$tmpfile"
} }
if [[ ! -d "$dir" ]]; then if [[ ! -d "$dir" ]]; then
mkdir -p "$dir" mkdir -p "$dir"
fi fi

2
config/hypr/scripts/SwitchKeyboardLayout.sh

@ -1,5 +1,5 @@
#!/bin/bash #!/bin/bash
## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## # /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ #
# This is for changing kb_layouts. Set kb_layouts in $settings_file # This is for changing kb_layouts. Set kb_layouts in $settings_file
layout_f="$HOME/.cache/kb_layout" layout_f="$HOME/.cache/kb_layout"

2
config/hypr/scripts/TouchPad.sh

@ -1,5 +1,5 @@
#!/bin/bash #!/bin/bash
## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## # /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ #
# For disabling touchpad. # For disabling touchpad.
Touchpad_Device="asue1209:00-04f3:319f-touchpad" Touchpad_Device="asue1209:00-04f3:319f-touchpad"

2
config/hypr/scripts/Volume.sh

@ -1,5 +1,5 @@
#!/bin/bash #!/bin/bash
## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## # /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ #
# Scripts for volume controls for audio and mic # Scripts for volume controls for audio and mic
iDIR="$HOME/.config/swaync/icons" iDIR="$HOME/.config/swaync/icons"

2
config/hypr/scripts/WaybarCava.sh

@ -1,5 +1,5 @@
#!/bin/bash #!/bin/bash
## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## # /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ #
# Not my own work. This was added through Github PR. Credit to original author # Not my own work. This was added through Github PR. Credit to original author

2
config/hypr/scripts/WaybarLayout.sh

@ -1,5 +1,5 @@
#!/bin/bash #!/bin/bash
## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## # /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ #
# Script for waybar layout or configs # Script for waybar layout or configs
set -euo pipefail set -euo pipefail

2
config/hypr/scripts/WaybarStyles.sh

@ -1,5 +1,5 @@
#!/bin/bash #!/bin/bash
## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## # /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ #
# Script for waybar styles # Script for waybar styles
set -euo pipefail set -euo pipefail

2
config/hypr/scripts/Wlogout.sh

@ -1,5 +1,5 @@
#!/bin/bash #!/bin/bash
## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## # /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ #
# wlogout (Power, Screen Lock, Suspend, etc) # wlogout (Power, Screen Lock, Suspend, etc)

Loading…
Cancel
Save