diff options
| author | Ja.KooLit <jimmielovejay@gmail.com> | 2024-04-24 15:20:42 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-24 15:20:42 +0900 |
| commit | 6352d78fd42c021094842f63a3a08b31e9177955 (patch) | |
| tree | 26bfe9901e36c204c2fe8434657c703780106b73 /config/hypr/scripts | |
| parent | 8cd047fcde9dc62f80c2afde4dc9a9c8102f4775 (diff) | |
| parent | e25a8a4f487ccb4f68682f4885262152ef955f39 (diff) | |
Merge branch 'development' into rofi
Diffstat (limited to 'config/hypr/scripts')
27 files changed, 66 insertions, 53 deletions
diff --git a/config/hypr/scripts/AirplaneMode.sh b/config/hypr/scripts/AirplaneMode.sh index 1176c80f..1587a2bc 100755 --- a/config/hypr/scripts/AirplaneMode.sh +++ b/config/hypr/scripts/AirplaneMode.sh @@ -1,5 +1,5 @@ #!/bin/bash -## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## +# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## # Airplane Mode. Turning on or off all wifi using rfkill. notif="$HOME/.config/swaync/images/bell.png" diff --git a/config/hypr/scripts/Brightness.sh b/config/hypr/scripts/Brightness.sh index 04987ab1..7d43f570 100755 --- a/config/hypr/scripts/Brightness.sh +++ b/config/hypr/scripts/Brightness.sh @@ -1,5 +1,5 @@ #!/bin/bash -## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## +# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## # Script for Monitor backlights (if supported) using brightnessctl iDIR="$HOME/.config/swaync/icons" diff --git a/config/hypr/scripts/BrightnessKbd.sh b/config/hypr/scripts/BrightnessKbd.sh index f96c6e08..92083e78 100755 --- a/config/hypr/scripts/BrightnessKbd.sh +++ b/config/hypr/scripts/BrightnessKbd.sh @@ -1,5 +1,5 @@ #!/bin/bash -## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## +# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## # Script for keyboard backlights (if supported) using brightnessctl iDIR="$HOME/.config/swaync/icons" diff --git a/config/hypr/scripts/ChangeBlur.sh b/config/hypr/scripts/ChangeBlur.sh index 8ad0dd40..321b8ec6 100755 --- a/config/hypr/scripts/ChangeBlur.sh +++ b/config/hypr/scripts/ChangeBlur.sh @@ -1,6 +1,6 @@ #!/bin/bash -## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## -## Script for changing blurs on the fly +# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## +# Script for changing blurs on the fly notif="$HOME/.config/swaync/images/bell.png" diff --git a/config/hypr/scripts/ChangeLayout.sh b/config/hypr/scripts/ChangeLayout.sh index 5981024a..75823bab 100755 --- a/config/hypr/scripts/ChangeLayout.sh +++ b/config/hypr/scripts/ChangeLayout.sh @@ -1,5 +1,5 @@ #!/bin/bash -## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## +# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## # for changing Hyprland Layouts (Master or Dwindle) on the fly notif="$HOME/.config/swaync/images/bell.png" diff --git a/config/hypr/scripts/ClipManager.sh b/config/hypr/scripts/ClipManager.sh index 682174fc..f93005bc 100755 --- a/config/hypr/scripts/ClipManager.sh +++ b/config/hypr/scripts/ClipManager.sh @@ -1,5 +1,5 @@ #!/bin/bash -## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## +# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## # Clipboard Manager. This script uses cliphist, rofi, and wl-copy. # Actions: diff --git a/config/hypr/scripts/DarkLight.sh b/config/hypr/scripts/DarkLight.sh index 885c7c6a..50b01644 100755 --- a/config/hypr/scripts/DarkLight.sh +++ b/config/hypr/scripts/DarkLight.sh @@ -87,13 +87,13 @@ $swww "${next_wallpaper}" $effect # Set Kvantum Manager theme & QT5/QT6 settings if [ "$next_mode" = "Dark" ]; then - kvantum_theme="Tokyo-Night" - qt5ct_color_scheme="$HOME/.config/qt5ct/colors/Tokyo-Night.conf" - qt6ct_color_scheme="$HOME/.config/qt6ct/colors/Tokyo-Night.conf" + kvantum_theme="Catppuccin-Mocha" + qt5ct_color_scheme="$HOME/.config/qt5ct/colors/Catppuccin-Mocha.conf" + qt6ct_color_scheme="$HOME/.config/qt6ct/colors/Catppuccin-Mocha.conf" else - kvantum_theme="Tokyo-Day" - qt5ct_color_scheme="$HOME/.config/qt5ct/colors/Tokyo-Day.conf" - qt6ct_color_scheme="$HOME/.config/qt6ct/colors/Tokyo-Day.conf" + kvantum_theme="Catppuccin-Latte" + qt5ct_color_scheme="$HOME/.config/qt5ct/colors/Catppuccin-Latte.conf" + qt6ct_color_scheme="$HOME/.config/qt6ct/colors/Catppuccin-Latte.conf" fi kvantummanager --set "$kvantum_theme" diff --git a/config/hypr/scripts/GameMode.sh b/config/hypr/scripts/GameMode.sh index f05676eb..74051403 100755 --- a/config/hypr/scripts/GameMode.sh +++ b/config/hypr/scripts/GameMode.sh @@ -1,12 +1,12 @@ #!/bin/bash -## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## +# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## # Game Mode. Turning off all animations notif="$HOME/.config/swaync/images/bell.png" SCRIPTSDIR="$HOME/.config/hypr/scripts" -HYPRGAMEMODE=$(hyprctl getoption animations:enabled | awk 'NR==2{print $2}') +HYPRGAMEMODE=$(hyprctl getoption animations:enabled | awk 'NR==1{print $2}') if [ "$HYPRGAMEMODE" = 1 ] ; then hyprctl --batch "\ keyword animations:enabled 0;\ diff --git a/config/hypr/scripts/KeyHints.sh b/config/hypr/scripts/KeyHints.sh index 5b79cf06..796084b8 100755 --- a/config/hypr/scripts/KeyHints.sh +++ b/config/hypr/scripts/KeyHints.sh @@ -1,5 +1,5 @@ #!/bin/bash -## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## +# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## # Keyhints. Idea got from Garuda Hyprland # Detect monitor resolution and scale @@ -41,6 +41,7 @@ yad --width=$dynamic_width --height=$dynamic_height \ " enter" "Terminal" "(kitty)" \ " or  D" "App Launcher" "(rofi)" \ " T" "Open File Manager" "(Thunar)" \ +" S" "Google Search" "(rofi)" \ " Q" "close active window" "(not kill)" \ " Shift Q " "closes a specified window" "(window)" \ " Alt V" "Clipboard Manager" "(cliphist)" \ @@ -68,6 +69,3 @@ yad --width=$dynamic_width --height=$dynamic_height \ " E" "View or EDIT Keybinds, Settings, Monitor" "" \ "" "" "" \ "More tips:" "https://github.com/JaKooLit/Hyprland-Dots/wiki" ""\ - - - diff --git a/config/hypr/scripts/LockScreen.sh b/config/hypr/scripts/LockScreen.sh index 1e676780..56d496a5 100755 --- a/config/hypr/scripts/LockScreen.sh +++ b/config/hypr/scripts/LockScreen.sh @@ -1,7 +1,5 @@ #!/bin/bash -## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## -# For Swaylock +# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## -CONFIG="$HOME/.config/swaylock/config" - -sleep 0.5s; swaylock --config ${CONFIG} & disown +# For Hyprlock +hyprlock -q
\ No newline at end of file diff --git a/config/hypr/scripts/MediaCtrl.sh b/config/hypr/scripts/MediaCtrl.sh index d9855e4f..b3f94295 100755 --- a/config/hypr/scripts/MediaCtrl.sh +++ b/config/hypr/scripts/MediaCtrl.sh @@ -1,5 +1,5 @@ #!/bin/bash -## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## +# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## # Playerctl music_icon="$HOME/.config/swaync/icons/music.png" diff --git a/config/hypr/scripts/Polkit-NixOS.sh b/config/hypr/scripts/Polkit-NixOS.sh index 048c1b02..51675eff 100755 --- a/config/hypr/scripts/Polkit-NixOS.sh +++ b/config/hypr/scripts/Polkit-NixOS.sh @@ -1,5 +1,5 @@ #!/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 # Find all polkit-gnome executables in the Nix store diff --git a/config/hypr/scripts/Polkit.sh b/config/hypr/scripts/Polkit.sh index 07b1211d..80310ba0 100755 --- a/config/hypr/scripts/Polkit.sh +++ b/config/hypr/scripts/Polkit.sh @@ -1,5 +1,5 @@ #!/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 # Polkit possible paths files to check diff --git a/config/hypr/scripts/PortalHyprland.sh b/config/hypr/scripts/PortalHyprland.sh index 389ec738..59f2e1df 100755 --- a/config/hypr/scripts/PortalHyprland.sh +++ b/config/hypr/scripts/PortalHyprland.sh @@ -1,5 +1,5 @@ #!/bin/bash -## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## +# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## # For manually starting xdg-desktop-portal sleep 1 diff --git a/config/hypr/scripts/PywalSwww.sh b/config/hypr/scripts/PywalSwww.sh index 4ed7448f..fe067611 100755 --- a/config/hypr/scripts/PywalSwww.sh +++ b/config/hypr/scripts/PywalSwww.sh @@ -1,5 +1,5 @@ #!/bin/bash -## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## +# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## # Pywal Colors for current wallpaper # Define the path to the swww cache directory diff --git a/config/hypr/scripts/Refresh.sh b/config/hypr/scripts/Refresh.sh index a585eb84..15516dff 100755 --- a/config/hypr/scripts/Refresh.sh +++ b/config/hypr/scripts/Refresh.sh @@ -1,5 +1,5 @@ #!/bin/bash -## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## +# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## # Scripts for refreshing waybar, rofi, swaync, pywal colors SCRIPTSDIR=$HOME/.config/hypr/scripts diff --git a/config/hypr/scripts/RefreshNoWaybar.sh b/config/hypr/scripts/RefreshNoWaybar.sh index f0c3d569..689bccf0 100755 --- a/config/hypr/scripts/RefreshNoWaybar.sh +++ b/config/hypr/scripts/RefreshNoWaybar.sh @@ -1,5 +1,5 @@ #!/bin/bash -## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## +# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## # Modified version of Refresh but no waybar refresh # Used by automatic wallpaper change diff --git a/config/hypr/scripts/RofiEmoji.sh b/config/hypr/scripts/RofiEmoji.sh index 4182a5a9..4c51ee8a 100755 --- a/config/hypr/scripts/RofiEmoji.sh +++ b/config/hypr/scripts/RofiEmoji.sh @@ -1,13 +1,13 @@ #!/bin/bash -## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## +# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## # Rofi Emoticons. Not my own. Cant remember the source -sed '1,/^### DATA ###$/d' $0 | +sed '1,/^# # DATA # #$/d' $0 | rofi -dmenu -config ~/.config/rofi/config-long.rasi| cut -d ' ' -f 1 | tr -d '\n' | wl-copy exit -### DATA ### +# # DATA # # 😀 grinning face face smile happy joy :D grin 😃 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 diff --git a/config/hypr/scripts/RofiSearch.sh b/config/hypr/scripts/RofiSearch.sh new file mode 100755 index 00000000..13148455 --- /dev/null +++ b/config/hypr/scripts/RofiSearch.sh @@ -0,0 +1,10 @@ +# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## +# Modified Script for Google Search +# Original Submitted by https://github.com/LeventKaanOguz + +# Opens rofi in dmenu mod and waits for input. Then pushes the input to the query of the URL. +# + +rofi_config="$HOME/.config/rofi/config-search.rasi" + +echo "" | rofi -dmenu -config "$rofi_config" -p "Search:" | xargs -I{} xdg-open https://www.google.com/search?q={} diff --git a/config/hypr/scripts/ScreenShot.sh b/config/hypr/scripts/ScreenShot.sh index f35f9292..309114dc 100755 --- a/config/hypr/scripts/ScreenShot.sh +++ b/config/hypr/scripts/ScreenShot.sh @@ -1,5 +1,5 @@ #!/bin/bash -## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## +# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## # Screenshots scripts iDIR="$HOME/.config/swaync/icons" diff --git a/config/hypr/scripts/SwitchKeyboardLayout.sh b/config/hypr/scripts/SwitchKeyboardLayout.sh index 90451c67..0145e262 100755 --- a/config/hypr/scripts/SwitchKeyboardLayout.sh +++ b/config/hypr/scripts/SwitchKeyboardLayout.sh @@ -1,5 +1,5 @@ #!/bin/bash -## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## +# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## # This is for changing kb_layouts. Set kb_layouts in $settings_file layout_f="$HOME/.cache/kb_layout" @@ -38,8 +38,8 @@ next_index=$(( (current_index + 1) % layout_count )) new_layout="${layout_mapping[next_index]}" # Update the keyboard layout -hyprctl keyword input:kb_layout "$new_layout" +hyprctl switchxkblayout "at-translated-set-2-keyboard" "$new_layout" echo "$new_layout" > "$layout_f" # Notification for the new keyboard layout -notify-send -u low -i "$notif" "new KB_Layout: $new_layout"
\ No newline at end of file +notify-send -u low -i "$notif" "new KB_Layout: $new_layout" diff --git a/config/hypr/scripts/TouchPad.sh b/config/hypr/scripts/TouchPad.sh index 47ad48f6..e94ee068 100755 --- a/config/hypr/scripts/TouchPad.sh +++ b/config/hypr/scripts/TouchPad.sh @@ -1,6 +1,9 @@ #!/bin/bash -## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## +# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## # For disabling touchpad. +# Edit the Touchpad_Device according to your system +# use hyprctl devices to get your system touchpad device name + Touchpad_Device="asue1209:00-04f3:319f-touchpad" notif="$HOME/.config/swaync/images/bell.png" @@ -18,7 +21,7 @@ toggle_touchpad() { fi notify-send -u low -i "$notif" "Touchpad $action" - hyprctl keyword "device:$Touchpad_Device:enabled" "$(cat "$STATUS_FILE")" + hyprctl keyword "device[$Touchpad_Device]:enabled" "$(cat "$STATUS_FILE")" } toggle_touchpad diff --git a/config/hypr/scripts/Volume.sh b/config/hypr/scripts/Volume.sh index 8c5af5de..d2fef87e 100755 --- a/config/hypr/scripts/Volume.sh +++ b/config/hypr/scripts/Volume.sh @@ -1,5 +1,5 @@ #!/bin/bash -## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## +# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## # Scripts for volume controls for audio and mic iDIR="$HOME/.config/swaync/icons" @@ -42,17 +42,19 @@ notify_user() { # Increase Volume inc_volume() { if [ "$(pamixer --get-mute)" == "true" ]; then - pamixer -u && notify_user + toggle_mute + else + pamixer -i 5 --allow-boost --set-limit 150 && notify_user fi - pamixer -i 5 && notify_user } # Decrease Volume dec_volume() { if [ "$(pamixer --get-mute)" == "true" ]; then - pamixer -u && notify_user + toggle_mute + else + pamixer -d 5 && notify_user fi - pamixer -d 5 && notify_user } # Toggle Mute @@ -102,17 +104,19 @@ notify_mic_user() { # Increase MIC Volume inc_mic_volume() { if [ "$(pamixer --default-source --get-mute)" == "true" ]; then - pamixer --default-source -u && notify_mic_user + toggle_mic + else + pamixer --default-source -i 5 && notify_mic_user fi - pamixer --default-source -i 5 && notify_mic_user } # Decrease MIC Volume dec_mic_volume() { if [ "$(pamixer --default-source --get-mute)" == "true" ]; then - pamixer --default-source -u && notify_mic_user + toggle-mic + else + pamixer --default-source -d 5 && notify_mic_user fi - pamixer --default-source -d 5 && notify_mic_user } # Execute accordingly diff --git a/config/hypr/scripts/WaybarCava.sh b/config/hypr/scripts/WaybarCava.sh index bf9e7435..3c4b0f53 100755 --- a/config/hypr/scripts/WaybarCava.sh +++ b/config/hypr/scripts/WaybarCava.sh @@ -1,5 +1,5 @@ #!/bin/bash -## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## +# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## # Not my own work. This was added through Github PR. Credit to original author diff --git a/config/hypr/scripts/WaybarLayout.sh b/config/hypr/scripts/WaybarLayout.sh index 31146b59..a70953bb 100755 --- a/config/hypr/scripts/WaybarLayout.sh +++ b/config/hypr/scripts/WaybarLayout.sh @@ -1,5 +1,5 @@ #!/bin/bash -## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## +# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## # Script for waybar layout or configs set -euo pipefail diff --git a/config/hypr/scripts/WaybarStyles.sh b/config/hypr/scripts/WaybarStyles.sh index bbcb6ea3..4cd484b0 100755 --- a/config/hypr/scripts/WaybarStyles.sh +++ b/config/hypr/scripts/WaybarStyles.sh @@ -1,5 +1,5 @@ #!/bin/bash -## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## +# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## # Script for waybar styles set -euo pipefail diff --git a/config/hypr/scripts/Wlogout.sh b/config/hypr/scripts/Wlogout.sh index 4c53c381..1987e285 100755 --- a/config/hypr/scripts/Wlogout.sh +++ b/config/hypr/scripts/Wlogout.sh @@ -1,5 +1,5 @@ #!/bin/bash -## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## +# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## # wlogout (Power, Screen Lock, Suspend, etc) |
