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. 8
      config/hypr/UserScripts/WallpaperRandom.sh
  4. 6
      config/hypr/UserScripts/WallpaperSelect.sh
  5. 2
      config/hypr/scripts/AirplaneMode.sh
  6. 10
      config/hypr/scripts/Brightness.sh
  7. 10
      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. 13
      config/hypr/scripts/DarkLight.sh
  12. 5
      config/hypr/scripts/GameMode.sh
  13. 67
      config/hypr/scripts/KeyHints.sh
  14. 6
      config/hypr/scripts/LockScreen.sh
  15. 12
      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. 4
      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. 10
      config/hypr/scripts/SwitchKeyboardLayout.sh
  25. 6
      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. 4
      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

8
config/hypr/UserScripts/WallpaperRandom.sh

@ -1,13 +1,12 @@
#!/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"
scriptsDir="$HOME/.config/hypr/scripts" 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
@ -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

6
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"
@ -15,7 +15,7 @@ BEZIER=".43,1.19,1,.4"
SWWW_PARAMS="--transition-fps $FPS --transition-type $TYPE --transition-duration $DURATION" SWWW_PARAMS="--transition-fps $FPS --transition-type $TYPE --transition-duration $DURATION"
# Check if swaybg is running # Check if swaybg is running
if pidof swaybg > /dev/null; then if pidof swaybg >/dev/null; then
pkill swaybg pkill swaybg
fi fi
@ -75,7 +75,7 @@ main() {
} }
# Check if rofi is already running # Check if rofi is already running
if pidof rofi > /dev/null; then if pidof rofi >/dev/null; then
pkill rofi pkill rofi
exit 0 exit 0
fi fi

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"

10
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"
@ -38,16 +38,16 @@ change_backlight() {
# Execute accordingly # Execute accordingly
case "$1" in case "$1" in
"--get") "--get")
get_backlight get_backlight
;; ;;
"--inc") "--inc")
change_backlight "+10%" change_backlight "+10%"
;; ;;
"--dec") "--dec")
change_backlight "10%-" change_backlight "10%-"
;; ;;
*) *)
get_backlight get_backlight
;; ;;
esac esac

10
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"
@ -36,16 +36,16 @@ change_kbd_backlight() {
# Execute accordingly # Execute accordingly
case "$1" in case "$1" in
"--get") "--get")
get_kbd_backlight get_kbd_backlight
;; ;;
"--inc") "--inc")
change_kbd_backlight "+30%" change_kbd_backlight "+30%"
;; ;;
"--dec") "--dec")
change_kbd_backlight "30%-" change_kbd_backlight "30%-"
;; ;;
*) *)
get_kbd_backlight get_kbd_backlight
;; ;;
esac esac

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

