Browse Source

Merge pull request #116 from JaKooLit/development

Development
pull/119/head v2.2.3
Ja.KooLit 2 years ago committed by GitHub
parent
commit
1acea95602
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      config/hypr/UserConfigs/00-Readme
  2. 3
      config/hypr/UserConfigs/Laptops.conf
  3. 2
      config/hypr/UserConfigs/Monitors.conf
  4. 10
      config/hypr/UserConfigs/Startup_Apps.conf
  5. 0
      config/hypr/UserScripts/00-Readme
  6. 23
      config/hypr/UserScripts/QuickEdit.sh
  7. 0
      config/hypr/UserScripts/RofiBeats.sh
  8. 5
      config/hypr/UserScripts/Sunset.sh
  9. 2
      config/hypr/UserScripts/WallpaperAutoChange.sh
  10. 26
      config/hypr/UserScripts/WallpaperRandom.sh
  11. 14
      config/hypr/UserScripts/WallpaperSelect.sh
  12. 25
      config/hypr/configs/Keybinds.conf
  13. 7
      config/hypr/hyprland.conf
  14. 2
      config/hypr/scripts/AirplaneMode.sh
  15. 2
      config/hypr/scripts/Brightness.sh
  16. 2
      config/hypr/scripts/BrightnessKbd.sh
  17. 2
      config/hypr/scripts/ChangeBlur.sh
  18. 2
      config/hypr/scripts/ChangeLayout.sh
  19. 4
      config/hypr/scripts/ClipManager.sh
  20. 5
      config/hypr/scripts/DarkLight.sh
  21. 2
      config/hypr/scripts/GameMode.sh
  22. 10
      config/hypr/scripts/KeyHints.sh
  23. 2
      config/hypr/scripts/LockScreen.sh
  24. 2
      config/hypr/scripts/MediaCtrl.sh
  25. 2
      config/hypr/scripts/Polkit-NixOS.sh
  26. 2
      config/hypr/scripts/Polkit.sh
  27. 3
      config/hypr/scripts/PortalHyprland.sh
  28. 2
      config/hypr/scripts/PywalSwww.sh
  29. 10
      config/hypr/scripts/Refresh.sh
  30. 11
      config/hypr/scripts/RefreshNoWaybar.sh
  31. 3
      config/hypr/scripts/RofiEmoji.sh
  32. 2
      config/hypr/scripts/ScreenShot.sh
  33. 4
      config/hypr/scripts/SwitchKeyboardLayout.sh
  34. 6
      config/hypr/scripts/TouchPad.sh
  35. 2
      config/hypr/scripts/Volume.sh
  36. 24
      config/hypr/scripts/Wallpaper.sh
  37. 32
      config/hypr/scripts/WaybarCava.sh
  38. 12
      config/hypr/scripts/WaybarLayout.sh
  39. 16
      config/hypr/scripts/WaybarStyles.sh
  40. 9
      config/hypr/scripts/Wlogout.sh
  41. 0
      config/hypr/v2.2.3
  42. 21
      config/rofi/config-wallpaper.rasi
  43. 21
      config/rofi/resolution/1080p/config-wallpaper.rasi
  44. 21
      config/rofi/resolution/1440p/config-wallpaper.rasi
  45. 2
      config/waybar/configs/[BOT] Default
  46. 2
      config/waybar/configs/[BOT] Default Laptop
  47. 2
      config/waybar/configs/[TOP] Default
  48. 2
      config/waybar/configs/[TOP] Default Laptop
  49. 53
      config/waybar/modules
  50. 4
      config/waybar/style/Catppuccin-Latte.css
  51. 5
      config/waybar/style/Catppuccin-Mocha.css
  52. 1
      config/waybar/style/Crimson.css
  53. 2
      config/waybar/style/Purpl.css
  54. 2
      config/waybar/style/Rose Pine.css
  55. 2
      config/waybar/style/Simple Pink.css
  56. 1
      config/waybar/style/[Black & White] Monochrome.css
  57. 4
      config/waybar/style/[Bordered Pywal] Chroma Fusion Edge.css
  58. 1
      config/waybar/style/[Colored] Chroma Glow.css
  59. 1
      config/waybar/style/[Colored] Translucent.css
  60. 1
      config/waybar/style/[Colorful] Aurora Blossom.css
  61. 2
      config/waybar/style/[Colorful] Aurora.css
  62. 5
      config/waybar/style/[Colorful] Rainbow Spectrum.css
  63. 2
      config/waybar/style/[Dark] Golden Noir.css
  64. 2
      config/waybar/style/[Dark] Obsidian Edge.css
  65. 1
      config/waybar/style/[Light] Monochrome Contrast.css
  66. 2
      config/waybar/style/[Light] Obsidian Glow.css
  67. 1
      config/waybar/style/[Pywal] Chroma Edge.css
  68. 5
      config/waybar/style/[Pywal] Chroma Fusion.css
  69. 5
      config/waybar/style/[Pywal] Chroma Tally.css
  70. 6
      config/waybar/style/[Pywal] Colored.css
  71. 2
      config/waybar/style/[Pywal] Simple.css
  72. 1
      config/waybar/style/[Retro] Simple Style.css
  73. 1
      config/waybar/style/[Transparent] Crystal Clear.css
  74. 2
      config/wlogout/layout
  75. 61
      copy.sh

9
config/hypr/UserConfigs/00-Readme

@ -1,9 +1,16 @@
www.github.com/JaKooLit
Hyprland-Dots v2.2.2 Hyprland-Dots v2.2.2
1.) Suggest not to rename files in this folder. As this is connected and being sourced from hyprland.conf in ~/.config/hypr 1.) Suggest not to rename any files in this folder. As this is connected and being sourced from hyprland.conf in ~/.config/hypr
2.) This folder, along with UserScripts folder will NOT be touch during update. 2.) This folder, along with UserScripts folder will NOT be touch during update.
3.) However, if hyprland has a big change in settings, i.e., blur section is moved into another group, you should managed the change. 3.) However, if hyprland has a big change in settings, i.e., blur section is moved into another group, you should managed the change.
4.) Guidance on the keybinds. Suggest NOT to assign a keybind which I set on the default Keybinds. Else will conflict. Once Hyprland decided to have a global keybinds, then I will adjust.
5.) If you think that the default keybinds SHOULD be adjusted, open an issue on my github page and present me a valid argument. Like conflicting to GLOBAL keybinds, etc etc etc.
I will update the Hyprland-Dots wiki for guidance. Make sure to check out changelogs as well I will update the Hyprland-Dots wiki for guidance. Make sure to check out changelogs as well

3
config/hypr/UserConfigs/Laptops.conf

@ -3,10 +3,9 @@
# See https://wiki.hyprland.org/Configuring/Keywords/ for more variable settings # See https://wiki.hyprland.org/Configuring/Keywords/ for more variable settings
# These configs are mostly for laptops. This is addemdum to Keybinds.conf # These configs are mostly for laptops. This is addemdum to Keybinds.conf
$configs = $HOME/.config/hypr/configs
$UserConfigs = $HOME/.config/hypr/UserConfigs
$mainMod = SUPER $mainMod = SUPER
$scriptsDir = $HOME/.config/hypr/scripts $scriptsDir = $HOME/.config/hypr/scripts
$UserConfigs = $HOME/.config/hypr/UserConfigs
bind = , xf86KbdBrightnessDown, exec, $scriptsDir/BrightnessKbd.sh --dec #Keyboard brightness Down bind = , xf86KbdBrightnessDown, exec, $scriptsDir/BrightnessKbd.sh --dec #Keyboard brightness Down
bind = , xf86KbdBrightnessUp, exec, $scriptsDir/BrightnessKbd.sh --inc #Keyboard brightness up bind = , xf86KbdBrightnessUp, exec, $scriptsDir/BrightnessKbd.sh --inc #Keyboard brightness up

2
config/hypr/UserConfigs/Monitors.conf

@ -15,7 +15,7 @@ monitor=,preferred,auto,1
#monitor = eDP-1, preferred, auto, 1 #monitor = eDP-1, preferred, auto, 1
#monitor = eDP-1, 2560x1440@165, 0x0, 1 #own screen #monitor = eDP-1, 2560x1440@165, 0x0, 1 #own screen
#monitor = DP-2, preferred, auto, 1 #monitor = DP-3, 1920x1080@240, auto, 1
#monitor = DP-1, preferred, auto, 1 #monitor = DP-1, preferred, auto, 1
#monitor = HDMI-A-1, preferred,auto,1 #monitor = HDMI-A-1, preferred,auto,1

10
config/hypr/UserConfigs/Startup_Apps.conf

