diff --git a/config/hypr/UserConfigs/00-Readme b/config/hypr/UserConfigs/00-Readme index 315e337..481eeac 100644 --- a/config/hypr/UserConfigs/00-Readme +++ b/config/hypr/UserConfigs/00-Readme @@ -1,9 +1,16 @@ +www.github.com/JaKooLit + 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. 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 diff --git a/config/hypr/UserConfigs/Laptops.conf b/config/hypr/UserConfigs/Laptops.conf index 14413ce..20a6c6f 100644 --- a/config/hypr/UserConfigs/Laptops.conf +++ b/config/hypr/UserConfigs/Laptops.conf @@ -3,10 +3,9 @@ # See https://wiki.hyprland.org/Configuring/Keywords/ for more variable settings # These configs are mostly for laptops. This is addemdum to Keybinds.conf -$configs = $HOME/.config/hypr/configs -$UserConfigs = $HOME/.config/hypr/UserConfigs $mainMod = SUPER $scriptsDir = $HOME/.config/hypr/scripts +$UserConfigs = $HOME/.config/hypr/UserConfigs bind = , xf86KbdBrightnessDown, exec, $scriptsDir/BrightnessKbd.sh --dec #Keyboard brightness Down bind = , xf86KbdBrightnessUp, exec, $scriptsDir/BrightnessKbd.sh --inc #Keyboard brightness up diff --git a/config/hypr/UserConfigs/Monitors.conf b/config/hypr/UserConfigs/Monitors.conf index ca2ef0e..3e758c0 100644 --- a/config/hypr/UserConfigs/Monitors.conf +++ b/config/hypr/UserConfigs/Monitors.conf @@ -15,7 +15,7 @@ monitor=,preferred,auto,1 #monitor = eDP-1, preferred, auto, 1 #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 = HDMI-A-1, preferred,auto,1 diff --git a/config/hypr/UserConfigs/Startup_Apps.conf b/config/hypr/UserConfigs/Startup_Apps.conf index 2aacba4..d8385f0 100644 --- a/config/hypr/UserConfigs/Startup_Apps.conf +++ b/config/hypr/UserConfigs/Startup_Apps.conf @@ -2,15 +2,15 @@ #Commands & Apps to be executed at launch $scriptsDir = $HOME/.config/hypr/scripts -$UserscriptsDir = $HOME/.config/hypr/UserScripts -$lock = $scriptsDir/LockScreen.sh -$SwwwRandom = $scriptsDir/WallpaperRandom.sh -$WallpaperPath = $HOME/Pictures/wallpapers +$UserScripts = $HOME/.config/hypr/UserScripts +$wallDIR=$HOME/Pictures/wallpapers +$lock = $scriptsDir/LockScreen.sh +$SwwwRandom = $UserscriptsDir/WallpaperAutoChange.sh # wallpaper stuff / More wallpaper options below 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 exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP diff --git a/config/hypr/UserScripts/00-Readme b/config/hypr/UserScripts/00-Readme old mode 100644 new mode 100755 diff --git a/config/hypr/scripts/QuickEdit.sh b/config/hypr/UserScripts/QuickEdit.sh similarity index 53% rename from config/hypr/scripts/QuickEdit.sh rename to config/hypr/UserScripts/QuickEdit.sh index 9c7cdff..163101e 100755 --- a/config/hypr/scripts/QuickEdit.sh +++ b/config/hypr/UserScripts/QuickEdit.sh @@ -1,7 +1,8 @@ #!/bin/bash +# Rofi menu for Quick Edit / View of Settings (SUPER E) -defaultDir="$HOME/.config/hypr/configs" -userDir="$HOME/.config/hypr/UserConfigs" +configs="$HOME/.config/hypr/configs" +UserConfigs="$HOME/.config/hypr/UserConfigs" menu(){ printf "1. view Env-variables\n" @@ -19,31 +20,31 @@ main() { choice=$(menu | rofi -dmenu -config ~/.config/rofi/config-compact.rasi | cut -d. -f1) case $choice in 1) - kitty -e nano "$userDir/ENVariables.conf" + kitty -e nano "$UserConfigs/ENVariables.conf" ;; 2) - kitty -e nano "$userDir/WindowRules.conf" + kitty -e nano "$UserConfigs/WindowRules.conf" ;; 3) - kitty -e nano "$userDir/Startup_Apps.conf" + kitty -e nano "$UserConfigs/Startup_Apps.conf" ;; 4) - kitty -e nano "$userDir/UserKeybinds.conf" + kitty -e nano "$UserConfigs/UserKeybinds.conf" ;; 5) - kitty -e nano "$userDir/Monitors.conf" + kitty -e nano "$UserConfigs/Monitors.conf" ;; 6) - kitty -e nano "$userDir/Laptops.conf" + kitty -e nano "$UserConfigs/Laptops.conf" ;; 7) - kitty -e nano "$userDir/UserSettings.conf" + kitty -e nano "$UserConfigs/UserSettings.conf" ;; 8) - kitty -e nano "$defaultDir/Settings.conf" + kitty -e nano "$configs/Settings.conf" ;; 9) - kitty -e nano "$defaultDir/Keybinds.conf" + kitty -e nano "$configs/Keybinds.conf" ;; *) ;; diff --git a/config/hypr/scripts/RofiBeats.sh b/config/hypr/UserScripts/RofiBeats.sh similarity index 100% rename from config/hypr/scripts/RofiBeats.sh rename to config/hypr/UserScripts/RofiBeats.sh diff --git a/config/hypr/UserScripts/Sunset.sh b/config/hypr/UserScripts/Sunset.sh index 96c27c5..50e386d 100755 --- a/config/hypr/UserScripts/Sunset.sh +++ b/config/hypr/UserScripts/Sunset.sh @@ -1,2 +1,7 @@ #!/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 \ No newline at end of file diff --git a/config/hypr/scripts/WallpaperRandom.sh b/config/hypr/UserScripts/WallpaperAutoChange.sh similarity index 82% rename from config/hypr/scripts/WallpaperRandom.sh rename to config/hypr/UserScripts/WallpaperAutoChange.sh index 13bd299..56f2ee0 100755 --- a/config/hypr/scripts/WallpaperRandom.sh +++ b/config/hypr/UserScripts/WallpaperAutoChange.sh @@ -1,4 +1,6 @@ #!/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 # up as the wallpaper at regular intervals diff --git a/config/hypr/UserScripts/WallpaperRandom.sh b/config/hypr/UserScripts/WallpaperRandom.sh new file mode 100755 index 0000000..f8cc54f --- /dev/null +++ b/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 + diff --git a/config/hypr/scripts/WallpaperSelect.sh b/config/hypr/UserScripts/WallpaperSelect.sh similarity index 73% rename from config/hypr/scripts/WallpaperSelect.sh rename to config/hypr/UserScripts/WallpaperSelect.sh index 691b8fd..663fb54 100755 --- a/config/hypr/scripts/WallpaperSelect.sh +++ b/config/hypr/UserScripts/WallpaperSelect.sh @@ -1,9 +1,11 @@ #!/bin/bash +## /* ---- ๐Ÿ’ซ https://github.com/JaKooLit ๐Ÿ’ซ ---- */ ## +# This script for selecting wallpapers (SUPER W) SCRIPTSDIR="$HOME/.config/hypr/scripts" # WALLPAPERS PATH -DIR="$HOME/Pictures/wallpapers" +wallDIR="$HOME/Pictures/wallpapers" # Transition config FPS=30 @@ -18,18 +20,18 @@ if pidof swaybg > /dev/null; then fi # 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_NAME="${#PICS[@]}. random" # Rofi command -rofi_command="rofi -dmenu -config ~/.config/rofi/config-wallpaper.rasi" +rofi_command="rofi -show -dmenu -config ~/.config/rofi/config-wallpaper.rasi" menu() { for i in "${!PICS[@]}"; do # Displaying .gif to indicate animated images 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 printf "${PICS[$i]}\n" fi @@ -50,7 +52,7 @@ main() { # Random choice case if [ "$choice" = "$RANDOM_PIC_NAME" ]; then - swww img "${DIR}/${RANDOM_PIC}" $SWWW_PARAMS + swww img "${wallDIR}/${RANDOM_PIC}" $SWWW_PARAMS exit 0 fi @@ -65,7 +67,7 @@ main() { done if [[ $pic_index -ne -1 ]]; then - swww img "${DIR}/${PICS[$pic_index]}" $SWWW_PARAMS + swww img "${wallDIR}/${PICS[$pic_index]}" $SWWW_PARAMS else echo "Image not found." exit 1 diff --git a/config/hypr/configs/Keybinds.conf b/config/hypr/configs/Keybinds.conf index 84b78cf..1da7e9f 100644 --- a/config/hypr/configs/Keybinds.conf +++ b/config/hypr/configs/Keybinds.conf @@ -1,34 +1,40 @@ ## /* ---- ๐Ÿ’ซ https://github.com/JaKooLit ๐Ÿ’ซ ---- */ ## # Default Keybinds +# visit https://wiki.hyprland.org/Configuring/Binds/ for more info $mainMod = SUPER +# Default $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 = $mainMod, Q, killactive, +bind = $mainMod, F, fullscreen bind = $mainMod SHIFT, Q, closewindow, bind = $mainMod SHIFT, F, togglefloating, 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, P, exec, $scriptsDir/Wlogout.sh # 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 CTRL, S, exec, $scriptsDir/RofiBeats.sh # online music 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, G, exec, $scriptsDir/GameMode.sh # animations ON/OFF 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 SHIFT, N, exec, swaync-client -t -sw # swayNC panel -# Wallpaper related keybinds -bind = $mainMod, W, exec, $scriptsDir/WallpaperSelect.sh # Select wallpaper to apply -bind = CTRL ALT, W, exec, $scriptsDir/Wallpaper.sh # Random wallpapers +# FEATURES / EXTRAS (UserScripts) +bind = $mainMod, E, exec, $UserScripts/QuickEdit.sh # Quick Edit Hyprland Settings +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 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, P, pseudo, # dwindle bind = $mainMod CTRL, Return, layoutmsg, swapwithmaster -bind = $mainMod SHIFT, M, exec, hyprctl dispatch splitratio -0.3 # group bind = $mainMod, G, togglegroup diff --git a/config/hypr/hyprland.conf b/config/hypr/hyprland.conf index 24c0be6..69f421c 100644 --- a/config/hypr/hyprland.conf +++ b/config/hypr/hyprland.conf @@ -11,12 +11,9 @@ $UserConfigs = $HOME/.config/hypr/UserConfigs source= $UserConfigs/Startup_Apps.conf source= $UserConfigs/ENVariables.conf -source= $UserConfigs/UserKeybinds.conf -source= $UserConfigs/UserSettings.conf source= $UserConfigs/Monitors.conf source= $UserConfigs/Laptops.conf source= $UserConfigs/LaptopDisplay.conf source= $UserConfigs/WindowRules.conf - - - +source= $UserConfigs/UserKeybinds.conf +source= $UserConfigs/UserSettings.conf \ No newline at end of file diff --git a/config/hypr/scripts/AirplaneMode.sh b/config/hypr/scripts/AirplaneMode.sh index f3a5062..1176c80 100755 --- a/config/hypr/scripts/AirplaneMode.sh +++ b/config/hypr/scripts/AirplaneMode.sh @@ -1,4 +1,6 @@ #!/bin/bash +## /* ---- ๐Ÿ’ซ 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 14c03da..04987ab 100755 --- a/config/hypr/scripts/Brightness.sh +++ b/config/hypr/scripts/Brightness.sh @@ -1,4 +1,6 @@ #!/bin/bash +## /* ---- ๐Ÿ’ซ https://github.com/JaKooLit ๐Ÿ’ซ ---- */ ## +# Script for Monitor backlights (if supported) using brightnessctl iDIR="$HOME/.config/swaync/icons" notification_timeout=1000 diff --git a/config/hypr/scripts/BrightnessKbd.sh b/config/hypr/scripts/BrightnessKbd.sh index 3bdcebc..f96c6e0 100755 --- a/config/hypr/scripts/BrightnessKbd.sh +++ b/config/hypr/scripts/BrightnessKbd.sh @@ -1,4 +1,6 @@ #!/bin/bash +## /* ---- ๐Ÿ’ซ 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 95789f5..8ad0dd4 100755 --- a/config/hypr/scripts/ChangeBlur.sh +++ b/config/hypr/scripts/ChangeBlur.sh @@ -1,4 +1,6 @@ #!/bin/bash +## /* ---- ๐Ÿ’ซ 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 93bc2fe..5981024 100755 --- a/config/hypr/scripts/ChangeLayout.sh +++ b/config/hypr/scripts/ChangeLayout.sh @@ -1,4 +1,6 @@ #!/bin/bash +## /* ---- ๐Ÿ’ซ 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 eb717ea..ee6b512 100755 --- a/config/hypr/scripts/ClipManager.sh +++ b/config/hypr/scripts/ClipManager.sh @@ -1,6 +1,6 @@ #!/bin/bash -# -# Clipboard Manager +## /* ---- ๐Ÿ’ซ https://github.com/JaKooLit ๐Ÿ’ซ ---- */ ## +# Clipboard Manager. This needed cliphist & wl-copy and of course rofi if [[ ! $(pidof rofi) ]]; then cliphist list | rofi -dmenu -config ~/.config/rofi/config-long.rasi | cliphist decode | wl-copy diff --git a/config/hypr/scripts/DarkLight.sh b/config/hypr/scripts/DarkLight.sh index ec8c447..dab6e81 100755 --- a/config/hypr/scripts/DarkLight.sh +++ b/config/hypr/scripts/DarkLight.sh @@ -1,5 +1,8 @@ #!/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 wallpaper_base_path="$HOME/Pictures/wallpapers/Dynamic-Wallpapers" dark_wallpapers="$wallpaper_base_path/Dark" diff --git a/config/hypr/scripts/GameMode.sh b/config/hypr/scripts/GameMode.sh index d53ec7d..f05676e 100755 --- a/config/hypr/scripts/GameMode.sh +++ b/config/hypr/scripts/GameMode.sh @@ -1,4 +1,6 @@ #!/bin/bash +## /* ---- ๐Ÿ’ซ https://github.com/JaKooLit ๐Ÿ’ซ ---- */ ## +# Game Mode. Turning off all animations notif="$HOME/.config/swaync/images/bell.png" SCRIPTSDIR="$HOME/.config/hypr/scripts" diff --git a/config/hypr/scripts/KeyHints.sh b/config/hypr/scripts/KeyHints.sh index 180befa..5b79cf0 100755 --- a/config/hypr/scripts/KeyHints.sh +++ b/config/hypr/scripts/KeyHints.sh @@ -1,4 +1,6 @@ #!/bin/bash +## /* ---- ๐Ÿ’ซ https://github.com/JaKooLit ๐Ÿ’ซ ---- */ ## +# Keyhints. Idea got from Garuda Hyprland # Detect monitor resolution and scale 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)" \ "๏…ผ Shift Q " "closes a specified window" "(window)" \ "๏…ผ Alt V" "Clipboard Manager" "(cliphist)" \ -"๏…ผ W" "Choose wallpaper" "(swww)" \ -"CTRL ALT W" "Random wallpaper" "(swww)" \ +"๏…ผ W" "Choose wallpaper" "(Wallpaper Menu)" \ +"CTRL ALT W" "Random wallpaper" "(via swww)" \ "๏…ผ B" "Hide/UnHide Waybar" "waybar" \ "๏…ผ CTRL B" "Choose waybar styles" "(waybar styles)" \ "๏…ผ 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 Del" "Hyprland Exit" "(SAVE YOUR WORK!!!)" \ "๏…ผ 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" \ "๏…ผ ALT F" "Toggle all windows to float" "all windows" \ "๏…ผ 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" "" \ "๏…ผ E" "View or EDIT Keybinds, Settings, Monitor" "" \ "" "" "" \ diff --git a/config/hypr/scripts/LockScreen.sh b/config/hypr/scripts/LockScreen.sh index 538b6ef..1e67678 100755 --- a/config/hypr/scripts/LockScreen.sh +++ b/config/hypr/scripts/LockScreen.sh @@ -1,4 +1,6 @@ #!/bin/bash +## /* ---- ๐Ÿ’ซ https://github.com/JaKooLit ๐Ÿ’ซ ---- */ ## +# For Swaylock CONFIG="$HOME/.config/swaylock/config" diff --git a/config/hypr/scripts/MediaCtrl.sh b/config/hypr/scripts/MediaCtrl.sh index 9d97044..d9855e4 100755 --- a/config/hypr/scripts/MediaCtrl.sh +++ b/config/hypr/scripts/MediaCtrl.sh @@ -1,4 +1,6 @@ #!/bin/bash +## /* ---- ๐Ÿ’ซ 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 ef5e74f..048c1b0 100755 --- a/config/hypr/scripts/Polkit-NixOS.sh +++ b/config/hypr/scripts/Polkit-NixOS.sh @@ -1,4 +1,6 @@ #!/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 polkit_gnome_paths=$(find /nix/store -name 'polkit-gnome-authentication-agent-1' -type f 2>/dev/null) diff --git a/config/hypr/scripts/Polkit.sh b/config/hypr/scripts/Polkit.sh index 031c74d..07b1211 100755 --- a/config/hypr/scripts/Polkit.sh +++ b/config/hypr/scripts/Polkit.sh @@ -1,4 +1,6 @@ #!/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=( diff --git a/config/hypr/scripts/PortalHyprland.sh b/config/hypr/scripts/PortalHyprland.sh index 70a994e..389ec73 100755 --- a/config/hypr/scripts/PortalHyprland.sh +++ b/config/hypr/scripts/PortalHyprland.sh @@ -1,4 +1,7 @@ #!/bin/bash +## /* ---- ๐Ÿ’ซ https://github.com/JaKooLit ๐Ÿ’ซ ---- */ ## +# For manually starting xdg-desktop-portal + sleep 1 killall xdg-desktop-portal-hyprland killall xdg-desktop-portal-wlr diff --git a/config/hypr/scripts/PywalSwww.sh b/config/hypr/scripts/PywalSwww.sh index d91d3f6..0cbadaf 100755 --- a/config/hypr/scripts/PywalSwww.sh +++ b/config/hypr/scripts/PywalSwww.sh @@ -1,4 +1,6 @@ #!/bin/bash +## /* ---- ๐Ÿ’ซ https://github.com/JaKooLit ๐Ÿ’ซ ---- */ ## +# Pywal Colors for current wallpaper # Define the path to the swww cache directory cache_dir="$HOME/.cache/swww/" diff --git a/config/hypr/scripts/Refresh.sh b/config/hypr/scripts/Refresh.sh index b5e0f55..a585eb8 100755 --- a/config/hypr/scripts/Refresh.sh +++ b/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 -UserSCRIPTSDIR=$HOME/.config/hypr/UserScripts +UserScripts=$HOME/.config/hypr/UserScripts # Define file_exists function file_exists() { @@ -30,8 +32,8 @@ swaync > /dev/null 2>&1 & # Relaunching rainbow borders if the script exists sleep 1 -if file_exists "${UserSCRIPTSDIR}/RainbowBorders.sh"; then - ${UserSCRIPTSDIR}/RainbowBorders.sh & +if file_exists "${UserScripts}/RainbowBorders.sh"; then + ${UserScripts}/RainbowBorders.sh & fi # for cava-pywal (note, need to manually restart cava once wallpaper changes) diff --git a/config/hypr/scripts/RefreshNoWaybar.sh b/config/hypr/scripts/RefreshNoWaybar.sh index be06167..f0c3d56 100755 --- a/config/hypr/scripts/RefreshNoWaybar.sh +++ b/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 # 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 -UserSCRIPTSDIR=$HOME/.config/hypr/UserScripts +UserScripts=$HOME/.config/hypr/UserScripts # Define file_exists function file_exists() { @@ -29,8 +30,8 @@ ${SCRIPTSDIR}/PywalSwww.sh & # Relaunching rainbow borders if the script exists sleep 1 -if file_exists "${UserSCRIPTSDIR}/RainbowBorders.sh"; then - ${UserSCRIPTSDIR}/RainbowBorders.sh & +if file_exists "${UserScripts}/RainbowBorders.sh"; then + ${UserScripts}/RainbowBorders.sh & fi # for cava-pywal (note, need to manually restart cava once wallpaper changes) diff --git a/config/hypr/scripts/RofiEmoji.sh b/config/hypr/scripts/RofiEmoji.sh index 6667cc5..4182a5a 100755 --- a/config/hypr/scripts/RofiEmoji.sh +++ b/config/hypr/scripts/RofiEmoji.sh @@ -1,11 +1,12 @@ #!/bin/bash +## /* ---- ๐Ÿ’ซ https://github.com/JaKooLit ๐Ÿ’ซ ---- */ ## +# Rofi Emoticons. Not my own. Cant remember the source sed '1,/^### DATA ###$/d' $0 | rofi -dmenu -config ~/.config/rofi/config-long.rasi| cut -d ' ' -f 1 | tr -d '\n' | wl-copy exit - ### DATA ### ๐Ÿ˜€ grinning face face smile happy joy :D grin ๐Ÿ˜ƒ grinning face with big eyes face happy joy haha :D :) smile funny diff --git a/config/hypr/scripts/ScreenShot.sh b/config/hypr/scripts/ScreenShot.sh index 1d5eeac..ddf4398 100755 --- a/config/hypr/scripts/ScreenShot.sh +++ b/config/hypr/scripts/ScreenShot.sh @@ -1,4 +1,6 @@ #!/bin/bash +## /* ---- ๐Ÿ’ซ https://github.com/JaKooLit ๐Ÿ’ซ ---- */ ## +# Screenshots scripts iDIR="$HOME/.config/swaync/icons" notify_cmd_shot="notify-send -h string:x-canonical-private-synchronous:shot-notify -u low -i ${iDIR}/picture.png" diff --git a/config/hypr/scripts/SwitchKeyboardLayout.sh b/config/hypr/scripts/SwitchKeyboardLayout.sh index a53a567..90451c6 100755 --- a/config/hypr/scripts/SwitchKeyboardLayout.sh +++ b/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" settings_file="$HOME/.config/hypr/UserConfigs/UserSettings.conf" diff --git a/config/hypr/scripts/TouchPad.sh b/config/hypr/scripts/TouchPad.sh index 1fcb324..47ad48f 100755 --- a/config/hypr/scripts/TouchPad.sh +++ b/config/hypr/scripts/TouchPad.sh @@ -1,6 +1,8 @@ #!/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" XDG_RUNTIME_DIR=${XDG_RUNTIME_DIR:-/run/user/$(id -u)} @@ -16,7 +18,7 @@ toggle_touchpad() { fi 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 diff --git a/config/hypr/scripts/Volume.sh b/config/hypr/scripts/Volume.sh index f68491c..1c18211 100755 --- a/config/hypr/scripts/Volume.sh +++ b/config/hypr/scripts/Volume.sh @@ -1,4 +1,6 @@ #!/bin/bash +## /* ---- ๐Ÿ’ซ https://github.com/JaKooLit ๐Ÿ’ซ ---- */ ## +# Scripts for volume controls for audio and mic iDIR="$HOME/.config/swaync/icons" diff --git a/config/hypr/scripts/Wallpaper.sh b/config/hypr/scripts/Wallpaper.sh deleted file mode 100755 index d75d2ea..0000000 --- a/config/hypr/scripts/Wallpaper.sh +++ /dev/null @@ -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 - diff --git a/config/hypr/scripts/WaybarCava.sh b/config/hypr/scripts/WaybarCava.sh new file mode 100755 index 0000000..77fce82 --- /dev/null +++ b/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" <= 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" 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}") & @@ -38,4 +41,4 @@ elif ((resolution > 720)); then else wlogout & echo "Setting default parameters for resolution <= 720p" -fi +fi \ No newline at end of file diff --git a/config/hypr/v2.2.2 b/config/hypr/v2.2.3 similarity index 100% rename from config/hypr/v2.2.2 rename to config/hypr/v2.2.3 diff --git a/config/kitty/kitty.conf b/config/kitty/kitty.conf index a5e836f..4b19446 100644 --- a/config/kitty/kitty.conf +++ b/config/kitty/kitty.conf @@ -1,8 +1,8 @@ #include ~/.cache/wal/colors-kitty.conf -font_family Fira Code SemiBold -font_size 13.0 -bold_font auto +font_family Fira Code SemiBold +font_size 13.0 +bold_font auto italic_font auto bold_italic_font auto diff --git a/config/rofi/config-wallpaper.rasi b/config/rofi/config-wallpaper.rasi index da47e90..5f1cb17 100644 --- a/config/rofi/config-wallpaper.rasi +++ b/config/rofi/config-wallpaper.rasi @@ -3,19 +3,19 @@ /* ---- Configuration ---- */ configuration { - modi: "drun,run"; - font: "Fira Code SemiBold 12"; - show-icons: true; - display-drun: "๎ฏ†"; - display-run: "๏„ "; - display-filebrowser: "๎ซฐ"; - display-window: "๏‹"; - drun-display-format: "{name}"; - hover-select: true; - me-select-entry: "MouseSecondary"; - me-accept-entry: "MousePrimary"; - window-format: "{w} ยท {c} ยท {t}"; - dpi: 1; + modi: "drun,run,filebrowser"; + font: "Fira Code SemiBold 12"; + show-icons: true; + display-drun: "๎ฏ†"; + display-run: "๏„ "; + display-filebrowser: "๎ซฐ"; + display-window: "๏‹"; + drun-display-format: "{name}"; + hover-select: true; + me-select-entry: "MouseSecondary"; + me-accept-entry: "MousePrimary"; + window-format: "{w} ยท {c} ยท {t}"; + dpi: 1; } @@ -24,194 +24,197 @@ configuration { /* ---- Window ---- */ window { - width: 800px; - /*height: 450px;*/ - x-offset: 0px; - y-offset: 0px; - spacing: 0px; - padding: 2px; - margin: 0px; - border: 2px; - border-color: @active-background; - cursor: "default"; - location: center; - anchor: center; - fullscreen: false; - enabled: true; - border-radius: 12px; - border-radius: 12px; - background-color: @background-color; + width: 700px; + /*height: 450px;*/ + x-offset: 0px; + y-offset: 0px; + spacing: 0px; + padding: 2px; + margin: 0px; + border: 2px; + border-color: @active-background; + cursor: "default"; + location: center; + anchor: center; + fullscreen: false; + enabled: true; + border-radius: 12px; + border-radius: 12px; + background-color: transparent; + background-image: url("~/.config/rofi/.current_wallpaper", height); } /* ---- Mainbox ---- */ mainbox { - enabled: true; - orientation: horizontal; - padding: 8px; - background-image: url("~/.config/rofi/.current_wallpaper", width); - children: [ "imagebox"]; - border-radius: 12px; - background-color: @background; + enabled: true; + orientation: horizontal; + padding: 8px; + children: [ "imagebox"]; + border-radius: 12px; + background-color: transparent; } /* ---- Imagebox ---- */ imagebox { - background-color: transparent; - orientation: vertical; - children: [ "inputbar", "listbox"]; + background-color: transparent; + orientation: vertical; + children: [ "inputbar", "listbox"]; } /* ---- Listbox ---- */ listbox { - spacing: 4px; - orientation: vertical; - children: [ "listview" ]; - border-radius: 10px; - border: 1px; - border-color: @active-background; - background-color: @background; + spacing: 4px; + orientation: vertical; + children: [ "listview" ]; + border-radius: 10px; + border: 1px; + border-color: @active-background; + background-color: @background; } /* ---- Dummy ---- */ dummy { - background-color: transparent; + background-color: transparent; } /* ---- Inputbar ---- */ inputbar { - enabled: true; - text-color: @foreground; - spacing: 10px; - padding: 8px; - border-radius: 10px; - border-color: @foreground; - background-color: @background; - children: [ "textbox-prompt-colon", "entry" ]; - border: 1px; - border-color: @active-background; + enabled: true; + text-color: @foreground; + spacing: 10px; + padding: 8px; + border-radius: 10px; + border-color: @foreground; + background-color: @background; + children: [ "textbox-prompt-colon", "entry" ]; + border: 1px; + border-color: @active-background; } textbox-prompt-colon { - enabled: true; - expand: false; - str: "๓ฐธ‰ "; - text-color: inherit; - background-color: transparent; + enabled: true; + expand: false; + str: "๓ฐธ‰ "; + text-color: inherit; + background-color: transparent; } entry { - enabled: true; - text-color: inherit; - cursor: text; - placeholder: "Choose Wallpaper"; - placeholder-color: inherit; - background-color: transparent; + enabled: true; + text-color: inherit; + cursor: text; + placeholder: "Choose Wallpaper"; + placeholder-color: inherit; + background-color: transparent; } /* ---- Listview ---- */ listview { - enabled: true; - columns: 2; - lines: 8; - spacing: 4px; - dynamic: true; - cycle: true; - scrollbar: true; - layout: vertical; - reverse: false; - fixed-height: true; - fixed-columns: false; - background-color: transparent; - border-radius: 10px; + enabled: true; + columns: 4; + lines: 3; + spacing: 4px; + dynamic: true; + cycle: true; + scrollbar: true; + layout: vertical; + reverse: false; + fixed-height: true; + fixed-columns: false; + background-color: transparent; + border-radius: 10px; } /* ---- Element ---- */ element { - enabled: true; - padding: 5px; - margin: 2px; - cursor: pointer; - background-color: transparent; - border-radius: 10px; - border: 0px; + enabled: true; + padding: 5px; + margin: 2px; + cursor: pointer; + orientation: vertical; + background-color: transparent; + border-radius: 10px; + border: 0px; } element normal.normal { - background-color: inherit; - text-color: @foreground; + background-color: inherit; + text-color: @foreground; } element normal.urgent { - background-color: inherit; - text-color: @foreground; + background-color: inherit; + text-color: @foreground; } element normal.active { - background-color: inherit; - text-color: @foreground; + background-color: inherit; + text-color: @foreground; } element selected.normal { - background-color: @selected-normal-background; - text-color: @foreground; + background-color: @selected-normal-background; + text-color: @foreground; } element selected.urgent { - background-color: inherit; - text-color: @foreground; + background-color: inherit; + text-color: @foreground; } element selected.active { - background-color: inherit; - text-color: @foreground; + background-color: inherit; + text-color: @foreground; } element alternate.normal { - background-color: inherit; - text-color: @foreground; + background-color: inherit; + text-color: @foreground; } element alternate.urgent { - background-color: inherit; - text-color: @foreground; + background-color: inherit; + text-color: @foreground; } element alternate.active { - background-color: inherit; - text-color: @foreground; + background-color: inherit; + text-color: @foreground; } element-icon { - background-color: transparent; - text-color: inherit; - size: 32px; - cursor: inherit; + background-color: transparent; + text-color: inherit; + size: 130px; + cursor: inherit; } + element-text { - background-color: transparent; - text-color: inherit; - cursor: inherit; - vertical-align: 0.5; - horizontal-align: 0.0; + font: "Fira Code SemiBold 8"; + background-color: transparent; + text-color: inherit; + cursor: inherit; + vertical-align: 0.5; + horizontal-align: 0.5; } /*****----- Message -----*****/ message { - background-color: @background; - margin: 20px 0px 0px 0px; - border-radius: 10px; + background-color: @background; + margin: 20px 0px 0px 0px; + border-radius: 10px; } textbox { - padding: 15px; - background-color: @background; - text-color: @foreground; + padding: 15px; + background-color: @background; + text-color: @foreground; } error-message { - padding: 15px; - border-radius: 20px; - background-color: @background; - text-color: @foreground; + padding: 15px; + border-radius: 20px; + background-color: @background; + text-color: @foreground; } diff --git a/config/rofi/resolution/1080p/config-wallpaper.rasi b/config/rofi/resolution/1080p/config-wallpaper.rasi index da47e90..5f1cb17 100644 --- a/config/rofi/resolution/1080p/config-wallpaper.rasi +++ b/config/rofi/resolution/1080p/config-wallpaper.rasi @@ -3,19 +3,19 @@ /* ---- Configuration ---- */ configuration { - modi: "drun,run"; - font: "Fira Code SemiBold 12"; - show-icons: true; - display-drun: "๎ฏ†"; - display-run: "๏„ "; - display-filebrowser: "๎ซฐ"; - display-window: "๏‹"; - drun-display-format: "{name}"; - hover-select: true; - me-select-entry: "MouseSecondary"; - me-accept-entry: "MousePrimary"; - window-format: "{w} ยท {c} ยท {t}"; - dpi: 1; + modi: "drun,run,filebrowser"; + font: "Fira Code SemiBold 12"; + show-icons: true; + display-drun: "๎ฏ†"; + display-run: "๏„ "; + display-filebrowser: "๎ซฐ"; + display-window: "๏‹"; + drun-display-format: "{name}"; + hover-select: true; + me-select-entry: "MouseSecondary"; + me-accept-entry: "MousePrimary"; + window-format: "{w} ยท {c} ยท {t}"; + dpi: 1; } @@ -24,194 +24,197 @@ configuration { /* ---- Window ---- */ window { - width: 800px; - /*height: 450px;*/ - x-offset: 0px; - y-offset: 0px; - spacing: 0px; - padding: 2px; - margin: 0px; - border: 2px; - border-color: @active-background; - cursor: "default"; - location: center; - anchor: center; - fullscreen: false; - enabled: true; - border-radius: 12px; - border-radius: 12px; - background-color: @background-color; + width: 700px; + /*height: 450px;*/ + x-offset: 0px; + y-offset: 0px; + spacing: 0px; + padding: 2px; + margin: 0px; + border: 2px; + border-color: @active-background; + cursor: "default"; + location: center; + anchor: center; + fullscreen: false; + enabled: true; + border-radius: 12px; + border-radius: 12px; + background-color: transparent; + background-image: url("~/.config/rofi/.current_wallpaper", height); } /* ---- Mainbox ---- */ mainbox { - enabled: true; - orientation: horizontal; - padding: 8px; - background-image: url("~/.config/rofi/.current_wallpaper", width); - children: [ "imagebox"]; - border-radius: 12px; - background-color: @background; + enabled: true; + orientation: horizontal; + padding: 8px; + children: [ "imagebox"]; + border-radius: 12px; + background-color: transparent; } /* ---- Imagebox ---- */ imagebox { - background-color: transparent; - orientation: vertical; - children: [ "inputbar", "listbox"]; + background-color: transparent; + orientation: vertical; + children: [ "inputbar", "listbox"]; } /* ---- Listbox ---- */ listbox { - spacing: 4px; - orientation: vertical; - children: [ "listview" ]; - border-radius: 10px; - border: 1px; - border-color: @active-background; - background-color: @background; + spacing: 4px; + orientation: vertical; + children: [ "listview" ]; + border-radius: 10px; + border: 1px; + border-color: @active-background; + background-color: @background; } /* ---- Dummy ---- */ dummy { - background-color: transparent; + background-color: transparent; } /* ---- Inputbar ---- */ inputbar { - enabled: true; - text-color: @foreground; - spacing: 10px; - padding: 8px; - border-radius: 10px; - border-color: @foreground; - background-color: @background; - children: [ "textbox-prompt-colon", "entry" ]; - border: 1px; - border-color: @active-background; + enabled: true; + text-color: @foreground; + spacing: 10px; + padding: 8px; + border-radius: 10px; + border-color: @foreground; + background-color: @background; + children: [ "textbox-prompt-colon", "entry" ]; + border: 1px; + border-color: @active-background; } textbox-prompt-colon { - enabled: true; - expand: false; - str: "๓ฐธ‰ "; - text-color: inherit; - background-color: transparent; + enabled: true; + expand: false; + str: "๓ฐธ‰ "; + text-color: inherit; + background-color: transparent; } entry { - enabled: true; - text-color: inherit; - cursor: text; - placeholder: "Choose Wallpaper"; - placeholder-color: inherit; - background-color: transparent; + enabled: true; + text-color: inherit; + cursor: text; + placeholder: "Choose Wallpaper"; + placeholder-color: inherit; + background-color: transparent; } /* ---- Listview ---- */ listview { - enabled: true; - columns: 2; - lines: 8; - spacing: 4px; - dynamic: true; - cycle: true; - scrollbar: true; - layout: vertical; - reverse: false; - fixed-height: true; - fixed-columns: false; - background-color: transparent; - border-radius: 10px; + enabled: true; + columns: 4; + lines: 3; + spacing: 4px; + dynamic: true; + cycle: true; + scrollbar: true; + layout: vertical; + reverse: false; + fixed-height: true; + fixed-columns: false; + background-color: transparent; + border-radius: 10px; } /* ---- Element ---- */ element { - enabled: true; - padding: 5px; - margin: 2px; - cursor: pointer; - background-color: transparent; - border-radius: 10px; - border: 0px; + enabled: true; + padding: 5px; + margin: 2px; + cursor: pointer; + orientation: vertical; + background-color: transparent; + border-radius: 10px; + border: 0px; } element normal.normal { - background-color: inherit; - text-color: @foreground; + background-color: inherit; + text-color: @foreground; } element normal.urgent { - background-color: inherit; - text-color: @foreground; + background-color: inherit; + text-color: @foreground; } element normal.active { - background-color: inherit; - text-color: @foreground; + background-color: inherit; + text-color: @foreground; } element selected.normal { - background-color: @selected-normal-background; - text-color: @foreground; + background-color: @selected-normal-background; + text-color: @foreground; } element selected.urgent { - background-color: inherit; - text-color: @foreground; + background-color: inherit; + text-color: @foreground; } element selected.active { - background-color: inherit; - text-color: @foreground; + background-color: inherit; + text-color: @foreground; } element alternate.normal { - background-color: inherit; - text-color: @foreground; + background-color: inherit; + text-color: @foreground; } element alternate.urgent { - background-color: inherit; - text-color: @foreground; + background-color: inherit; + text-color: @foreground; } element alternate.active { - background-color: inherit; - text-color: @foreground; + background-color: inherit; + text-color: @foreground; } element-icon { - background-color: transparent; - text-color: inherit; - size: 32px; - cursor: inherit; + background-color: transparent; + text-color: inherit; + size: 130px; + cursor: inherit; } + element-text { - background-color: transparent; - text-color: inherit; - cursor: inherit; - vertical-align: 0.5; - horizontal-align: 0.0; + font: "Fira Code SemiBold 8"; + background-color: transparent; + text-color: inherit; + cursor: inherit; + vertical-align: 0.5; + horizontal-align: 0.5; } /*****----- Message -----*****/ message { - background-color: @background; - margin: 20px 0px 0px 0px; - border-radius: 10px; + background-color: @background; + margin: 20px 0px 0px 0px; + border-radius: 10px; } textbox { - padding: 15px; - background-color: @background; - text-color: @foreground; + padding: 15px; + background-color: @background; + text-color: @foreground; } error-message { - padding: 15px; - border-radius: 20px; - background-color: @background; - text-color: @foreground; + padding: 15px; + border-radius: 20px; + background-color: @background; + text-color: @foreground; } diff --git a/config/rofi/resolution/1440p/config-wallpaper.rasi b/config/rofi/resolution/1440p/config-wallpaper.rasi index ef28039..0bc3b10 100644 --- a/config/rofi/resolution/1440p/config-wallpaper.rasi +++ b/config/rofi/resolution/1440p/config-wallpaper.rasi @@ -3,19 +3,19 @@ /* ---- Configuration ---- */ configuration { - modi: "drun,run"; - font: "Fira Code SemiBold 14"; - show-icons: true; - display-drun: "๎ฏ†"; - display-run: "๏„ "; - display-filebrowser: "๎ซฐ"; - display-window: "๏‹"; - drun-display-format: "{name}"; - hover-select: true; - me-select-entry: "MouseSecondary"; - me-accept-entry: "MousePrimary"; - window-format: "{w} ยท {c} ยท {t}"; - dpi: 1; + modi: "drun,run,filebrowser"; + font: "Fira Code SemiBold 14"; + show-icons: true; + display-drun: "๎ฏ†"; + display-run: "๏„ "; + display-filebrowser: "๎ซฐ"; + display-window: "๏‹"; + drun-display-format: "{name}"; + hover-select: true; + me-select-entry: "MouseSecondary"; + me-accept-entry: "MousePrimary"; + window-format: "{w} ยท {c} ยท {t}"; + dpi: 1; } @@ -24,194 +24,197 @@ configuration { /* ---- Window ---- */ window { - width: 800px; - /*height: 450px;*/ - x-offset: 0px; - y-offset: 0px; - spacing: 0px; - padding: 2px; - margin: 0px; - border: 2px; - border-color: @active-background; - cursor: "default"; - location: center; - anchor: center; - fullscreen: false; - enabled: true; - border-radius: 12px; - border-radius: 12px; - background-color: @background-color; + width: 700px; + /*height: 450px;*/ + x-offset: 0px; + y-offset: 0px; + spacing: 0px; + padding: 2px; + margin: 0px; + border: 2px; + border-color: @active-background; + cursor: "default"; + location: center; + anchor: center; + fullscreen: false; + enabled: true; + border-radius: 12px; + border-radius: 12px; + background-color: transparent; + background-image: url("~/.config/rofi/.current_wallpaper", height); } /* ---- Mainbox ---- */ mainbox { - enabled: true; - orientation: horizontal; - padding: 8px; - background-image: url("~/.config/rofi/.current_wallpaper", width); - children: [ "imagebox"]; - border-radius: 12px; - background-color: @background; + enabled: true; + orientation: horizontal; + padding: 8px; + children: [ "imagebox"]; + border-radius: 12px; + background-color: transparent; } /* ---- Imagebox ---- */ imagebox { - background-color: transparent; - orientation: vertical; - children: [ "inputbar", "listbox"]; + background-color: transparent; + orientation: vertical; + children: [ "inputbar", "listbox"]; } /* ---- Listbox ---- */ listbox { - spacing: 4px; - orientation: vertical; - children: [ "listview" ]; - border-radius: 10px; - border: 1px; - border-color: @active-background; - background-color: @background; + spacing: 4px; + orientation: vertical; + children: [ "listview" ]; + border-radius: 10px; + border: 1px; + border-color: @active-background; + background-color: @background; } /* ---- Dummy ---- */ dummy { - background-color: transparent; + background-color: transparent; } /* ---- Inputbar ---- */ inputbar { - enabled: true; - text-color: @foreground; - spacing: 10px; - padding: 8px; - border-radius: 10px; - border-color: @foreground; - background-color: @background; - children: [ "textbox-prompt-colon", "entry" ]; - border: 1px; - border-color: @active-background; + enabled: true; + text-color: @foreground; + spacing: 10px; + padding: 8px; + border-radius: 10px; + border-color: @foreground; + background-color: @background; + children: [ "textbox-prompt-colon", "entry" ]; + border: 1px; + border-color: @active-background; } textbox-prompt-colon { - enabled: true; - expand: false; - str: "๓ฐธ‰ "; - text-color: inherit; - background-color: transparent; + enabled: true; + expand: false; + str: "๓ฐธ‰ "; + text-color: inherit; + background-color: transparent; } entry { - enabled: true; - text-color: inherit; - cursor: text; - placeholder: "Choose Wallpaper"; - placeholder-color: inherit; - background-color: transparent; + enabled: true; + text-color: inherit; + cursor: text; + placeholder: "Choose Wallpaper"; + placeholder-color: inherit; + background-color: transparent; } /* ---- Listview ---- */ listview { - enabled: true; - columns: 2; - lines: 8; - spacing: 4px; - dynamic: true; - cycle: true; - scrollbar: true; - layout: vertical; - reverse: false; - fixed-height: true; - fixed-columns: false; - background-color: transparent; - border-radius: 10px; + enabled: true; + columns: 4; + lines: 4; + spacing: 4px; + dynamic: true; + cycle: true; + scrollbar: true; + layout: vertical; + reverse: false; + fixed-height: true; + fixed-columns: false; + background-color: transparent; + border-radius: 10px; } /* ---- Element ---- */ element { - enabled: true; - padding: 5px; - margin: 2px; - cursor: pointer; - background-color: transparent; - border-radius: 10px; - border: 0px; + enabled: true; + padding: 5px; + margin: 2px; + cursor: pointer; + orientation: vertical; + background-color: transparent; + border-radius: 10px; + border: 0px; } element normal.normal { - background-color: inherit; - text-color: @foreground; + background-color: inherit; + text-color: @foreground; } element normal.urgent { - background-color: inherit; - text-color: @foreground; + background-color: inherit; + text-color: @foreground; } element normal.active { - background-color: inherit; - text-color: @foreground; + background-color: inherit; + text-color: @foreground; } element selected.normal { - background-color: @selected-normal-background; - text-color: @foreground; + background-color: @selected-normal-background; + text-color: @foreground; } element selected.urgent { - background-color: inherit; - text-color: @foreground; + background-color: inherit; + text-color: @foreground; } element selected.active { - background-color: inherit; - text-color: @foreground; + background-color: inherit; + text-color: @foreground; } element alternate.normal { - background-color: inherit; - text-color: @foreground; + background-color: inherit; + text-color: @foreground; } element alternate.urgent { - background-color: inherit; - text-color: @foreground; + background-color: inherit; + text-color: @foreground; } element alternate.active { - background-color: inherit; - text-color: @foreground; + background-color: inherit; + text-color: @foreground; } element-icon { - background-color: transparent; - text-color: inherit; - size: 32px; - cursor: inherit; + background-color: transparent; + text-color: inherit; + size: 130px; + cursor: inherit; } + element-text { - background-color: transparent; - text-color: inherit; - cursor: inherit; - vertical-align: 0.5; - horizontal-align: 0.0; + font: "Fira Code SemiBold 10"; + background-color: transparent; + text-color: inherit; + cursor: inherit; + vertical-align: 0.5; + horizontal-align: 0.5; } /*****----- Message -----*****/ message { - background-color: @background; - margin: 20px 0px 0px 0px; - border-radius: 10px; + background-color: @background; + margin: 20px 0px 0px 0px; + border-radius: 10px; } textbox { - padding: 15px; - background-color: @background; - text-color: @foreground; + padding: 15px; + background-color: @background; + text-color: @foreground; } error-message { - padding: 15px; - border-radius: 20px; - background-color: @background; - text-color: @foreground; + padding: 15px; + border-radius: 20px; + background-color: @background; + text-color: @foreground; } diff --git a/config/waybar/configs/[BOT] Default b/config/waybar/configs/[BOT] Default index eece916..6cf3dd6 100644 --- a/config/waybar/configs/[BOT] Default +++ b/config/waybar/configs/[BOT] Default @@ -25,6 +25,8 @@ "memory", "custom/separator#dot-line", "custom/weather", + "custom/separator#blank_3", + "custom/cava_mviz", ], "modules-center": [ diff --git a/config/waybar/configs/[BOT] Default Laptop b/config/waybar/configs/[BOT] Default Laptop index 1268408..501e0c8 100644 --- a/config/waybar/configs/[BOT] Default Laptop +++ b/config/waybar/configs/[BOT] Default Laptop @@ -25,6 +25,8 @@ "memory", "custom/separator#dot-line", "custom/weather", + "custom/separator#blank_3", + "custom/cava_mviz", ], "modules-center": [ diff --git a/config/waybar/configs/[TOP] Default b/config/waybar/configs/[TOP] Default index b40bc57..8ab71d6 100644 --- a/config/waybar/configs/[TOP] Default +++ b/config/waybar/configs/[TOP] Default @@ -25,6 +25,8 @@ "memory", "custom/separator#dot-line", "custom/weather", + "custom/separator#blank_3", + "custom/cava_mviz", ], "modules-center": [ diff --git a/config/waybar/configs/[TOP] Default Laptop b/config/waybar/configs/[TOP] Default Laptop index 89f6bbb..654fe5c 100644 --- a/config/waybar/configs/[TOP] Default Laptop +++ b/config/waybar/configs/[TOP] Default Laptop @@ -25,6 +25,8 @@ "memory", "custom/separator#dot-line", "custom/weather", + "custom/separator#blank_3", + "custom/cava_mviz", ], "modules-center": [ diff --git a/config/waybar/modules b/config/waybar/modules index 2841dc3..1165211 100644 --- a/config/waybar/modules +++ b/config/waybar/modules @@ -215,30 +215,7 @@ "tooltip": true, "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": { "interval": 1, //"format": "๏€— {:%I:%M %p}", // AM PM format @@ -530,6 +507,12 @@ "on-click-middle": "~/.config/hypr/scripts/WallpaperSelect.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": { "format": "{}", @@ -545,6 +528,15 @@ "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": { "tooltip":true, "format": "{icon} {}", @@ -565,16 +557,7 @@ "on-click-right": "swaync-client -d -sw", "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 "custom/updater":{ "format": "๏€™ {}", @@ -627,6 +610,12 @@ "interval": "once", "tooltip": false }, + +"custom/separator#blank_3": { + "format": " ", + "interval": "once", + "tooltip": false +}, // Modules below are for vertical layout diff --git a/config/waybar/style/Catppuccin-Latte.css b/config/waybar/style/Catppuccin-Latte.css index 18b1663..187dac2 100644 --- a/config/waybar/style/Catppuccin-Latte.css +++ b/config/waybar/style/Catppuccin-Latte.css @@ -48,7 +48,6 @@ window#waybar.hidden { #backlight-slider, #battery, #bluetooth, -#cava, #clock, #cpu, #disk, @@ -96,15 +95,15 @@ window#waybar.hidden { } #idle_inhibitor { - color: @blue; + color: @blue; } #backlight { - color: @blue; + color: @blue; } #battery { - color: @green; + color: @green; } @keyframes blink { @@ -114,14 +113,14 @@ window#waybar.hidden { } #battery.critical:not(.charging) { - background-color: @red; - color: @theme_text_color; - animation-name: blink; - animation-duration: 0.5s; - animation-timing-function: linear; - animation-iteration-count: infinite; - animation-direction: alternate; - box-shadow: inset 0 -3px transparent; + background-color: @red; + color: @theme_text_color; + animation-name: blink; + animation-duration: 0.5s; + animation-timing-function: linear; + animation-iteration-count: infinite; + animation-direction: alternate; + box-shadow: inset 0 -3px transparent; } #bluetooth { @@ -129,28 +128,28 @@ window#waybar.hidden { } #clock { - color: @yellow; + color: @yellow; } #cpu { - color: @green; + color: @green; } #custom-keyboard, #memory { - color: @sky; + color: @sky; } #disk { - color: @sapphire; + color: @sapphire; } #temperature { - color: @teal; + color: @teal; } #temperature.critical { - background-color: @red; + background-color: @red; } #tray > .passive { @@ -161,7 +160,7 @@ window#waybar.hidden { } #keyboard-state { - color: @flamingo; + color: @flamingo; } #workspaces button { @@ -217,57 +216,60 @@ window#waybar.hidden { animation: gradient_f 20s ease-in infinite; transition: all 0.3s cubic-bezier(.55,-0.68,.48,1.682); } +#custom-cava_mviz { + color: @pink; +} #custom-menu { - color: @rosewater; + color: @rosewater; } #custom-power { - color: @red; + color: @red; } #custom-updater { - color: @red; + color: @red; } #custom-light_dark { - color: @blue; + color: @blue; } #custom-weather { - color: @lavender; + color: @lavender; } #custom-lock { - color: @maroon; + color: @maroon; } #pulseaudio { - color: @sapphire; + color: @sapphire; } #pulseaudio.bluetooth { - color: @pink; + color: @pink; } #pulseaudio.muted { - color: @red; + color: @red; } #window { - color: @mauve; + color: @mauve; } #custom-waybar-mpris { - color:@lavender; + color:@lavender; } #network { - color: @teal; + color: @teal; } #network.disconnected, #network.disabled { - background-color: @surface0; - color: @text; + background-color: @surface0; + color: @text; } #pulseaudio-slider slider { min-width: 0px; diff --git a/config/waybar/style/Catppuccin-Mocha.css b/config/waybar/style/Catppuccin-Mocha.css index 061106c..5f74fe8 100644 --- a/config/waybar/style/Catppuccin-Mocha.css +++ b/config/waybar/style/Catppuccin-Mocha.css @@ -54,7 +54,6 @@ window#waybar.hidden { #backlight-slider, #battery, #bluetooth, -#cava, #clock, #cpu, #disk, @@ -221,6 +220,10 @@ window#waybar.hidden { transition: all 0.3s cubic-bezier(.55,-0.68,.48,1.682); } +#custom-cava_mviz { + color: @pink; +} + #custom-menu { color: @rosewater; } diff --git a/config/waybar/style/Crimson.css b/config/waybar/style/Crimson.css index fcac5dc..d08b53f 100644 --- a/config/waybar/style/Crimson.css +++ b/config/waybar/style/Crimson.css @@ -110,7 +110,6 @@ tooltip { #backlight-slider, #battery, #bluetooth, -#cava, #clock, #cpu, #disk, diff --git a/config/waybar/style/Purpl.css b/config/waybar/style/Purpl.css index 0f97470..2e0e4f8 100644 --- a/config/waybar/style/Purpl.css +++ b/config/waybar/style/Purpl.css @@ -120,7 +120,6 @@ tooltip { #backlight-slider, #battery, #bluetooth, -#cava, #clock, #cpu, #disk, @@ -139,6 +138,7 @@ tooltip { #wireplumber, #workspaces, #custom-backlight, +#custom-cava_mviz, #custom-cycle_wall, #custom-keybinds, #custom-keyboard, diff --git a/config/waybar/style/Rose Pine.css b/config/waybar/style/Rose Pine.css index 4a15422..bc9b202 100644 --- a/config/waybar/style/Rose Pine.css +++ b/config/waybar/style/Rose Pine.css @@ -101,7 +101,6 @@ tooltip { #backlight-slider, #battery, #bluetooth, -#cava, #clock, #cpu, #disk, @@ -129,6 +128,7 @@ tooltip { #custom-swaync, #custom-updater, #custom-swaync, +#custom-cava_mviz, #custom-weather, #custom-weather.clearNight, #custom-weather.cloudyFoggyDay, diff --git a/config/waybar/style/Simple Pink.css b/config/waybar/style/Simple Pink.css index d306dd8..e60e275 100644 --- a/config/waybar/style/Simple Pink.css +++ b/config/waybar/style/Simple Pink.css @@ -124,7 +124,6 @@ tooltip { #backlight-slider, #battery, #bluetooth, -#cava, #clock, #cpu, #disk, @@ -144,6 +143,7 @@ tooltip { #wireplumber, #workspaces, #custom-backlight, +#custom-cava_mviz, #custom-cycle_wall, #custom-keybinds, #custom-keyboard, diff --git a/config/waybar/style/[Black & White] Monochrome.css b/config/waybar/style/[Black & White] Monochrome.css index 143e887..6c2af3c 100644 --- a/config/waybar/style/[Black & White] Monochrome.css +++ b/config/waybar/style/[Black & White] Monochrome.css @@ -109,7 +109,6 @@ tooltip label{ #backlight-slider, #battery, #bluetooth, -#cava, #clock, #cpu, #disk, diff --git a/config/waybar/style/[Bordered Pywal] Chroma Fusion Edge.css b/config/waybar/style/[Bordered Pywal] Chroma Fusion Edge.css index 1a29c40..5c99c52 100644 --- a/config/waybar/style/[Bordered Pywal] Chroma Fusion Edge.css +++ b/config/waybar/style/[Bordered Pywal] Chroma Fusion Edge.css @@ -51,7 +51,6 @@ window#waybar.empty #window { #backlight-slider, #battery, #bluetooth, -#cava, #clock, #cpu, #disk, @@ -150,6 +149,9 @@ window#waybar.empty #window { color: @teal; } +#custom-cava_mviz{ + color: @color2; +} #workspaces { margin: 1px 1px 1px 1px; padding: 0px 1px; diff --git a/config/waybar/style/[Colored] Chroma Glow.css b/config/waybar/style/[Colored] Chroma Glow.css index f324bf3..dcb5bbc 100644 --- a/config/waybar/style/[Colored] Chroma Glow.css +++ b/config/waybar/style/[Colored] Chroma Glow.css @@ -97,7 +97,6 @@ tooltip label{ #backlight-slider, #battery, #bluetooth, -#cava, #clock, #cpu, #disk, diff --git a/config/waybar/style/[Colored] Translucent.css b/config/waybar/style/[Colored] Translucent.css index 0e3cbaf..49f8dbf 100644 --- a/config/waybar/style/[Colored] Translucent.css +++ b/config/waybar/style/[Colored] Translucent.css @@ -111,7 +111,6 @@ tooltip label{ #backlight-slider, #battery, #bluetooth, -#cava, #clock, #cpu, #disk, diff --git a/config/waybar/style/[Colorful] Aurora Blossom.css b/config/waybar/style/[Colorful] Aurora Blossom.css index 8a0f852..3dd64b4 100644 --- a/config/waybar/style/[Colorful] Aurora Blossom.css +++ b/config/waybar/style/[Colorful] Aurora Blossom.css @@ -97,7 +97,6 @@ tooltip label{ #backlight-slider, #battery, #bluetooth, -#cava, #clock, #cpu, #disk, diff --git a/config/waybar/style/[Colorful] Aurora.css b/config/waybar/style/[Colorful] Aurora.css index a5e57cb..c841c90 100644 --- a/config/waybar/style/[Colorful] Aurora.css +++ b/config/waybar/style/[Colorful] Aurora.css @@ -88,7 +88,6 @@ tooltip label{ #backlight-slider, #battery, #bluetooth, -#cava, #clock, #cpu, #disk, @@ -107,6 +106,7 @@ tooltip label{ #wireplumber, #workspaces, #custom-backlight, +#custom-cava_mviz, #custom-cycle_wall, #custom-keybinds, #custom-keyboard, diff --git a/config/waybar/style/[Colorful] Rainbow Spectrum.css b/config/waybar/style/[Colorful] Rainbow Spectrum.css index 333f798..8caa5cb 100644 --- a/config/waybar/style/[Colorful] Rainbow Spectrum.css +++ b/config/waybar/style/[Colorful] Rainbow Spectrum.css @@ -52,7 +52,6 @@ tooltip label{ #backlight-slider, #battery, #bluetooth, -#cava, #clock, #cpu, #disk, @@ -138,6 +137,10 @@ tooltip label{ background-color: #a6e3a1; } +#mpris { + background-color: #fab387; + color: black; +} #custom-keyboard, #keyboard-state, #keyboard-state label, diff --git a/config/waybar/style/[Dark] Golden Noir.css b/config/waybar/style/[Dark] Golden Noir.css index 667b06e..75ba82b 100644 --- a/config/waybar/style/[Dark] Golden Noir.css +++ b/config/waybar/style/[Dark] Golden Noir.css @@ -123,7 +123,6 @@ tooltip { #backlight-slider, #battery, #bluetooth, -#cava, #clock, #cpu, #disk, @@ -142,6 +141,7 @@ tooltip { #wireplumber, #workspaces, #custom-backlight, +#custom-cava_mviz, #custom-cycle_wall, #custom-keybinds, #custom-keyboard, diff --git a/config/waybar/style/[Dark] Obsidian Edge.css b/config/waybar/style/[Dark] Obsidian Edge.css index 8d21d72..be74c6b 100644 --- a/config/waybar/style/[Dark] Obsidian Edge.css +++ b/config/waybar/style/[Dark] Obsidian Edge.css @@ -116,7 +116,6 @@ tooltip label { #backlight-slider, #battery, #bluetooth, -#cava, #clock, #cpu, #disk, @@ -135,6 +134,7 @@ tooltip label { #wireplumber, #workspaces, #custom-backlight, +#custom-cava_mviz, #custom-cycle_wall, #custom-keybinds, #custom-keyboard, diff --git a/config/waybar/style/[Light] Monochrome Contrast.css b/config/waybar/style/[Light] Monochrome Contrast.css index 34b579f..25ccf5c 100644 --- a/config/waybar/style/[Light] Monochrome Contrast.css +++ b/config/waybar/style/[Light] Monochrome Contrast.css @@ -110,7 +110,6 @@ tooltip label{ #backlight-slider, #battery, #bluetooth, -#cava, #clock, #cpu, #disk, diff --git a/config/waybar/style/[Light] Obsidian Glow.css b/config/waybar/style/[Light] Obsidian Glow.css index cd939b5..f95daa0 100644 --- a/config/waybar/style/[Light] Obsidian Glow.css +++ b/config/waybar/style/[Light] Obsidian Glow.css @@ -85,7 +85,6 @@ tooltip label { #backlight-slider, #battery, #bluetooth, -#cava, #clock, #cpu, #disk, @@ -104,6 +103,7 @@ tooltip label { #wireplumber, #workspaces, #custom-backlight, +#custom-cava_mviz, #custom-cycle_wall, #custom-keybinds, #custom-keyboard, diff --git a/config/waybar/style/[Pywal] Chroma Edge.css b/config/waybar/style/[Pywal] Chroma Edge.css index 282057c..ba4e83a 100644 --- a/config/waybar/style/[Pywal] Chroma Edge.css +++ b/config/waybar/style/[Pywal] Chroma Edge.css @@ -90,7 +90,6 @@ tooltip label{ #backlight-slider, #battery, #bluetooth, -#cava, #clock, #cpu, #disk, diff --git a/config/waybar/style/[Pywal] Chroma Fusion.css b/config/waybar/style/[Pywal] Chroma Fusion.css index 3f15037..b100639 100644 --- a/config/waybar/style/[Pywal] Chroma Fusion.css +++ b/config/waybar/style/[Pywal] Chroma Fusion.css @@ -50,7 +50,6 @@ window#waybar.empty #window { #backlight-slider, #battery, #bluetooth, -#cava, #clock, #cpu, #disk, @@ -143,6 +142,10 @@ window#waybar.empty #window { color: @lavender; } +#custom-cava_mviz { + color: @color2; +} + #custom-lock, #idle_inhibitor { color: @teal; diff --git a/config/waybar/style/[Pywal] Chroma Tally.css b/config/waybar/style/[Pywal] Chroma Tally.css index c3a38fb..ace2ea3 100644 --- a/config/waybar/style/[Pywal] Chroma Tally.css +++ b/config/waybar/style/[Pywal] Chroma Tally.css @@ -55,7 +55,6 @@ window#waybar { #backlight-slider, #battery, #bluetooth, -#cava, #clock, #cpu, #disk, @@ -203,11 +202,15 @@ window#waybar { #custom-lock, #bluetooth{ - color:#d08770; + color:#d08770; } - + +#custom-cava_mviz{ + color: @color2; +} + #custom-weather{ - color:#d08770; + color:#d08770; } #taskbar button.active { diff --git a/config/waybar/style/[Pywal] Colored.css b/config/waybar/style/[Pywal] Colored.css index afb0128..aeccffb 100644 --- a/config/waybar/style/[Pywal] Colored.css +++ b/config/waybar/style/[Pywal] Colored.css @@ -117,7 +117,6 @@ tooltip { #backlight-slider, #battery, #bluetooth, -#cava, #clock, #cpu, #disk, @@ -136,6 +135,7 @@ tooltip { #wireplumber, #workspaces, #custom-backlight, +#custom-cava_mviz, #custom-cycle_wall, #custom-keybinds, #custom-keyboard, @@ -236,4 +236,8 @@ tooltip { #backlight-slider highlight { min-width: 10px; border-radius: 5px; +} + +#custom-cava_mviz { + padding-right: 10px; } \ No newline at end of file diff --git a/config/waybar/style/[Pywal] Simple.css b/config/waybar/style/[Pywal] Simple.css index 6acef45..138e926 100644 --- a/config/waybar/style/[Pywal] Simple.css +++ b/config/waybar/style/[Pywal] Simple.css @@ -104,7 +104,6 @@ tooltip { #backlight-slider, #battery, #bluetooth, -#cava, #clock, #cpu, #disk, @@ -124,6 +123,7 @@ tooltip { #wireplumber, #workspaces, #custom-backlight, +#custom-cava_mviz, #custom-cycle_wall, #custom-keybinds, #custom-keyboard, diff --git a/config/waybar/style/[Retro] Simple Style.css b/config/waybar/style/[Retro] Simple Style.css index aaf14d6..ea13145 100644 --- a/config/waybar/style/[Retro] Simple Style.css +++ b/config/waybar/style/[Retro] Simple Style.css @@ -47,7 +47,6 @@ window#waybar { #backlight-slider, #battery, #bluetooth, -#cava, #clock, #cpu, #disk, diff --git a/config/waybar/style/[Transparent] Crystal Clear.css b/config/waybar/style/[Transparent] Crystal Clear.css index 3f64235..0f9b176 100644 --- a/config/waybar/style/[Transparent] Crystal Clear.css +++ b/config/waybar/style/[Transparent] Crystal Clear.css @@ -97,7 +97,6 @@ tooltip { #backlight, #battery, #bluetooth, -#cava, #clock, #cpu, #disk, diff --git a/config/wlogout/layout b/config/wlogout/layout index 4c6b5c4..bbcb625 100644 --- a/config/wlogout/layout +++ b/config/wlogout/layout @@ -30,7 +30,7 @@ } { "label" : "hibernate", - "action" : "systemctl hibernate", + "action" : "swaylock -f && systemctl hibernate", "text" : "Hibernate", "keybind" : "h" } \ No newline at end of file diff --git a/copy.sh b/copy.sh index 20a1c70..9bdd16f 100755 --- a/copy.sh +++ b/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 fi -# Preparing hyprland.conf to check for current keyboard layout -# Function to detect keyboard layout in an X server environment -detect_x_layout() { - if command -v setxkbmap >/dev/null 2>&1; then - layout=$(setxkbmap -query | grep layout | awk '{print $2}') +# Function to detect keyboard layout using localectl or setxkbmap +detect_layout() { + if command -v localectl >/dev/null 2>&1; then + layout=$(localectl status --no-pager | awk '/X11 Layout/ {print $3}') if [ -n "$layout" ]; then echo "$layout" else echo "unknown" fi - else - echo "unknown" - 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}') + elif command -v setxkbmap >/dev/null 2>&1; then + layout=$(setxkbmap -query | grep layout | awk '{print $2}') if [ -n "$layout" ]; then echo "$layout" else @@ -79,22 +71,14 @@ detect_tty_layout() { fi } -# Detect the current keyboard layout based on the environment -if [ -n "$DISPLAY" ]; then - # 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" +# Detect the current keyboard layout +layout=$(detect_layout) 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 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 [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" # Set executable for initial-boot.sh 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} @@ -238,20 +234,6 @@ while true; do esac 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 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 ln -sf "$HOME/.cache/wal/colors-rofi-dark.rasi" "$HOME/.config/rofi/pywal-color/pywal-theme.rasi" + printf "\n%.0s" {1..2} printf "\n${OK} Copy Completed!\n\n\n" printf "${ORANGE} ATTENTION!!!! \n"