13
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
@ -36,7 +36,7 @@ fi
# Function to update theme mode for the next cycle # Function to update theme mode for the next cycle
update_theme_mode() { update_theme_mode() {
echo "$next_mode" > ~/.cache/.theme_mode echo "$next_mode" >~/.cache/.theme_mode
} }
# Function to notify user # Function to notify user
@ -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"
@ -148,7 +146,7 @@ set_custom_gtk_theme() {
gsettings set $theme_setting "$selected_theme" gsettings set $theme_setting "$selected_theme"
# Flatpak GTK apps (themes) # Flatpak GTK apps (themes)
if command -v flatpak &> /dev/null; then if command -v flatpak &>/dev/null; then
flatpak --user override --filesystem=$HOME/.themes flatpak --user override --filesystem=$HOME/.themes
sleep 0.5 sleep 0.5
flatpak --user override --env=GTK_THEME="$selected_theme" flatpak --user override --env=GTK_THEME="$selected_theme"
@ -166,12 +164,12 @@ 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"
# Flatpak GTK apps (icons) # Flatpak GTK apps (icons)
if command -v flatpak &> /dev/null; then if command -v flatpak &>/dev/null; then
flatpak --user override --filesystem=$HOME/.icons flatpak --user override --filesystem=$HOME/.icons
sleep 0.5 sleep 0.5
flatpak --user override --env=ICON_THEME="$selected_icon" flatpak --user override --env=ICON_THEME="$selected_icon"
@ -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

5
config/hypr/scripts/GameMode.sh

@ -1,13 +1,12 @@
#!/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 "\
keyword animations:enabled 0;\ keyword animations:enabled 0;\
keyword decoration:drop_shadow 0;\ keyword decoration:drop_shadow 0;\

67
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
@ -37,37 +37,34 @@ yad --width=$dynamic_width --height=$dynamic_height \
--column=Description: \ --column=Description: \
--column=Command: \ --column=Command: \
--timeout-indicator=bottom \ --timeout-indicator=bottom \
"ESC" "close this app" "" "=" "SUPER KEY (Windows Key)" "(SUPER KEY)" \ "ESC" "close this app" "" "=" "SUPER KEY (Windows Key)" "(SUPER KEY)" \
" enter" "Terminal" "(kitty)" \ " enter" "Terminal" "(kitty)" \
" or D" "App Launcher" "(rofi)" \ " or D" "App Launcher" "(rofi)" \
" T" "Open File Manager" "(Thunar)" \ " T" "Open File Manager" "(Thunar)" \
" Q" "close active window" "(not kill)" \ " Q" "close active window" "(not kill)" \
" Shift Q " "closes a specified window" "(window)" \ " Shift Q " "closes a specified window" "(window)" \
" Alt V" "Clipboard Manager" "(cliphist)" \ " Alt V" "Clipboard Manager" "(cliphist)" \
" W" "Choose wallpaper" "(Wallpaper Menu)" \ " W" "Choose wallpaper" "(Wallpaper Menu)" \
"CTRL ALT W" "Random wallpaper" "(via swww)" \ "CTRL ALT W" "Random wallpaper" "(via swww)" \
" B" "Hide/UnHide Waybar" "waybar" \ " B" "Hide/UnHide Waybar" "waybar" \
" CTRL B" "Choose waybar styles" "(waybar styles)" \ " CTRL B" "Choose waybar styles" "(waybar styles)" \
" ALT B" "Choose waybar layout" "(waybar layout)" \ " ALT B" "Choose waybar layout" "(waybar layout)" \
" ALT R" "Reload Waybar swaync Rofi" "CHECK NOTIFICATION FIRST!!!" \ " ALT R" "Reload Waybar swaync Rofi" "CHECK NOTIFICATION FIRST!!!" \
" SHIFT N" "Launch Notification Panel" "swaync Notification Center" \ " SHIFT N" "Launch Notification Panel" "swaync Notification Center" \
" Print" "screenshot" "(grim)" \ " Print" "screenshot" "(grim)" \
" Shift Print" "screenshot region" "(grim + slurp)" \ " Shift Print" "screenshot region" "(grim + slurp)" \
" Shift S" "screenshot region" "(swappy)" \ " Shift S" "screenshot region" "(swappy)" \
"ALT Print" "Screenshot active window" "active window only" \ "ALT Print" "Screenshot active window" "active window only" \
"CTRL ALT P" "power-menu" "(wlogout)" \ "CTRL ALT P" "power-menu" "(wlogout)" \
"CTRL ALT L" "screen lock" "(swaylock)" \ "CTRL ALT L" "screen lock" "(swaylock)" \
"CTRL ALT Del" "Hyprland Exit" "(SAVE YOUR WORK!!!)" \ "CTRL ALT Del" "Hyprland Exit" "(SAVE YOUR WORK!!!)" \
" F" "Fullscreen" "Toggles to full screen" \ " F" "Fullscreen" "Toggles to full screen" \
" ALT L" "Toggle Dwindle | Master Layout" "Hyprland Layout" \ " ALT L" "Toggle Dwindle | Master Layout" "Hyprland Layout" \
" Shift F" "Toggle float" "single window" \ " Shift F" "Toggle float" "single window" \
" ALT F" "Toggle all windows to float" "all windows" \ " ALT F" "Toggle all windows to float" "all windows" \
" Shift B" "Toggle Blur" "normal or less blur" \ " Shift B" "Toggle Blur" "normal or less blur" \
" SHIFT G" "Gamemode! All animations OFF or ON" "toggle" \ " SHIFT G" "Gamemode! All animations OFF or ON" "toggle" \
" 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

12
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"
@ -42,19 +42,19 @@ show_music_notification() {
# Get media control action from command line argument # Get media control action from command line argument
case "$1" in case "$1" in
"--nxt") "--nxt")
play_next play_next
;; ;;
"--prv") "--prv")
play_previous play_previous
;; ;;
"--pause") "--pause")
toggle_play_pause toggle_play_pause
;; ;;
"--stop") "--stop")
stop_playback stop_playback
;; ;;
*) *)
echo "Usage: $0 [--nxt|--prv|--pause|--stop]" echo "Usage: $0 [--nxt|--prv|--pause|--stop]"
exit 1 exit 1
;; ;;

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