@ -2,15 +2,15 @@
#Commands & Apps to be executed at launch #Commands & Apps to be executed at launch
$scriptsDir = $HOME/.config/hypr/scripts $scriptsDir = $HOME/.config/hypr/scripts
$UserscriptsDir = $HOME/.config/hypr/UserScripts $UserScripts = $HOME/.config/hypr/UserScripts
$lock = $scriptsDir/LockScreen.sh
$SwwwRandom = $scriptsDir/WallpaperRandom.sh
$WallpaperPath = $HOME/Pictures/wallpapers
$wallDIR=$HOME/Pictures/wallpapers
$lock = $scriptsDir/LockScreen.sh
$SwwwRandom = $UserscriptsDir/WallpaperAutoChange.sh
# wallpaper stuff / More wallpaper options below # wallpaper stuff / More wallpaper options below
exec-once = swww query || swww init exec-once = swww query || swww init
exec-once = $SwwwRandom $WallpaperPath # random wallpaper switcher every 30 minutes exec-once = $SwwwRandom $wallDIR # random wallpaper switcher every 30 minutes
# Startup # Startup
exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP

0
config/hypr/UserScripts/00-Readme

23
config/hypr/scripts/QuickEdit.sh → config/hypr/UserScripts/QuickEdit.sh

@ -1,7 +1,8 @@
#!/bin/bash #!/bin/bash
# Rofi menu for Quick Edit / View of Settings (SUPER E)
defaultDir="$HOME/.config/hypr/configs" configs="$HOME/.config/hypr/configs"
userDir="$HOME/.config/hypr/UserConfigs" UserConfigs="$HOME/.config/hypr/UserConfigs"
menu(){ menu(){
printf "1. view Env-variables\n" printf "1. view Env-variables\n"
@ -19,31 +20,31 @@ main() {
choice=$(menu | rofi -dmenu -config ~/.config/rofi/config-compact.rasi | cut -d. -f1) choice=$(menu | rofi -dmenu -config ~/.config/rofi/config-compact.rasi | cut -d. -f1)
case $choice in case $choice in
1) 1)
kitty -e nano "$userDir/ENVariables.conf" kitty -e nano "$UserConfigs/ENVariables.conf"
;; ;;
2) 2)
kitty -e nano "$userDir/WindowRules.conf" kitty -e nano "$UserConfigs/WindowRules.conf"
;; ;;
3) 3)
kitty -e nano "$userDir/Startup_Apps.conf" kitty -e nano "$UserConfigs/Startup_Apps.conf"
;; ;;
4) 4)
kitty -e nano "$userDir/UserKeybinds.conf" kitty -e nano "$UserConfigs/UserKeybinds.conf"
;; ;;
5) 5)
kitty -e nano "$userDir/Monitors.conf" kitty -e nano "$UserConfigs/Monitors.conf"
;; ;;
6) 6)
kitty -e nano "$userDir/Laptops.conf" kitty -e nano "$UserConfigs/Laptops.conf"
;; ;;
7) 7)
kitty -e nano "$userDir/UserSettings.conf" kitty -e nano "$UserConfigs/UserSettings.conf"
;; ;;
8) 8)
kitty -e nano "$defaultDir/Settings.conf" kitty -e nano "$configs/Settings.conf"
;; ;;
9) 9)
kitty -e nano "$defaultDir/Keybinds.conf" kitty -e nano "$configs/Keybinds.conf"
;; ;;
*) *)
;; ;;

0
config/hypr/scripts/RofiBeats.sh → config/hypr/UserScripts/RofiBeats.sh

5
config/hypr/UserScripts/Sunset.sh

@ -1,2 +1,7 @@
#!/bin/bash #!/bin/bash
## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
# wlsunset project page
# https://sr.ht/~kennylevinsen/wlsunset/
wlsunset -t 4000 -T 6500 -d 900 -S 07:00 -s 19:00 wlsunset -t 4000 -T 6500 -d 900 -S 07:00 -s 19:00

2
config/hypr/scripts/WallpaperRandom.sh → config/hypr/UserScripts/WallpaperAutoChange.sh

@ -1,4 +1,6 @@
#!/bin/bash #!/bin/bash
## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
# 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
# up as the wallpaper at regular intervals # up as the wallpaper at regular intervals

26
config/hypr/UserScripts/WallpaperRandom.sh

@ -0,0 +1,26 @@
#!/bin/bash
## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
# Script for Random Wallpaper ( CTRL ALT W)
wallDIR="$HOME/Pictures/wallpapers"
scriptsDir="$HOME/.config/hypr/scripts"
PICS=($(find ${wallDIR} -type f \( -name "*.jpg" -o -name "*.jpeg" -o -name "*.png" -o -name "*.gif" \)))
RANDOMPICS=${PICS[ $RANDOM % ${#PICS[@]} ]}
# Transition config
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"
swww query || swww init && swww img ${RANDOMPICS} $SWWW_PARAMS
${scriptsDir}/PywalSwww.sh
sleep 1
${scriptsDir}/Refresh.sh

14
config/hypr/scripts/WallpaperSelect.sh → config/hypr/UserScripts/WallpaperSelect.sh

@ -1,9 +1,11 @@
#!/bin/bash #!/bin/bash
## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
# This script for selecting wallpapers (SUPER W)
SCRIPTSDIR="$HOME/.config/hypr/scripts" SCRIPTSDIR="$HOME/.config/hypr/scripts"
# WALLPAPERS PATH # WALLPAPERS PATH
DIR="$HOME/Pictures/wallpapers" wallDIR="$HOME/Pictures/wallpapers"
# Transition config # Transition config
FPS=30 FPS=30
@ -18,18 +20,18 @@ if pidof swaybg > /dev/null; then
fi fi
# Retrieve image files # Retrieve image files
PICS=($(ls "${DIR}" | grep -E ".jpg$|.jpeg$|.png$|.gif$")) PICS=($(ls "${wallDIR}" | grep -E ".jpg$|.jpeg$|.png$|.gif$"))
RANDOM_PIC="${PICS[$((RANDOM % ${#PICS[@]}))]}" RANDOM_PIC="${PICS[$((RANDOM % ${#PICS[@]}))]}"
RANDOM_PIC_NAME="${#PICS[@]}. random" RANDOM_PIC_NAME="${#PICS[@]}. random"
# Rofi command # Rofi command
rofi_command="rofi -dmenu -config ~/.config/rofi/config-wallpaper.rasi" rofi_command="rofi -show -dmenu -config ~/.config/rofi/config-wallpaper.rasi"
menu() { menu() {
for i in "${!PICS[@]}"; do for i in "${!PICS[@]}"; do
# Displaying .gif to indicate animated images # Displaying .gif to indicate animated images
if [[ -z $(echo "${PICS[$i]}" | grep .gif$) ]]; then if [[ -z $(echo "${PICS[$i]}" | grep .gif$) ]]; then
printf "$(echo "${PICS[$i]}" | cut -d. -f1)\n" printf "$(echo "${PICS[$i]}" | cut -d. -f1)\x00icon\x1f${wallDIR}/${PICS[$i]}\n"
else else
printf "${PICS[$i]}\n" printf "${PICS[$i]}\n"
fi fi
@ -50,7 +52,7 @@ main() {
# Random choice case # Random choice case
if [ "$choice" = "$RANDOM_PIC_NAME" ]; then if [ "$choice" = "$RANDOM_PIC_NAME" ]; then
swww img "${DIR}/${RANDOM_PIC}" $SWWW_PARAMS swww img "${wallDIR}/${RANDOM_PIC}" $SWWW_PARAMS
exit 0 exit 0
fi fi
@ -65,7 +67,7 @@ main() {
done done
if [[ $pic_index -ne -1 ]]; then if [[ $pic_index -ne -1 ]]; then
swww img "${DIR}/${PICS[$pic_index]}" $SWWW_PARAMS swww img "${wallDIR}/${PICS[$pic_index]}" $SWWW_PARAMS
else else
echo "Image not found." echo "Image not found."
exit 1 exit 1

25
config/hypr/configs/Keybinds.conf

@ -1,34 +1,40 @@
## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## ## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
# Default Keybinds # Default Keybinds
# visit https://wiki.hyprland.org/Configuring/Binds/ for more info
$mainMod = SUPER $mainMod = SUPER
# Default
$scriptsDir = $HOME/.config/hypr/scripts $scriptsDir = $HOME/.config/hypr/scripts
$configs = $HOME/.config/hypr/configs
# User
$UserConfigs = $HOME/.config/hypr/UserConfigs
$UserScripts = $HOME/.config/hypr/UserScripts
bind = CTRL ALT, Delete, exec, hyprctl dispatch exit 0 bind = CTRL ALT, Delete, exec, hyprctl dispatch exit 0
bind = $mainMod, Q, killactive,
bind = $mainMod, F, fullscreen
bind = $mainMod SHIFT, Q, closewindow, bind = $mainMod SHIFT, Q, closewindow,
bind = $mainMod SHIFT, F, togglefloating, bind = $mainMod SHIFT, F, togglefloating,
bind = $mainMod ALT, F, exec, hyprctl dispatch workspaceopt allfloat bind = $mainMod ALT, F, exec, hyprctl dispatch workspaceopt allfloat
bind = $mainMod, F, fullscreen
bind = $mainMod, Q, killactive,
bind = CTRL ALT, L, exec, $scriptsDir/LockScreen.sh bind = CTRL ALT, L, exec, $scriptsDir/LockScreen.sh
bind = CTRL ALT, P, exec, $scriptsDir/Wlogout.sh bind = CTRL ALT, P, exec, $scriptsDir/Wlogout.sh
# FEATURES / EXTRAS # FEATURES / EXTRAS
bind = $mainMod, H, exec, $scriptsDir/KeyHints.sh # Small help file
bind = $mainMod ALT, R, exec, $scriptsDir/Refresh.sh # Refresh waybar, swaync, rofi bind = $mainMod ALT, R, exec, $scriptsDir/Refresh.sh # Refresh waybar, swaync, rofi
bind = $mainMod CTRL, S, exec, $scriptsDir/RofiBeats.sh # online music
bind = $mainMod ALT, E, exec, $scriptsDir/RofiEmoji.sh # emoji bind = $mainMod ALT, E, exec, $scriptsDir/RofiEmoji.sh # emoji
bind = $mainMod, H, exec, $scriptsDir/KeyHints.sh # Small help file
bind = $mainMod, E, exec, $scriptsDir/QuickEdit.sh # Quick Edit Hyprland Settings
bind = $mainMod SHIFT, B, exec, $scriptsDir/ChangeBlur.sh # Toggle blur settings bind = $mainMod SHIFT, B, exec, $scriptsDir/ChangeBlur.sh # Toggle blur settings
bind = $mainMod SHIFT, G, exec, $scriptsDir/GameMode.sh # animations ON/OFF bind = $mainMod SHIFT, G, exec, $scriptsDir/GameMode.sh # animations ON/OFF
bind = $mainMod ALT, K, exec, $scriptsDir/SwitchKeyboardLayout.sh # Switch Keyboard Layout bind = $mainMod ALT, K, exec, $scriptsDir/SwitchKeyboardLayout.sh # Switch Keyboard Layout
bind = $mainMod, Space, exec, $scriptsDir/ChangeLayout.sh # Toggle Master or Dwindle Layout bind = $mainMod ALT, L, exec, $scriptsDir/ChangeLayout.sh # Toggle Master or Dwindle Layout
bind = $mainMod ALT, V, exec, $scriptsDir/ClipManager.sh # Clipboard Manager bind = $mainMod ALT, V, exec, $scriptsDir/ClipManager.sh # Clipboard Manager
bind = $mainMod SHIFT, N, exec, swaync-client -t -sw # swayNC panel bind = $mainMod SHIFT, N, exec, swaync-client -t -sw # swayNC panel
# Wallpaper related keybinds # FEATURES / EXTRAS (UserScripts)
bind = $mainMod, W, exec, $scriptsDir/WallpaperSelect.sh # Select wallpaper to apply bind = $mainMod, E, exec, $UserScripts/QuickEdit.sh # Quick Edit Hyprland Settings
bind = CTRL ALT, W, exec, $scriptsDir/Wallpaper.sh # Random wallpapers bind = $mainMod SHIFT, M, exec, $UserScripts/RofiBeats.sh # online music
bind = $mainMod, W, exec, $UserScripts/WallpaperSelect.sh # Select wallpaper to apply
bind = CTRL ALT, W, exec, $UserScripts/WallpaperRandom.sh # Random wallpapers
# Waybar / Bar related # Waybar / Bar related
bind = $mainMod, B, exec, killall -SIGUSR1 waybar # Toggle hide/show waybar bind = $mainMod, B, exec, killall -SIGUSR1 waybar # Toggle hide/show waybar
@ -43,7 +49,6 @@ bind = $mainMod, K, layoutmsg, cycleprev
bind = $mainMod, M, exec, hyprctl dispatch splitratio 0.3 bind = $mainMod, M, exec, hyprctl dispatch splitratio 0.3
bind = $mainMod, P, pseudo, # dwindle bind = $mainMod, P, pseudo, # dwindle
bind = $mainMod CTRL, Return, layoutmsg, swapwithmaster bind = $mainMod CTRL, Return, layoutmsg, swapwithmaster
bind = $mainMod SHIFT, M, exec, hyprctl dispatch splitratio -0.3
# group # group
bind = $mainMod, G, togglegroup bind = $mainMod, G, togglegroup

7
config/hypr/hyprland.conf

@ -11,12 +11,9 @@ $UserConfigs = $HOME/.config/hypr/UserConfigs
source= $UserConfigs/Startup_Apps.conf source= $UserConfigs/Startup_Apps.conf
source= $UserConfigs/ENVariables.conf source= $UserConfigs/ENVariables.conf
source= $UserConfigs/UserKeybinds.conf
source= $UserConfigs/UserSettings.conf
source= $UserConfigs/Monitors.conf source= $UserConfigs/Monitors.conf
source= $UserConfigs/Laptops.conf source= $UserConfigs/Laptops.conf
source= $UserConfigs/LaptopDisplay.conf source= $UserConfigs/LaptopDisplay.conf
source= $UserConfigs/WindowRules.conf source= $UserConfigs/WindowRules.conf
source= $UserConfigs/UserKeybinds.conf
source= $UserConfigs/UserSettings.conf

2
config/hypr/scripts/AirplaneMode.sh

@ -1,4 +1,6 @@
#!/bin/bash #!/bin/bash
## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
# 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,4 +1,6 @@
#!/bin/bash #!/bin/bash
## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
# Script for Monitor backlights (if supported) using brightnessctl
iDIR="$HOME/.config/swaync/icons" iDIR="$HOME/.config/swaync/icons"
notification_timeout=1000 notification_timeout=1000

2
config/hypr/scripts/BrightnessKbd.sh

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

2
config/hypr/scripts/ChangeBlur.sh

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

4
config/hypr/scripts/ClipManager.sh

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
# ## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
# Clipboard Manager # Clipboard Manager. This needed cliphist & wl-copy and of course rofi
if [[ ! $(pidof rofi) ]]; then if [[ ! $(pidof rofi) ]]; then
cliphist list | rofi -dmenu -config ~/.config/rofi/config-long.rasi | cliphist decode | wl-copy cliphist list | rofi -dmenu -config ~/.config/rofi/config-long.rasi | cliphist decode | wl-copy

5
config/hypr/scripts/DarkLight.sh

@ -1,5 +1,8 @@
#!/bin/bash #!/bin/bash
set -x ## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
# For Dark and Light switching
# Note: Scripts are looking for keywords Light or Dark except for wallpapers as the are in a separate folders
# Paths # Paths
wallpaper_base_path="$HOME/Pictures/wallpapers/Dynamic-Wallpapers" wallpaper_base_path="$HOME/Pictures/wallpapers/Dynamic-Wallpapers"
dark_wallpapers="$wallpaper_base_path/Dark" dark_wallpapers="$wallpaper_base_path/Dark"

2
config/hypr/scripts/GameMode.sh

@ -1,4 +1,6 @@
#!/bin/bash #!/bin/bash
## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
# 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"

10
config/hypr/scripts/KeyHints.sh

@ -1,4 +1,6 @@
#!/bin/bash #!/bin/bash
## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
# Keyhints. Idea got from Garuda Hyprland
# Detect monitor resolution and scale # Detect monitor resolution and scale
x_mon=$(hyprctl -j monitors | jq '.[] | select(.focused==true) | .width') x_mon=$(hyprctl -j monitors | jq '.[] | select(.focused==true) | .width')
@ -42,8 +44,8 @@ yad --width=$dynamic_width --height=$dynamic_height \
" 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" "(swww)" \ " W" "Choose wallpaper" "(Wallpaper Menu)" \
"CTRL ALT W" "Random wallpaper" "(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)" \
@ -57,11 +59,11 @@ yad --width=$dynamic_width --height=$dynamic_height \
"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" \
" Spacebar" "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" "" \ " 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" "" \
"" "" "" \ "" "" "" \

2
config/hypr/scripts/LockScreen.sh

@ -1,4 +1,6 @@
#!/bin/bash #!/bin/bash
## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
# For Swaylock
CONFIG="$HOME/.config/swaylock/config" CONFIG="$HOME/.config/swaylock/config"

2
config/hypr/scripts/MediaCtrl.sh

@ -1,4 +1,6 @@
#!/bin/bash #!/bin/bash
## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
# 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,4 +1,6 @@
#!/bin/bash #!/bin/bash
## /* ---- 💫 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 # Find all polkit-gnome executables in the Nix store
polkit_gnome_paths=$(find /nix/store -name 'polkit-gnome-authentication-agent-1' -type f 2>/dev/null) polkit_gnome_paths=$(find /nix/store -name 'polkit-gnome-authentication-agent-1' -type f 2>/dev/null)

2
config/hypr/scripts/Polkit.sh

@ -1,4 +1,6 @@
#!/bin/bash #!/bin/bash
## /* ---- 💫 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 # Polkit possible paths files to check
polkit=( polkit=(

3
config/hypr/scripts/PortalHyprland.sh

@ -1,4 +1,7 @@
#!/bin/bash #!/bin/bash
## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
# For manually starting xdg-desktop-portal
sleep 1 sleep 1
killall xdg-desktop-portal-hyprland killall xdg-desktop-portal-hyprland
killall xdg-desktop-portal-wlr killall xdg-desktop-portal-wlr

2
config/hypr/scripts/PywalSwww.sh

@ -1,4 +1,6 @@
#!/bin/bash #!/bin/bash
## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
# Pywal Colors for current wallpaper
# Define the path to the swww cache directory # Define the path to the swww cache directory
cache_dir="$HOME/.cache/swww/" cache_dir="$HOME/.cache/swww/"

10
config/hypr/scripts/Refresh.sh

@ -1,7 +1,9 @@
#!/usr/bin/env bash #!/bin/bash
## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
# Scripts for refreshing waybar, rofi, swaync, pywal colors
SCRIPTSDIR=$HOME/.config/hypr/scripts SCRIPTSDIR=$HOME/.config/hypr/scripts
UserSCRIPTSDIR=$HOME/.config/hypr/UserScripts UserScripts=$HOME/.config/hypr/UserScripts
# Define file_exists function # Define file_exists function
file_exists() { file_exists() {
@ -30,8 +32,8 @@ swaync > /dev/null 2>&1 &
# Relaunching rainbow borders if the script exists # Relaunching rainbow borders if the script exists
sleep 1 sleep 1
if file_exists "${UserSCRIPTSDIR}/RainbowBorders.sh"; then if file_exists "${UserScripts}/RainbowBorders.sh"; then
${UserSCRIPTSDIR}/RainbowBorders.sh & ${UserScripts}/RainbowBorders.sh &
fi fi
# for cava-pywal (note, need to manually restart cava once wallpaper changes) # for cava-pywal (note, need to manually restart cava once wallpaper changes)

11
config/hypr/scripts/RefreshNoWaybar.sh

@ -1,11 +1,12 @@
#!/usr/bin/env bash #!/bin/bash
## /* ---- 💫 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
# Modified inorder to refresh rofi background, Pywal # Modified inorder to refresh rofi background, Pywal, SwayNC
SCRIPTSDIR=$HOME/.config/hypr/scripts SCRIPTSDIR=$HOME/.config/hypr/scripts
UserSCRIPTSDIR=$HOME/.config/hypr/UserScripts UserScripts=$HOME/.config/hypr/UserScripts
# Define file_exists function # Define file_exists function
file_exists() { file_exists() {
@ -29,8 +30,8 @@ ${SCRIPTSDIR}/PywalSwww.sh &
# Relaunching rainbow borders if the script exists # Relaunching rainbow borders if the script exists
sleep 1 sleep 1
if file_exists "${UserSCRIPTSDIR}/RainbowBorders.sh"; then if file_exists "${UserScripts}/RainbowBorders.sh"; then
${UserSCRIPTSDIR}/RainbowBorders.sh & ${UserScripts}/RainbowBorders.sh &
fi fi
# for cava-pywal (note, need to manually restart cava once wallpaper changes) # for cava-pywal (note, need to manually restart cava once wallpaper changes)

3
config/hypr/scripts/RofiEmoji.sh

@ -1,11 +1,12 @@
#!/bin/bash #!/bin/bash
## /* ---- 💫 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| 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

2
config/hypr/scripts/ScreenShot.sh

@ -1,4 +1,6 @@
#!/bin/bash #!/bin/bash
## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
# Screenshots scripts
iDIR="$HOME/.config/swaync/icons" iDIR="$HOME/.config/swaync/icons"
notify_cmd_shot="notify-send -h string:x-canonical-private-synchronous:shot-notify -u low -i ${iDIR}/picture.png" notify_cmd_shot="notify-send -h string:x-canonical-private-synchronous:shot-notify -u low -i ${iDIR}/picture.png"

4
config/hypr/scripts/SwitchKeyboardLayout.sh

@ -1,4 +1,6 @@
#!/usr/bin/env bash #!/bin/bash
## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
# This is for changing kb_layouts. Set kb_layouts in $settings_file
layout_f="$HOME/.cache/kb_layout" layout_f="$HOME/.cache/kb_layout"
settings_file="$HOME/.config/hypr/UserConfigs/UserSettings.conf" settings_file="$HOME/.config/hypr/UserConfigs/UserSettings.conf"

6
config/hypr/scripts/TouchPad.sh

@ -1,6 +1,8 @@
#!/bin/bash #!/bin/bash
## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
# For disabling touchpad.
HYPRLAND_DEVICE="asue1209:00-04f3:319f-touchpad" Touchpad_Device="asue1209:00-04f3:319f-touchpad"
notif="$HOME/.config/swaync/images/bell.png" notif="$HOME/.config/swaync/images/bell.png"
XDG_RUNTIME_DIR=${XDG_RUNTIME_DIR:-/run/user/$(id -u)} XDG_RUNTIME_DIR=${XDG_RUNTIME_DIR:-/run/user/$(id -u)}
@ -16,7 +18,7 @@ toggle_touchpad() {
fi fi
notify-send -u low -i "$notif" "Touchpad $action" notify-send -u low -i "$notif" "Touchpad $action"
hyprctl keyword "device:$HYPRLAND_DEVICE:enabled" "$(cat "$STATUS_FILE")" hyprctl keyword "device:$Touchpad_Device:enabled" "$(cat "$STATUS_FILE")"
} }
toggle_touchpad toggle_touchpad

2
config/hypr/scripts/Volume.sh

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

24
config/hypr/scripts/Wallpaper.sh

@ -1,24 +0,0 @@
#!/bin/bash
DIR="$HOME/Pictures/wallpapers"
SCRIPTSDIR="$HOME/.config/hypr/scripts"
PICS=($(find ${DIR} -type f \( -name "*.jpg" -o -name "*.jpeg" -o -name "*.png" -o -name "*.gif" \)))
RANDOMPICS=${PICS[ $RANDOM % ${#PICS[@]} ]}
# Transition config
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"
swww query || swww init && swww img ${RANDOMPICS} $SWWW_PARAMS
${SCRIPTSDIR}/PywalSwww.sh
sleep 1
${SCRIPTSDIR}/Refresh.sh

32
config/hypr/scripts/WaybarCava.sh

@ -0,0 +1,32 @@
# #! /bin/bash
## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
# Not my own work. This was added through Github PR. Credit to original author
#----- Optimized bars animation without much CPU usage increase --------
bar="▁▂▃▄▅▆▇█"
dict="s/;//g"
# Calculate the length of the bar outside the loop
bar_length=${#bar}
# Create dictionary to replace char with bar
for ((i = 0; i < bar_length; i++)); do
dict+=";s/$i/${bar:$i:1}/g"
done
# Create cava config
config_file="/tmp/bar_cava_config"
cat >"$config_file" <<EOF
[general]
bars = 10
[output]
method = raw
raw_target = /dev/stdout
data_format = ascii
ascii_max_range = 7
EOF
# Read stdout from cava and perform substitution in a single sed command
cava -p "$config_file" | sed -u "$dict"

12
config/hypr/scripts/WaybarLayout.sh

@ -1,12 +1,14 @@
#!/bin/bash #!/bin/bash
## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
# Script for waybar layout or configs
set -euo pipefail set -euo pipefail
IFS=$'\n\t' IFS=$'\n\t'
# Define directories # Define directories
config_dir="$HOME/.config/waybar/configs" waybar_layouts="$HOME/.config/waybar/configs"
waybar_config="$HOME/.config/waybar/config" waybar_config="$HOME/.config/waybar/config"
scripts_dir="$HOME/.config/hypr/scripts" SCRIPTSDIR="$HOME/.config/hypr/scripts"
rofi_config="$HOME/.config/rofi/config-waybar-layout.rasi" rofi_config="$HOME/.config/rofi/config-waybar-layout.rasi"
# Function to display menu options # Function to display menu options
@ -14,14 +16,14 @@ menu() {
options=() options=()
while IFS= read -r file; do while IFS= read -r file; do
options+=("$(basename "$file")") options+=("$(basename "$file")")
done < <(find "$config_dir" -maxdepth 1 -type f -exec basename {} \; | sort) done < <(find "$waybar_layouts" -maxdepth 1 -type f -exec basename {} \; | sort)
printf '%s\n' "${options[@]}" printf '%s\n' "${options[@]}"
} }
# Apply selected configuration # Apply selected configuration
apply_config() { apply_config() {
ln -sf "$config_dir/$1" "$waybar_config" ln -sf "$waybar_layouts/$1" "$waybar_config"
restart_waybar_if_needed restart_waybar_if_needed
} }
@ -31,7 +33,7 @@ restart_waybar_if_needed() {
pkill waybar pkill waybar
sleep 0.1 # Delay for Waybar to completely terminate sleep 0.1 # Delay for Waybar to completely terminate
fi fi
"${scripts_dir}/Refresh.sh" & "${SCRIPTSDIR}/Refresh.sh" &
} }
# Main function # Main function

16
config/hypr/scripts/WaybarStyles.sh

@ -1,29 +1,31 @@
#!/bin/bash #!/bin/bash
## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
# Script for waybar styles
set -euo pipefail set -euo pipefail
IFS=$'\n\t' IFS=$'\n\t'
# Define directories # Define directories
config_dir="$HOME/.config/waybar/style" waybar_styles="$HOME/.config/waybar/style"
waybar_config="$HOME/.config/waybar/style.css" waybar_style="$HOME/.config/waybar/style.css"
scripts_dir="$HOME/.config/hypr/scripts" SCRIPTSDIR="$HOME/.config/hypr/scripts"
rofi_config="$HOME/.config/rofi/config-waybar-style.rasi" rofi_config="$HOME/.config/rofi/config-waybar-style.rasi"
# Function to display menu options # Function to display menu options
menu() { menu() {
options=() options=()
while IFS= read -r file; do while IFS= read -r file; do
if [ -f "$config_dir/$file" ]; then if [ -f "$waybar_styles/$file" ]; then
options+=("$(basename "$file" .css)") options+=("$(basename "$file" .css)")
fi fi
done < <(find "$config_dir" -maxdepth 1 -type f -name '*.css' -exec basename {} \; | sort) done < <(find "$waybar_styles" -maxdepth 1 -type f -name '*.css' -exec basename {} \; | sort)
printf '%s\n' "${options[@]}" printf '%s\n' "${options[@]}"
} }
# Apply selected style # Apply selected style
apply_style() { apply_style() {
ln -sf "$config_dir/$1.css" "$waybar_config" ln -sf "$waybar_styles/$1.css" "$waybar_style"
restart_waybar_if_needed restart_waybar_if_needed
} }
@ -33,7 +35,7 @@ restart_waybar_if_needed() {
pkill waybar pkill waybar
sleep 0.1 # Delay for Waybar to completely terminate sleep 0.1 # Delay for Waybar to completely terminate
fi fi
"${scripts_dir}/Refresh.sh" & "${SCRIPTSDIR}/Refresh.sh" &
} }
# Main function # Main function

9
config/hypr/scripts/Wlogout.sh

@ -1,8 +1,11 @@
#!/bin/bash #!/bin/bash
## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
# wlogout (Power, Screen Lock, Suspend, etc)
# Set variables for parameters # Set variables for parameters
A_2160=2500 A_2160=680
B_2160=2700 B_2160=750
A_1440=500 A_1440=500
B_1440=550 B_1440=550
A_1080=300 A_1080=300
@ -24,7 +27,7 @@ echo "Detected Resolution: $resolution"
# Set parameters based on screen resolution and scaling factor # Set parameters based on screen resolution and scaling factor
if ((resolution >= 2160)); then if ((resolution >= 2160)); then
wlogout --protocol layer-shell -b 6 -T $(awk "BEGIN {printf \"%.0f\", $A_2160 * 2160 * $hypr_scale / $resolution}") -B $(awk "BEGIN {printf \"%.0f\", $B_2160 * 2160 * $hypr_scale / $resolution}") & wlogout --protocol layer-shell -b 3 -T $(awk "BEGIN {printf \"%.0f\", $A_2160 * 2160 * $hypr_scale / $resolution}") -B $(awk "BEGIN {printf \"%.0f\", $B_2160 * 2160 * $hypr_scale / $resolution}") &
echo "Setting parameters for resolution >= 2160p" echo "Setting parameters for resolution >= 2160p"
elif ((resolution >= 1440)); then elif ((resolution >= 1440)); then
wlogout --protocol layer-shell -b 6 -T $(awk "BEGIN {printf \"%.0f\", $A_1440 * 1440 * $hypr_scale / $resolution}") -B $(awk "BEGIN {printf \"%.0f\", $B_1440 * 1440 * $hypr_scale / $resolution}") & wlogout --protocol layer-shell -b 6 -T $(awk "BEGIN {printf \"%.0f\", $A_1440 * 1440 * $hypr_scale / $resolution}") -B $(awk "BEGIN {printf \"%.0f\", $B_1440 * 1440 * $hypr_scale / $resolution}") &

0
config/hypr/v2.2.2 → config/hypr/v2.2.3

21
config/rofi/config-wallpaper.rasi

@ -3,7 +3,7 @@
/* ---- Configuration ---- */ /* ---- Configuration ---- */
configuration { configuration {
modi: "drun,run"; modi: "drun,run,filebrowser";
font: "Fira Code SemiBold 12"; font: "Fira Code SemiBold 12";
show-icons: true; show-icons: true;
display-drun: ""; display-drun: "";
@ -24,7 +24,7 @@ configuration {
/* ---- Window ---- */ /* ---- Window ---- */
window { window {
width: 800px; width: 700px;
/*height: 450px;*/ /*height: 450px;*/
x-offset: 0px; x-offset: 0px;
y-offset: 0px; y-offset: 0px;
@ -40,7 +40,8 @@ window {
enabled: true; enabled: true;
border-radius: 12px; border-radius: 12px;
border-radius: 12px; border-radius: 12px;
background-color: @background-color; background-color: transparent;
background-image: url("~/.config/rofi/.current_wallpaper", height);
} }
/* ---- Mainbox ---- */ /* ---- Mainbox ---- */
@ -48,10 +49,9 @@ mainbox {
enabled: true; enabled: true;
orientation: horizontal; orientation: horizontal;
padding: 8px; padding: 8px;
background-image: url("~/.config/rofi/.current_wallpaper", width);
children: [ "imagebox"]; children: [ "imagebox"];
border-radius: 12px; border-radius: 12px;
background-color: @background; background-color: transparent;
} }
/* ---- Imagebox ---- */ /* ---- Imagebox ---- */
@ -111,8 +111,8 @@ entry {
/* ---- Listview ---- */ /* ---- Listview ---- */
listview { listview {
enabled: true; enabled: true;
columns: 2; columns: 4;
lines: 8; lines: 3;
spacing: 4px; spacing: 4px;
dynamic: true; dynamic: true;
cycle: true; cycle: true;
@ -131,6 +131,7 @@ element {
padding: 5px; padding: 5px;
margin: 2px; margin: 2px;
cursor: pointer; cursor: pointer;
orientation: vertical;
background-color: transparent; background-color: transparent;
border-radius: 10px; border-radius: 10px;
border: 0px; border: 0px;
@ -184,16 +185,18 @@ element alternate.active {
element-icon { element-icon {
background-color: transparent; background-color: transparent;
text-color: inherit; text-color: inherit;
size: 32px; size: 130px;
cursor: inherit; cursor: inherit;
} }
element-text { element-text {
font: "Fira Code SemiBold 8";
background-color: transparent; background-color: transparent;
text-color: inherit; text-color: inherit;
cursor: inherit; cursor: inherit;
vertical-align: 0.5; vertical-align: 0.5;
horizontal-align: 0.0; horizontal-align: 0.5;
} }
/*****----- Message -----*****/ /*****----- Message -----*****/

21
config/rofi/resolution/1080p/config-wallpaper.rasi

@ -3,7 +3,7 @@
/* ---- Configuration ---- */ /* ---- Configuration ---- */
configuration { configuration {
modi: "drun,run"; modi: "drun,run,filebrowser";
font: "Fira Code SemiBold 12"; font: "Fira Code SemiBold 12";
show-icons: true; show-icons: true;
display-drun: ""; display-drun: "";
@ -24,7 +24,7 @@ configuration {
/* ---- Window ---- */ /* ---- Window ---- */
window { window {
width: 800px; width: 700px;
/*height: 450px;*/ /*height: 450px;*/
x-offset: 0px; x-offset: 0px;
y-offset: 0px; y-offset: 0px;
@ -40,7 +40,8 @@ window {
enabled: true; enabled: true;
border-radius: 12px; border-radius: 12px;
border-radius: 12px; border-radius: 12px;
background-color: @background-color; background-color: transparent;
background-image: url("~/.config/rofi/.current_wallpaper", height);
} }
/* ---- Mainbox ---- */ /* ---- Mainbox ---- */
@ -48,10 +49,9 @@ mainbox {
enabled: true; enabled: true;
orientation: horizontal; orientation: horizontal;
padding: 8px; padding: 8px;
background-image: url("~/.config/rofi/.current_wallpaper", width);
children: [ "imagebox"]; children: [ "imagebox"];
border-radius: 12px; border-radius: 12px;
background-color: @background; background-color: transparent;
} }
/* ---- Imagebox ---- */ /* ---- Imagebox ---- */
@ -111,8 +111,8 @@ entry {
/* ---- Listview ---- */ /* ---- Listview ---- */
listview { listview {
enabled: true; enabled: true;
columns: 2; columns: 4;
lines: 8; lines: 3;
spacing: 4px; spacing: 4px;
dynamic: true; dynamic: true;
cycle: true; cycle: true;
@ -131,6 +131,7 @@ element {
padding: 5px; padding: 5px;
margin: 2px; margin: 2px;
cursor: pointer; cursor: pointer;
orientation: vertical;
background-color: transparent; background-color: transparent;
border-radius: 10px; border-radius: 10px;
border: 0px; border: 0px;
@ -184,16 +185,18 @@ element alternate.active {
element-icon { element-icon {
background-color: transparent; background-color: transparent;
text-color: inherit; text-color: inherit;
size: 32px; size: 130px;
cursor: inherit; cursor: inherit;
} }
element-text { element-text {
font: "Fira Code SemiBold 8";
background-color: transparent; background-color: transparent;
text-color: inherit; text-color: inherit;
cursor: inherit; cursor: inherit;
vertical-align: 0.5; vertical-align: 0.5;
horizontal-align: 0.0; horizontal-align: 0.5;
} }
/*****----- Message -----*****/ /*****----- Message -----*****/

21
config/rofi/resolution/1440p/config-wallpaper.rasi

@ -3,7 +3,7 @@
/* ---- Configuration ---- */ /* ---- Configuration ---- */
configuration { configuration {
modi: "drun,run"; modi: "drun,run,filebrowser";
font: "Fira Code SemiBold 14"; font: "Fira Code SemiBold 14";
show-icons: true; show-icons: true;
display-drun: ""; display-drun: "";
@ -24,7 +24,7 @@ configuration {
/* ---- Window ---- */ /* ---- Window ---- */
window { window {
width: 800px; width: 700px;
/*height: 450px;*/ /*height: 450px;*/
x-offset: 0px; x-offset: 0px;
y-offset: 0px; y-offset: 0px;
@ -40,7 +40,8 @@ window {
enabled: true; enabled: true;
border-radius: 12px; border-radius: 12px;
border-radius: 12px; border-radius: 12px;
background-color: @background-color; background-color: transparent;
background-image: url("~/.config/rofi/.current_wallpaper", height);
} }
/* ---- Mainbox ---- */ /* ---- Mainbox ---- */
@ -48,10 +49,9 @@ mainbox {
enabled: true; enabled: true;
orientation: horizontal; orientation: horizontal;
padding: 8px; padding: 8px;
background-image: url("~/.config/rofi/.current_wallpaper", width);
children: [ "imagebox"]; children: [ "imagebox"];
border-radius: 12px; border-radius: 12px;
background-color: @background; background-color: transparent;
} }
/* ---- Imagebox ---- */ /* ---- Imagebox ---- */
@ -111,8 +111,8 @@ entry {
/* ---- Listview ---- */ /* ---- Listview ---- */
listview { listview {
enabled: true; enabled: true;
columns: 2; columns: 4;
lines: 8; lines: 4;
spacing: 4px; spacing: 4px;
dynamic: true; dynamic: true;
cycle: true; cycle: true;
@ -131,6 +131,7 @@ element {
padding: 5px; padding: 5px;
margin: 2px; margin: 2px;
cursor: pointer; cursor: pointer;
orientation: vertical;
background-color: transparent; background-color: transparent;
border-radius: 10px; border-radius: 10px;
border: 0px; border: 0px;
@ -184,16 +185,18 @@ element alternate.active {
element-icon { element-icon {
background-color: transparent; background-color: transparent;
text-color: inherit; text-color: inherit;
size: 32px; size: 130px;
cursor: inherit; cursor: inherit;
} }
element-text { element-text {
font: "Fira Code SemiBold 10";
background-color: transparent; background-color: transparent;
text-color: inherit; text-color: inherit;
cursor: inherit; cursor: inherit;
vertical-align: 0.5; vertical-align: 0.5;
horizontal-align: 0.0; horizontal-align: 0.5;
} }
/*****----- Message -----*****/ /*****----- Message -----*****/

2
config/waybar/configs/[BOT] Default

@ -25,6 +25,8 @@
"memory", "memory",
"custom/separator#dot-line", "custom/separator#dot-line",
"custom/weather", "custom/weather",
"custom/separator#blank_3",
"custom/cava_mviz",
], ],
"modules-center": [ "modules-center": [

2
config/waybar/configs/[BOT] Default Laptop

@ -25,6 +25,8 @@
"memory", "memory",
"custom/separator#dot-line", "custom/separator#dot-line",
"custom/weather", "custom/weather",
"custom/separator#blank_3",
"custom/cava_mviz",
], ],
"modules-center": [ "modules-center": [

2
config/waybar/configs/[TOP] Default

@ -25,6 +25,8 @@
"memory", "memory",
"custom/separator#dot-line", "custom/separator#dot-line",
"custom/weather", "custom/weather",
"custom/separator#blank_3",
"custom/cava_mviz",
], ],
"modules-center": [ "modules-center": [

2
config/waybar/configs/[TOP] Default Laptop

@ -25,6 +25,8 @@
"memory", "memory",
"custom/separator#dot-line", "custom/separator#dot-line",
"custom/weather", "custom/weather",
"custom/separator#blank_3",
"custom/cava_mviz",
], ],
"modules-center": [ "modules-center": [

53
config/waybar/modules

@ -216,29 +216,6 @@
"on-click": "blueman-manager", "on-click": "blueman-manager",
}, },
"cava": {
//"cava_config": "$XDG_CONFIG_HOME/cava/cava.conf",
"framerate": 30,
"autosens": 1,
"sensitivity": 100,
"bars": 14,
"lower_cutoff_freq": 50,
"higher_cutoff_freq": 10000,
"method": "pulse",
"source": "auto",
"stereo": true,
"reverse": false,
"bar_delimiter": 0,
"monstercat": false,
"waves": false,
"noise_reduction": 0.77,
"input_delay": 2,
"format-icons" : ["▁", "▂", "▃", "▄", "▅", "▆", "▇", "█" ],
"actions": {
"on-click-right": "mode"
}
},
"clock": { "clock": {
"interval": 1, "interval": 1,
//"format": " {:%I:%M %p}", // AM PM format //"format": " {:%I:%M %p}", // AM PM format
@ -531,6 +508,12 @@
"on-click-right": "~/.config/hypr/scripts/WaybarLayout.sh", "on-click-right": "~/.config/hypr/scripts/WaybarLayout.sh",
}, },
// This is a custom cava visualizer
"custom/cava_mviz": {
"exec": "~/.config/hypr/scripts/WaybarCava.sh",
"format": "{}"
},
"custom/playerctl": { "custom/playerctl": {
"format": "<span>{}</span>", "format": "<span>{}</span>",
"return-type": "json", "return-type": "json",
@ -545,6 +528,15 @@
"smooth-scrolling-threshold": 1, "smooth-scrolling-threshold": 1,
}, },
"custom/power": {
"format": "⏻ ",
"exec": "echo ; echo 󰟡 power // blur",
"on-click": "~/.config/hypr/scripts/Wlogout.sh",
"on-click-right": "~/.config/hypr/scripts/ChangeBlur.sh",
"interval" : 86400, // once every day
"tooltip": true,
},
"custom/swaync": { "custom/swaync": {
"tooltip":true, "tooltip":true,
"format": "{icon} {}", "format": "{icon} {}",
@ -566,15 +558,6 @@
"escape": true, "escape": true,
}, },
"custom/power": {
"format": "⏻ ",
"exec": "echo ; echo 󰟡 power // blur",
"on-click": "~/.config/hypr/scripts/Wlogout.sh",
"on-click-right": "~/.config/hypr/scripts/ChangeBlur.sh",
"interval" : 86400, // once every day
"tooltip": true,
},
// NOTE:! This is only for Arch and Arch Based Distros // NOTE:! This is only for Arch and Arch Based Distros
"custom/updater":{ "custom/updater":{
"format": " {}", "format": " {}",
@ -628,6 +611,12 @@
"tooltip": false "tooltip": false
}, },
"custom/separator#blank_3": {
"format": " ",
"interval": "once",
"tooltip": false
},
// Modules below are for vertical layout // Modules below are for vertical layout
"backlight#vertical": { "backlight#vertical": {

4
config/waybar/style/Catppuccin-Latte.css

@ -48,7 +48,6 @@ window#waybar.hidden {
#backlight-slider, #backlight-slider,
#battery, #battery,
#bluetooth, #bluetooth,
#cava,
#clock, #clock,
#cpu, #cpu,
#disk, #disk,
@ -217,6 +216,9 @@ window#waybar.hidden {
animation: gradient_f 20s ease-in infinite; animation: gradient_f 20s ease-in infinite;
transition: all 0.3s cubic-bezier(.55,-0.68,.48,1.682); transition: all 0.3s cubic-bezier(.55,-0.68,.48,1.682);
} }
#custom-cava_mviz {
color: @pink;
}
#custom-menu { #custom-menu {
color: @rosewater; color: @rosewater;

5
config/waybar/style/Catppuccin-Mocha.css

@ -54,7 +54,6 @@ window#waybar.hidden {
#backlight-slider, #backlight-slider,
#battery, #battery,
#bluetooth, #bluetooth,
#cava,
#clock, #clock,
#cpu, #cpu,
#disk, #disk,
@ -221,6 +220,10 @@ window#waybar.hidden {
transition: all 0.3s cubic-bezier(.55,-0.68,.48,1.682); transition: all 0.3s cubic-bezier(.55,-0.68,.48,1.682);
} }
#custom-cava_mviz {
color: @pink;
}
#custom-menu { #custom-menu {
color: @rosewater; color: @rosewater;
} }

1
config/waybar/style/Crimson.css

@ -110,7 +110,6 @@ tooltip {
#backlight-slider, #backlight-slider,
#battery, #battery,
#bluetooth, #bluetooth,
#cava,
#clock, #clock,
#cpu, #cpu,
#disk, #disk,

2
config/waybar/style/Purpl.css

@ -120,7 +120,6 @@ tooltip {
#backlight-slider, #backlight-slider,
#battery, #battery,
#bluetooth, #bluetooth,
#cava,
#clock, #clock,
#cpu, #cpu,
#disk, #disk,
@ -139,6 +138,7 @@ tooltip {
#wireplumber, #wireplumber,
#workspaces, #workspaces,
#custom-backlight, #custom-backlight,
#custom-cava_mviz,
#custom-cycle_wall, #custom-cycle_wall,
#custom-keybinds, #custom-keybinds,
#custom-keyboard, #custom-keyboard,

2
config/waybar/style/Rose Pine.css

@ -101,7 +101,6 @@ tooltip {
#backlight-slider, #backlight-slider,
#battery, #battery,
#bluetooth, #bluetooth,
#cava,
#clock, #clock,
#cpu, #cpu,
#disk, #disk,
@ -129,6 +128,7 @@ tooltip {
#custom-swaync, #custom-swaync,
#custom-updater, #custom-updater,
#custom-swaync, #custom-swaync,
#custom-cava_mviz,
#custom-weather, #custom-weather,
#custom-weather.clearNight, #custom-weather.clearNight,
#custom-weather.cloudyFoggyDay, #custom-weather.cloudyFoggyDay,

2
config/waybar/style/Simple Pink.css

@ -124,7 +124,6 @@ tooltip {
#backlight-slider, #backlight-slider,
#battery, #battery,
#bluetooth, #bluetooth,
#cava,
#clock, #clock,
#cpu, #cpu,
#disk, #disk,
@ -144,6 +143,7 @@ tooltip {
#wireplumber, #wireplumber,
#workspaces, #workspaces,
#custom-backlight, #custom-backlight,
#custom-cava_mviz,
#custom-cycle_wall, #custom-cycle_wall,
#custom-keybinds, #custom-keybinds,
#custom-keyboard, #custom-keyboard,

1
config/waybar/style/[Black & White] Monochrome.css

@ -109,7 +109,6 @@ tooltip label{
#backlight-slider, #backlight-slider,
#battery, #battery,
#bluetooth, #bluetooth,
#cava,
#clock, #clock,
#cpu, #cpu,
#disk, #disk,

4
config/waybar/style/[Bordered Pywal] Chroma Fusion Edge.css

@ -51,7 +51,6 @@ window#waybar.empty #window {
#backlight-slider, #backlight-slider,
#battery, #battery,
#bluetooth, #bluetooth,
#cava,
#clock, #clock,
#cpu, #cpu,
#disk, #disk,
@ -150,6 +149,9 @@ window#waybar.empty #window {
color: @teal; color: @teal;
} }
#custom-cava_mviz{
color: @color2;
}
#workspaces { #workspaces {
margin: 1px 1px 1px 1px; margin: 1px 1px 1px 1px;
padding: 0px 1px; padding: 0px 1px;

1
config/waybar/style/[Colored] Chroma Glow.css

@ -97,7 +97,6 @@ tooltip label{
#backlight-slider, #backlight-slider,
#battery, #battery,
#bluetooth, #bluetooth,
#cava,
#clock, #clock,
#cpu, #cpu,
#disk, #disk,

1
config/waybar/style/[Colored] Translucent.css

@ -111,7 +111,6 @@ tooltip label{
#backlight-slider, #backlight-slider,
#battery, #battery,
#bluetooth, #bluetooth,
#cava,
#clock, #clock,
#cpu, #cpu,
#disk, #disk,

1
config/waybar/style/[Colorful] Aurora Blossom.css

@ -97,7 +97,6 @@ tooltip label{
#backlight-slider, #backlight-slider,
#battery, #battery,
#bluetooth, #bluetooth,
#cava,
#clock, #clock,
#cpu, #cpu,
#disk, #disk,

2
config/waybar/style/[Colorful] Aurora.css

@ -88,7 +88,6 @@ tooltip label{
#backlight-slider, #backlight-slider,
#battery, #battery,
#bluetooth, #bluetooth,
#cava,
#clock, #clock,
#cpu, #cpu,
#disk, #disk,
@ -107,6 +106,7 @@ tooltip label{
#wireplumber, #wireplumber,
#workspaces, #workspaces,
#custom-backlight, #custom-backlight,
#custom-cava_mviz,
#custom-cycle_wall, #custom-cycle_wall,
#custom-keybinds, #custom-keybinds,
#custom-keyboard, #custom-keyboard,

5
config/waybar/style/[Colorful] Rainbow Spectrum.css

@ -52,7 +52,6 @@ tooltip label{
#backlight-slider, #backlight-slider,
#battery, #battery,
#bluetooth, #bluetooth,
#cava,
#clock, #clock,
#cpu, #cpu,
#disk, #disk,
@ -138,6 +137,10 @@ tooltip label{
background-color: #a6e3a1; background-color: #a6e3a1;
} }
#mpris {
background-color: #fab387;
color: black;
}
#custom-keyboard, #custom-keyboard,
#keyboard-state, #keyboard-state,
#keyboard-state label, #keyboard-state label,

2
config/waybar/style/[Dark] Golden Noir.css

@ -123,7 +123,6 @@ tooltip {
#backlight-slider, #backlight-slider,
#battery, #battery,
#bluetooth, #bluetooth,
#cava,
#clock, #clock,
#cpu, #cpu,
#disk, #disk,
@ -142,6 +141,7 @@ tooltip {
#wireplumber, #wireplumber,
#workspaces, #workspaces,
#custom-backlight, #custom-backlight,
#custom-cava_mviz,
#custom-cycle_wall, #custom-cycle_wall,
#custom-keybinds, #custom-keybinds,
#custom-keyboard, #custom-keyboard,

2
config/waybar/style/[Dark] Obsidian Edge.css

@ -116,7 +116,6 @@ tooltip label {
#backlight-slider, #backlight-slider,
#battery, #battery,
#bluetooth, #bluetooth,
#cava,
#clock, #clock,
#cpu, #cpu,
#disk, #disk,
@ -135,6 +134,7 @@ tooltip label {
#wireplumber, #wireplumber,
#workspaces, #workspaces,
#custom-backlight, #custom-backlight,
#custom-cava_mviz,
#custom-cycle_wall, #custom-cycle_wall,
#custom-keybinds, #custom-keybinds,
#custom-keyboard, #custom-keyboard,

1
config/waybar/style/[Light] Monochrome Contrast.css

@ -110,7 +110,6 @@ tooltip label{
#backlight-slider, #backlight-slider,
#battery, #battery,
#bluetooth, #bluetooth,
#cava,
#clock, #clock,
#cpu, #cpu,
#disk, #disk,

2
config/waybar/style/[Light] Obsidian Glow.css

@ -85,7 +85,6 @@ tooltip label {
#backlight-slider, #backlight-slider,
#battery, #battery,
#bluetooth, #bluetooth,
#cava,
#clock, #clock,
#cpu, #cpu,
#disk, #disk,
@ -104,6 +103,7 @@ tooltip label {
#wireplumber, #wireplumber,
#workspaces, #workspaces,
#custom-backlight, #custom-backlight,
#custom-cava_mviz,
#custom-cycle_wall, #custom-cycle_wall,
#custom-keybinds, #custom-keybinds,
#custom-keyboard, #custom-keyboard,

1
config/waybar/style/[Pywal] Chroma Edge.css

@ -90,7 +90,6 @@ tooltip label{
#backlight-slider, #backlight-slider,
#battery, #battery,
#bluetooth, #bluetooth,
#cava,
#clock, #clock,
#cpu, #cpu,
#disk, #disk,

5
config/waybar/style/[Pywal] Chroma Fusion.css

@ -50,7 +50,6 @@ window#waybar.empty #window {
#backlight-slider, #backlight-slider,
#battery, #battery,
#bluetooth, #bluetooth,
#cava,
#clock, #clock,
#cpu, #cpu,
#disk, #disk,
@ -143,6 +142,10 @@ window#waybar.empty #window {
color: @lavender; color: @lavender;
} }
#custom-cava_mviz {
color: @color2;
}
#custom-lock, #custom-lock,
#idle_inhibitor { #idle_inhibitor {
color: @teal; color: @teal;

5
config/waybar/style/[Pywal] Chroma Tally.css

@ -55,7 +55,6 @@ window#waybar {
#backlight-slider, #backlight-slider,
#battery, #battery,
#bluetooth, #bluetooth,
#cava,
#clock, #clock,
#cpu, #cpu,
#disk, #disk,
@ -206,6 +205,10 @@ window#waybar {
color:#d08770; color:#d08770;
} }
#custom-cava_mviz{
color: @color2;
}
#custom-weather{ #custom-weather{
color:#d08770; color:#d08770;
} }

6
config/waybar/style/[Pywal] Colored.css

@ -117,7 +117,6 @@ tooltip {
#backlight-slider, #backlight-slider,
#battery, #battery,
#bluetooth, #bluetooth,
#cava,
#clock, #clock,
#cpu, #cpu,
#disk, #disk,
@ -136,6 +135,7 @@ tooltip {
#wireplumber, #wireplumber,
#workspaces, #workspaces,
#custom-backlight, #custom-backlight,
#custom-cava_mviz,
#custom-cycle_wall, #custom-cycle_wall,
#custom-keybinds, #custom-keybinds,
#custom-keyboard, #custom-keyboard,
@ -237,3 +237,7 @@ tooltip {
min-width: 10px; min-width: 10px;
border-radius: 5px; border-radius: 5px;
} }
#custom-cava_mviz {
padding-right: 10px;
}

2
config/waybar/style/[Pywal] Simple.css

@ -104,7 +104,6 @@ tooltip {
#backlight-slider, #backlight-slider,
#battery, #battery,
#bluetooth, #bluetooth,
#cava,
#clock, #clock,
#cpu, #cpu,
#disk, #disk,
@ -124,6 +123,7 @@ tooltip {
#wireplumber, #wireplumber,
#workspaces, #workspaces,
#custom-backlight, #custom-backlight,
#custom-cava_mviz,
#custom-cycle_wall, #custom-cycle_wall,
#custom-keybinds, #custom-keybinds,
#custom-keyboard, #custom-keyboard,

1
config/waybar/style/[Retro] Simple Style.css

@ -47,7 +47,6 @@ window#waybar {
#backlight-slider, #backlight-slider,
#battery, #battery,
#bluetooth, #bluetooth,
#cava,
#clock, #clock,
#cpu, #cpu,
#disk, #disk,

1
config/waybar/style/[Transparent] Crystal Clear.css

@ -97,7 +97,6 @@ tooltip {
#backlight, #backlight,
#battery, #battery,
#bluetooth, #bluetooth,
#cava,
#clock, #clock,
#cpu, #cpu,
#disk, #disk,

2
config/wlogout/layout

@ -30,7 +30,7 @@
} }
{ {
"label" : "hibernate", "label" : "hibernate",
"action" : "systemctl hibernate", "action" : "swaylock -f && systemctl hibernate",
"text" : "Hibernate", "text" : "Hibernate",
"keybind" : "h" "keybind" : "h"
} }

61
copy.sh

@ -50,25 +50,17 @@ if hostnamectl | grep -q 'Chassis: vm'; then
sed -i '/monitor = Virtual-1, 1920x1080@60,auto,1/s/^#//' config/hypr/UserConfigs/Monitors.conf sed -i '/monitor = Virtual-1, 1920x1080@60,auto,1/s/^#//' config/hypr/UserConfigs/Monitors.conf
fi fi
# Preparing hyprland.conf to check for current keyboard layout # Function to detect keyboard layout using localectl or setxkbmap
# Function to detect keyboard layout in an X server environment detect_layout() {
detect_x_layout() { if command -v localectl >/dev/null 2>&1; then
if command -v setxkbmap >/dev/null 2>&1; then layout=$(localectl status --no-pager | awk '/X11 Layout/ {print $3}')
layout=$(setxkbmap -query | grep layout | awk '{print $2}')
if [ -n "$layout" ]; then if [ -n "$layout" ]; then
echo "$layout" echo "$layout"
else else
echo "unknown" echo "unknown"
fi fi
else elif command -v setxkbmap >/dev/null 2>&1; then
echo "unknown" layout=$(setxkbmap -query | grep layout | awk '{print $2}')
fi
}
# Function to detect keyboard layout in a tty environment
detect_tty_layout() {
if command -v localectl >/dev/null 2>&1; then
layout=$(localectl status --no-pager | awk '/X11 Layout/ {print $3}')
if [ -n "$layout" ]; then if [ -n "$layout" ]; then
echo "$layout" echo "$layout"
else else
@ -79,22 +71,14 @@ detect_tty_layout() {
fi fi
} }
# Detect the current keyboard layout based on the environment # Detect the current keyboard layout
if [ -n "$DISPLAY" ]; then layout=$(detect_layout)
# System is in an X server environment
layout=$(detect_x_layout)
else
# System is in a tty environment
layout=$(detect_tty_layout)
fi
echo "Keyboard layout: $layout"
printf "${NOTE} Detecting keyboard layout to prepare necessary changes in hyprland.conf before copying\n\n" printf "${NOTE} Detecting keyboard layout to prepare necessary changes in hyprland.conf before copying\n\n"
# Prompt the user to confirm whether the detected layout is correct # Prompt the user to confirm whether the detected layout is correct
while true; do while true; do
read -p "$ORANGE Detected keyboard layout or keymap: $layout. Is this correct? [y/n] " confirm read -p "$ORANGE Detected current keyboard layout is: $layout. Is this correct? [y/n] " confirm
case $confirm in case $confirm in
[yY]) [yY])
@ -202,6 +186,18 @@ chmod +x ~/.config/hypr/scripts/* 2>&1 | tee -a "$LOG"
chmod +x ~/.config/hypr/UserScripts/* 2>&1 | tee -a "$LOG" chmod +x ~/.config/hypr/UserScripts/* 2>&1 | tee -a "$LOG"
# Set executable for initial-boot.sh # Set executable for initial-boot.sh
chmod +x ~/.config/hypr/initial-boot.sh 2>&1 | tee -a "$LOG" chmod +x ~/.config/hypr/initial-boot.sh 2>&1 | tee -a "$LOG"
printf "\n%.0s" {1..3}
# Detect machine type and set Waybar configurations accordingly, logging the output
if hostnamectl | grep -q 'Chassis: desktop'; then
# Configurations for a desktop
ln -sf "$HOME/.config/waybar/configs/[TOP] Default" "$HOME/.config/waybar/config" 2>&1 | tee -a "$LOG"
rm -r "$HOME/.config/waybar/configs/[TOP] Default Laptop" "$HOME/.config/waybar/configs/[BOT] Default Laptop" 2>&1 | tee -a "$LOG"
else
# Configurations for a laptop or any system other than desktop
ln -sf "$HOME/.config/waybar/configs/[TOP] Default Laptop" "$HOME/.config/waybar/config" 2>&1 | tee -a "$LOG"
rm -r "$HOME/.config/waybar/configs/[TOP] Default" "$HOME/.config/waybar/configs/[BOT] Default" 2>&1 | tee -a "$LOG"
fi
printf "\n%.0s" {1..3} printf "\n%.0s" {1..3}
@ -238,20 +234,6 @@ while true; do
esac esac
done done
printf "\n%.0s" {1..3}
# Detect machine type and set Waybar configurations accordingly, logging the output
if hostnamectl | grep -q 'Chassis: desktop'; then
# Configurations for a desktop
ln -sf "$HOME/.config/waybar/configs/[TOP] Default" "$HOME/.config/waybar/config" 2>&1 | tee -a "$LOG"
rm -r "$HOME/.config/waybar/configs/[TOP] Default Laptop" "$HOME/.config/waybar/configs/[BOT] Default Laptop" 2>&1 | tee -a "$LOG"
else
# Configurations for a laptop or any system other than desktop
ln -sf "$HOME/.config/waybar/configs/[TOP] Default Laptop" "$HOME/.config/waybar/config" 2>&1 | tee -a "$LOG"
rm -r "$HOME/.config/waybar/configs/[TOP] Default" "$HOME/.config/waybar/configs/[BOT] Default" 2>&1 | tee -a "$LOG"
fi
# symlinks for waybar style # symlinks for waybar style
ln -sf "$Waybar_Style" "$HOME/.config/waybar/style.css" && \ ln -sf "$Waybar_Style" "$HOME/.config/waybar/style.css" && \
@ -261,6 +243,7 @@ wal -i $wallpaper -s -t 2>&1 | tee -a "$LOG"
#initial symlink for Pywal Dark and Light for Rofi Themes #initial symlink for Pywal Dark and Light for Rofi Themes
ln -sf "$HOME/.cache/wal/colors-rofi-dark.rasi" "$HOME/.config/rofi/pywal-color/pywal-theme.rasi" ln -sf "$HOME/.cache/wal/colors-rofi-dark.rasi" "$HOME/.config/rofi/pywal-color/pywal-theme.rasi"
printf "\n%.0s" {1..2} printf "\n%.0s" {1..2}
printf "\n${OK} Copy Completed!\n\n\n" printf "\n${OK} Copy Completed!\n\n\n"
printf "${ORANGE} ATTENTION!!!! \n" printf "${ORANGE} ATTENTION!!!! \n"

Loading…
Cancel
Save