4
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
@ -28,7 +28,7 @@ waybar &
# relaunch swaync # relaunch swaync
sleep 0.5 sleep 0.5
swaync > /dev/null 2>&1 & swaync >/dev/null 2>&1 &
# Relaunching rainbow borders if the script exists # Relaunching rainbow borders if the script exists
sleep 1 sleep 1

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

10
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"
@ -12,7 +12,7 @@ if [ ! -f "$layout_f" ]; then
if [ -z "$default_layout" ]; then if [ -z "$default_layout" ]; then
default_layout="us" # Default to 'us' layout if Settings.conf or 'kb_layout' is not found default_layout="us" # Default to 'us' layout if Settings.conf or 'kb_layout' is not found
fi fi
echo "$default_layout" > "$layout_f" echo "$default_layout" >"$layout_f"
fi fi
current_layout=$(cat "$layout_f") current_layout=$(cat "$layout_f")
@ -20,7 +20,7 @@ current_layout=$(cat "$layout_f")
# Read keyboard layout settings from Settings.conf # Read keyboard layout settings from Settings.conf
if [ -f "$settings_file" ]; then if [ -f "$settings_file" ]; then
kb_layout_line=$(grep 'kb_layout=' "$settings_file" | cut -d '=' -f 2) kb_layout_line=$(grep 'kb_layout=' "$settings_file" | cut -d '=' -f 2)
IFS=',' read -ra layout_mapping <<< "$kb_layout_line" IFS=',' read -ra layout_mapping <<<"$kb_layout_line"
fi fi
layout_count=${#layout_mapping[@]} layout_count=${#layout_mapping[@]}
@ -34,12 +34,12 @@ for ((i = 0; i < layout_count; i++)); do
done done
# Calculate the index of the next layout # Calculate the index of the next layout
next_index=$(( (current_index + 1) % layout_count )) next_index=$(((current_index + 1) % layout_count))
new_layout="${layout_mapping[next_index]}" 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 # Notification for the new keyboard layout
notify-send -u low -i "$notif" "new KB_Layout: $new_layout" notify-send -u low -i "$notif" "new KB_Layout: $new_layout"

6
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"
@ -10,10 +10,10 @@ STATUS_FILE="$XDG_RUNTIME_DIR/touchpad.status"
toggle_touchpad() { toggle_touchpad() {
if [ ! -f "$STATUS_FILE" ] || [ "$(cat "$STATUS_FILE")" = "false" ]; then if [ ! -f "$STATUS_FILE" ] || [ "$(cat "$STATUS_FILE")" = "false" ]; then
echo "true" > "$STATUS_FILE" echo "true" >"$STATUS_FILE"
action="enabled" action="enabled"
else else
echo "false" > "$STATUS_FILE" echo "false" >"$STATUS_FILE"
action="disabled" action="disabled"
fi fi

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

4
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)
@ -14,7 +14,7 @@ A_720=50
B_720=50 B_720=50
# Check if wlogout is already running # Check if wlogout is already running
if pgrep -x "wlogout" > /dev/null; then if pgrep -x "wlogout" >/dev/null; then
pkill -x "wlogout" pkill -x "wlogout"
exit 0 exit 0
fi fi

Loading…
Cancel
Save