From cadc2cb3b52caff78ce14cf545d9385f4b3caa1d Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Sun, 9 Mar 2025 11:52:58 +0900 Subject: updated. On startup apps.conf, removed the & --- config/hypr/UserConfigs/Startup_Apps.conf | 20 +- config/hypr/UserConfigs/UserKeybinds.conf | 1 - config/hypr/configs/Keybinds.conf | 3 +- config/hypr/scripts/LockScreen.sh | 4 +- config/rofi/config-wallpaper.rasi | 3 +- config/rofi/config.rasi | 1 + config/waybar/ModulesCustom | 51 +++++- config/waybar/configs/[TOP] Arrow | 43 +++++ config/waybar/style/[Extra] Arrow.css | 291 ++++++++++++++++++++++++++++++ copy.sh | 12 +- 10 files changed, 406 insertions(+), 23 deletions(-) create mode 100644 config/waybar/configs/[TOP] Arrow create mode 100644 config/waybar/style/[Extra] Arrow.css diff --git a/config/hypr/UserConfigs/Startup_Apps.conf b/config/hypr/UserConfigs/Startup_Apps.conf index e41a7ecb..2be4e7d7 100644 --- a/config/hypr/UserConfigs/Startup_Apps.conf +++ b/config/hypr/UserConfigs/Startup_Apps.conf @@ -1,5 +1,5 @@ # /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ # -#Commands & Apps to be executed at launch +# Commands and Apps to be executed at launch $scriptsDir = $HOME/.config/hypr/scripts $UserScripts = $HOME/.config/hypr/UserScripts @@ -20,25 +20,25 @@ exec-once = systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESK exec-once = $scriptsDir/Polkit.sh # starup apps -exec-once = waybar & -exec-once = nm-applet --indicator & -exec-once = swaync & -#exec-once = ags & -#exec-once = blueman-applet & -#exec-once = rog-control-center & +exec-once = nm-applet --indicator +exec-once = swaync +#exec-once = ags +#exec-once = blueman-applet +#exec-once = rog-control-center +exec-once = waybar #clipboard manager exec-once = wl-paste --type text --watch cliphist store exec-once = wl-paste --type image --watch cliphist store # Rainbow borders -exec-once = $UserScripts/RainbowBorders.sh & +exec-once = $UserScripts/RainbowBorders.sh # Starting hypridle to start hyprlock -exec-once = hypridle & +exec-once = hypridle # Start pyprland daemon -exec-once = pypr & +exec-once = pypr # Here are list of features available but disabled by default # exec-once = swww-daemon --format xrgb && swww img $HOME/Pictures/wallpapers/mecha-nostalgia.png # persistent wallpaper diff --git a/config/hypr/UserConfigs/UserKeybinds.conf b/config/hypr/UserConfigs/UserKeybinds.conf index 55beff2d..447bcaef 100644 --- a/config/hypr/UserConfigs/UserKeybinds.conf +++ b/config/hypr/UserConfigs/UserKeybinds.conf @@ -44,7 +44,6 @@ bind = $mainMod CTRL, B, exec, $scriptsDir/WaybarStyles.sh # Waybar Styles Menu bind = $mainMod ALT, B, exec, $scriptsDir/WaybarLayout.sh # Waybar Layout Menu # FEATURES / EXTRAS (UserScripts) -bind = $mainMod SHIFT, E, exec, $UserScripts/Kool_Quick_Settings.sh # Settings Menu KooL Hyprland Settings bind = $mainMod SHIFT, M, exec, $UserScripts/RofiBeats.sh # online music using rofi bind = $mainMod, W, exec, $UserScripts/WallpaperSelect.sh # Select wallpaper to apply bind = $mainMod SHIFT, W, exec, $UserScripts/WallpaperEffects.sh # Wallpaper Effects by imagemagick diff --git a/config/hypr/configs/Keybinds.conf b/config/hypr/configs/Keybinds.conf index 9a754929..c295c141 100644 --- a/config/hypr/configs/Keybinds.conf +++ b/config/hypr/configs/Keybinds.conf @@ -9,14 +9,13 @@ $scriptsDir = $HOME/.config/hypr/scripts $UserConfigs = $HOME/.config/hypr/UserConfigs $UserScripts = $HOME/.config/hypr/UserScripts -bind = $mainMod SHIFT, E, exec, $scriptsDir/Kool_Quick_Settings.sh # Settings Menu KooL Hyprland Settings - bind = CTRL ALT, Delete, exec, hyprctl dispatch exit 0 bind = $mainMod, Q, killactive, #kill bind = $mainMod SHIFT, Q, exec, $scriptsDir/KillActiveProcess.sh # Kill active process bind = CTRL ALT, L, exec, $scriptsDir/LockScreen.sh # screen lock bind = CTRL ALT, P, exec, $scriptsDir/Wlogout.sh # power menu bind = $mainMod SHIFT, N, exec, swaync-client -t -sw # swayNC notification panel +bind = $mainMod SHIFT, E, exec, $scriptsDir/Kool_Quick_Settings.sh # Settings Menu KooL Hyprland Settings # Master Layout bind = $mainMod CTRL, D, layoutmsg, removemaster diff --git a/config/hypr/scripts/LockScreen.sh b/config/hypr/scripts/LockScreen.sh index 0fd62cab..5e799181 100755 --- a/config/hypr/scripts/LockScreen.sh +++ b/config/hypr/scripts/LockScreen.sh @@ -2,6 +2,6 @@ # /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## # For Hyprlock +#pidof hyprlock || hyprlock -q -pidof hyprlock || hyprlock -q - +loginctl lock-session \ No newline at end of file diff --git a/config/rofi/config-wallpaper.rasi b/config/rofi/config-wallpaper.rasi index 3eec2b68..3cd320aa 100644 --- a/config/rofi/config-wallpaper.rasi +++ b/config/rofi/config-wallpaper.rasi @@ -65,4 +65,5 @@ element-text { vertical-align: 0.5; horizontal-align: 0.5; padding: 6px; - margin: 6px; \ No newline at end of file + margin: 6px; +} \ No newline at end of file diff --git a/config/rofi/config.rasi b/config/rofi/config.rasi index 011eebb1..0a75c1f6 100644 --- a/config/rofi/config.rasi +++ b/config/rofi/config.rasi @@ -19,4 +19,5 @@ /* note: Main themes in ~/.config/rofi/themes */ /* You can manually change here or you can use rofi theme selector SUPER SHIFT E */ + @theme "~/.config/rofi/themes/KooL_style-9.rasi" diff --git a/config/waybar/ModulesCustom b/config/waybar/ModulesCustom index 86cbe6c6..df5f8786 100644 --- a/config/waybar/ModulesCustom +++ b/config/waybar/ModulesCustom @@ -40,7 +40,7 @@ "custom/settings": { "format": " ", - "on-click": "$HOME/.config/hypr/UserScripts/Kool_Quick_Settings.sh", + "on-click": "$HOME/.config/hypr/scripts/Kool_Quick_Settings.sh", "tooltip": true, "tooltip-format": "Launch KooL Hyprland Settings Menu", }, @@ -217,4 +217,53 @@ "interval": "once", "tooltip": false }, +"custom/arrow1": { + "format": "", + "tooltip": false +}, + +"custom/arrow2": { + "format": "", + "tooltip": false +}, + +"custom/arrow3": { + "format": "", + "tooltip": false +}, + +"custom/arrow4": { + "format": "", + "tooltip": false +}, + +"custom/arrow5": { + "format": "", + "tooltip": false +}, + +"custom/arrow6": { + "format": "", + "tooltip": false +}, + +"custom/arrow7": { + "format": "", + "tooltip": false +}, + +"custom/arrow8": { + "format": "", + "tooltip": false +}, + +"custom/arrow9": { + "format": "", + "tooltip": false +}, + +"custom/arrow10": { + "format": "", + "tooltip": false +} } \ No newline at end of file diff --git a/config/waybar/configs/[TOP] Arrow b/config/waybar/configs/[TOP] Arrow new file mode 100644 index 00000000..8001d8fb --- /dev/null +++ b/config/waybar/configs/[TOP] Arrow @@ -0,0 +1,43 @@ +/* ----------- 💫 https://github.com/JaKooLit 💫 -------- */ +/* .....[TOP] Arrow Best to combine with [Extra] Arrow Style ......... */ +/* --- 👍 taken from https://github.com/mxkrsv 👍 --- */ + +{ +"include": [ + "$HOME/.config/waybar/Modules", + "$HOME/.config/waybar/ModulesWorkspaces", + "$HOME/.config/waybar/ModulesCustom", + "$HOME/.config/waybar/ModulesGroups", + "$HOME/.config/waybar/UserModules", + ], + + "layer": "top", + "position": "top", + + "modules-left": [ + "hyprland/mode", + "hyprland/workspaces", + "custom/arrow10", + "hyprland/window" + ], + + "modules-right": [ + "custom/arrow9", + "pulseaudio", + "custom/arrow8", + "network", + "custom/arrow7", + "memory", + "custom/arrow6", + "cpu", + "custom/arrow5", + "temperature", + "custom/arrow4", + "battery", + "custom/arrow2", + "tray", + "custom/arrow1", + "clock#2" + ], +} + diff --git a/config/waybar/style/[Extra] Arrow.css b/config/waybar/style/[Extra] Arrow.css new file mode 100644 index 00000000..16aab612 --- /dev/null +++ b/config/waybar/style/[Extra] Arrow.css @@ -0,0 +1,291 @@ +/* ----------- 💫 https://github.com/JaKooLit 💫 -------- */ +/* .....[Extra] Arrow Best to combine with [TOP] Arrow.... */ +/* --- 👍 taken from https://github.com/mxkrsv 👍 --- */ + +* { + font-family: "JetBrainsMono Nerd Font"; + font-weight: bold; + min-height: 0; + /* set font-size to 100% if font scaling is set to 1.00 using nwg-look */ + font-size: 97%; + font-feature-settings: '"zero", "ss01", "ss02", "ss03", "ss04", "ss05", "cv31"'; + border: none; + border-radius: 0; + min-height: 0; + margin: 0; + padding: 0; + box-shadow: none; + text-shadow: none; + icon-shadow: none; +} + +/* Colors (gruvbox) */ +@define-color black #282828; +@define-color red #cc241d; +@define-color green #98971a; +@define-color yellow #d79921; +@define-color blue #458588; +@define-color purple #b16286; +@define-color aqua #689d6a; +@define-color gray #a89984; +@define-color brgray #928374; +@define-color brred #fb4934; +@define-color brgreen #b8bb26; +@define-color bryellow #fabd2f; +@define-color brblue #83a598; +@define-color brpurple #d3869b; +@define-color braqua #8ec07c; +@define-color white #ebdbb2; +@define-color bg2 #504945; + + +@define-color warning @bryellow; +@define-color critical @red; +@define-color mode @black; +@define-color unfocused @bg2; +@define-color focused @braqua; +@define-color inactive @purple; +@define-color sound @brpurple; +@define-color network @purple; +@define-color memory @braqua; +@define-color cpu @green; +@define-color temp @brgreen; +@define-color layout @bryellow; +@define-color battery @aqua; +@define-color date @black; +@define-color time @white; + +/* The whole bar */ +#waybar { + background: rgba(40, 40, 40, 0.8784313725); /* #282828e0 */ + color: @white; +} + +#backlight, +#backlight-slider, +#battery, +#bluetooth, +#clock, +#cpu, +#disk, +#idle_inhibitor, +#keyboard-state, +#memory, +#mode, +#mpris, +#network, +#power-profiles-daemon, +#pulseaudio, +#pulseaudio-slider, +#taskbar, +#temperature, +#tray, +#window, +#wireplumber, +#workspaces, +#custom-backlight, +#custom-browser, +#custom-cava_mviz, +#custom-cycle_wall, +#custom-dot_update, +#custom-file_manager, +#custom-keybinds, +#custom-keyboard, +#custom-light_dark, +#custom-lock, +#custom-hint, +#custom-hypridle, +#custom-menu, +#custom-playerctl, +#custom-power_vertical, +#custom-power, +#custom-quit, +#custom-reboot, +#custom-settings, +#custom-spotify, +#custom-swaync, +#custom-tty, +#custom-updater, +#custom-weather, +#custom-weather.clearNight, +#custom-weather.cloudyFoggyDay, +#custom-weather.cloudyFoggyNight, +#custom-weather.default, +#custom-weather.rainyDay, +#custom-weather.rainyNight, +#custom-weather.severe, +#custom-weather.showyIcyDay, +#custom-weather.snowyIcyNight, +#custom-weather.sunnyDay { + padding-left: 8pt; + padding-right: 8pt; +} + +/* Each critical module */ +#mode, +#memory.critical, +#cpu.critical, +#temperature.critical, +#battery.critical.discharging { + animation-timing-function: linear; + animation-iteration-count: infinite; + animation-direction: alternate; + animation-name: blink-critical; + animation-duration: 1s; +} + +/* Each warning */ +#network.disconnected, +#memory.warning, +#cpu.warning, +#temperature.warning, +#battery.warning.discharging { + color: @warning; +} + +/* Keyframes */ + +@keyframes blink-critical { + to { + /*color: @white;*/ + background-color: @critical; + } +} + +/* Current sway mode (resize etc) */ +#mode { + color: @white; + background: @mode; +} + +/* Workspaces stuff */ +#workspaces button { + /*font-weight: bold;*/ + padding-left: 2pt; + padding-right: 2pt; + color: @white; + background: @unfocused; +} + +/* Inactive (on unfocused output) */ +#workspaces button.visible { + color: @white; + background: @inactive; +} + +/* Active (on focused output) */ +#workspaces button.focused { + color: @black; + background: @focused; +} + +/* Contains an urgent window */ +#workspaces button.urgent { + color: @black; + background: @warning; +} + +/* Style when cursor is on the button */ +#workspaces button:hover { + background: @black; + color: @white; +} + +#window { + margin-right: 35pt; + margin-left: 35pt; +} + +#pulseaudio { + background: @sound; + color: @black; +} + +#network { + background: @network; + color: @white; +} + +#memory { + background: @memory; + color: @black; +} + +#cpu { + background: @cpu; + color: @white; +} + +#temperature { + background: @temp; + color: @black; +} + +#language { + background: @layout; + color: @black; +} + +#battery { + background: @battery; + color: @white; +} + +#tray { + background: @date; +} + +#clock { + background: @time; + color: @black; +} + +#custom-arrow1 { + color: @time; + background: @date; +} + +#custom-arrow2 { + color: @date; + background: @layout; +} + +#custom-arrow3 { + color: @layout; + background: @battery; +} + +#custom-arrow4 { + color: @battery; + background: @temp; +} + +#custom-arrow5 { + color: @temp; + background: @cpu; +} + +#custom-arrow6 { + color: @cpu; + background: @memory; +} + +#custom-arrow7 { + color: @memory; + background: @network; +} + +#custom-arrow8 { + color: @network; + background: @sound; +} + +#custom-arrow9 { + color: @sound; + background: transparent; +} + +#custom-arrow10 { + color: @unfocused; + background: transparent; +} diff --git a/copy.sh b/copy.sh index e821d139..d6d66cf7 100755 --- a/copy.sh +++ b/copy.sh @@ -119,7 +119,7 @@ fi if grep -iq '^\(ID_LIKE\|ID\)=.*\(debian\|ubuntu\)' /etc/os-release >/dev/null 2>&1; then echo "${INFO} Debian/Ubuntu based distro. Disabling pyprland since it does not work properly" 2>&1 | tee -a "$LOG" || true # disabling pyprland as causing issues - sed -i '/^exec-once = pypr &/ s/^/#/' config/hypr/UserConfigs/Startup_Apps.conf + sed -i '/^\s*exec-once = pypr\s*/ s/^/#/' config/hypr/UserConfigs/Startup_Apps.conf fi # activating hyprcursor on env by checking if the directory ~/.icons/Bibata-Modern-Ice/hyprcursors exists @@ -236,17 +236,17 @@ done # Check if asusctl is installed and add rog-control-center on Startup if command -v asusctl >/dev/null 2>&1; then - sed -i '/exec-once = rog-control-center &/s/^#//' config/hypr/UserConfigs/Startup_Apps.conf + sed -i '/^\s*#exec-once = rog-control-center/s/^#//' config/hypr/UserConfigs/Startup_Apps.conf fi # Check if blueman-applet is installed and add blueman-applet on Startup if command -v blueman-applet >/dev/null 2>&1; then - sed -i '/exec-once = blueman-applet &/s/^#//' config/hypr/UserConfigs/Startup_Apps.conf + sed -i '/^\s*#exec-once = blueman-applet/s/^#//' config/hypr/UserConfigs/Startup_Apps.conf fi # Check if ags is installed edit ags behaviour on configs if command -v ags >/dev/null 2>&1; then - sed -i '/#exec-once = ags &/s/^#//' config/hypr/UserConfigs/Startup_Apps.conf + sed -i '/^\s*#exec-once = ags/s/^#//' config/hypr/UserConfigs/Startup_Apps.conf sed -i '/#ags -q && ags &/s/^#//' config/hypr/scripts/RefreshNoWaybar.sh sed -i '/#ags -q && ags &/s/^#//' config/hypr/scripts/Refresh.sh fi @@ -432,7 +432,7 @@ read -p "${CAT} Do you want to disable Rainbow Borders animation? (y/N): " borde if [[ "$border_choice" =~ ^[Yy]$ ]]; then mv config/hypr/UserScripts/RainbowBorders.sh config/hypr/UserScripts/RainbowBorders.bak.sh - sed -i '/exec-once = \$UserScripts\/RainbowBorders.sh \&/s/^/#/' config/hypr/UserConfigs/Startup_Apps.conf + sed -i '/exec-once = \$UserScripts\/RainbowBorders.sh/s/^/#/' config/hypr/UserConfigs/Startup_Apps.conf sed -i '/^[[:space:]]*animation = borderangle, 1, 180, liner, loop/s/^/#/' config/hypr/UserConfigs/UserAnimations.conf echo "${OK} Rainbow borders is now disabled." 2>&1 | tee -a "$LOG" @@ -910,7 +910,7 @@ printf "\n%.0s" {1..1} echo "${MAGENTA}By default only a few wallpapers are copied${RESET}..." while true; do - read -rp "${CAT} Would you like to download additional wallpapers? ${WARN} This is almost 1GB (y/n)" WALL + read -rp "${CAT} Would you like to download additional wallpapers? ${WARN} This is almost 1GB (y/n): " WALL case $WALL in [Yy]) echo "${NOTE} Downloading additional wallpapers..." -- cgit v1.2.3 From 67030abc81bf404b06b2592c3dd0313aa829c7b1 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Sun, 9 Mar 2025 12:02:05 +0900 Subject: added & on pypr as opensuse have issue installing pyprland? --- config/hypr/UserConfigs/Startup_Apps.conf | 2 +- copy.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/hypr/UserConfigs/Startup_Apps.conf b/config/hypr/UserConfigs/Startup_Apps.conf index 2be4e7d7..e5fa2bae 100644 --- a/config/hypr/UserConfigs/Startup_Apps.conf +++ b/config/hypr/UserConfigs/Startup_Apps.conf @@ -38,7 +38,7 @@ exec-once = $UserScripts/RainbowBorders.sh exec-once = hypridle # Start pyprland daemon -exec-once = pypr +exec-once = pypr & # Here are list of features available but disabled by default # exec-once = swww-daemon --format xrgb && swww img $HOME/Pictures/wallpapers/mecha-nostalgia.png # persistent wallpaper diff --git a/copy.sh b/copy.sh index d6d66cf7..47e3ced0 100755 --- a/copy.sh +++ b/copy.sh @@ -119,7 +119,7 @@ fi if grep -iq '^\(ID_LIKE\|ID\)=.*\(debian\|ubuntu\)' /etc/os-release >/dev/null 2>&1; then echo "${INFO} Debian/Ubuntu based distro. Disabling pyprland since it does not work properly" 2>&1 | tee -a "$LOG" || true # disabling pyprland as causing issues - sed -i '/^\s*exec-once = pypr\s*/ s/^/#/' config/hypr/UserConfigs/Startup_Apps.conf + sed -i '/^\s*exec-once = pypr &\s*/ s/^/#/' config/hypr/UserConfigs/Startup_Apps.conf fi # activating hyprcursor on env by checking if the directory ~/.icons/Bibata-Modern-Ice/hyprcursors exists -- cgit v1.2.3 From e31f11a928c6c116fed13d35d67c9852d92fedf3 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Sun, 9 Mar 2025 16:46:37 +0900 Subject: corrected some items in hyprlock.conf --- config/hypr/hyprlock-1080p.conf | 8 ++------ config/hypr/hyprlock.conf | 8 ++------ 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/config/hypr/hyprlock-1080p.conf b/config/hypr/hyprlock-1080p.conf index e4837c73..8fc3b075 100644 --- a/config/hypr/hyprlock-1080p.conf +++ b/config/hypr/hyprlock-1080p.conf @@ -19,7 +19,7 @@ background { #path = $HOME/.config/hypr/wallpaper_effects/.wallpaper_modified # by wallpaper effects path = $HOME/.config/hypr/wallpaper_effects/.wallpaper_current # current wallpaper - color = black # color will be rendered initially until path is available + color = rgb(0,0,0) # color will be rendered initially until path is available # all these options are taken from hyprland, see https://wiki.hyprland.org/Configuring/Variables/#blur for explanations blur_size = 3 @@ -104,10 +104,6 @@ label { monitor = text =  $USER color = $color13 - outline_thickness = 2 - dots_size = 0.2 # Scale of input-field height, 0.2 - 0.8 - dots_spacing = 0.2 # Scale of dots' absolute size, 0.0 - 1.0 - dots_center = true font_size = 24 font_family = Victor Mono Bold Oblique position = 0, 150 @@ -126,7 +122,7 @@ input-field { dots_center = true outer_color = $color11 inner_color = rgba(255, 255, 255, 0.1) - capslock_color = rgba(255, 0, 0) + capslock_color = rgb(255,255,255) font_color = $color13 fade_on_empty = false font_family = Victor Mono Bold Oblique diff --git a/config/hypr/hyprlock.conf b/config/hypr/hyprlock.conf index 5402aee4..a3cbb76f 100644 --- a/config/hypr/hyprlock.conf +++ b/config/hypr/hyprlock.conf @@ -19,7 +19,7 @@ background { #path = $HOME/.config/hypr/wallpaper_effects/.wallpaper_modified # by wallpaper effects path = $HOME/.config/hypr/wallpaper_effects/.wallpaper_current # current wallpaper - color = black # color will be rendered initially until path is available + color = rgb(0,0,0) # color will be rendered initially until path is available # all these options are taken from hyprland, see https://wiki.hyprland.org/Configuring/Variables/#blur for explanations blur_size = 3 @@ -104,10 +104,6 @@ label { monitor = text =  $USER color = $color13 - outline_thickness = 2 - dots_size = 0.2 # Scale of input-field height, 0.2 - 0.8 - dots_spacing = 0.2 # Scale of dots' absolute size, 0.0 - 1.0 - dots_center = true font_size = 24 font_family = Victor Mono Bold Oblique position = 0, 200 @@ -127,7 +123,7 @@ input-field { outer_color = $color11 inner_color = rgba(255, 255, 255, 0.1) font_color = $color13 - capslock_color = rgba(255, 0, 0) + capslock_color = rgb(255,255,255) fade_on_empty = false font_family = Victor Mono Bold Oblique placeholder_text = 🔒 Type Password -- cgit v1.2.3 From 1b09761971b8793cde64bad17200c3e404ef3ac7 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Sun, 9 Mar 2025 17:40:19 +0900 Subject: minor notes update in ENVariables.conf --- config/hypr/UserConfigs/ENVariables.conf | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/config/hypr/UserConfigs/ENVariables.conf b/config/hypr/UserConfigs/ENVariables.conf index a0ba2c15..3ab9e94e 100644 --- a/config/hypr/UserConfigs/ENVariables.conf +++ b/config/hypr/UserConfigs/ENVariables.conf @@ -2,7 +2,9 @@ # Environment variables. See https://wiki.hyprland.org/Configuring/Environment-variables/ # Set your defaults here -#env = EDITOR,vim #default editor +#env = EDITOR,vim #default editor +# NOTE: v2.3.13 - this is moved to ~/.config/hypr/UserConfigs/01-UserDefaults.conf +# This line will be removed in v2.3.14 # environment-variables # Toolkit Backend Variables -- cgit v1.2.3 From 6f5e8a6db7ebceeb0640b4debfa2d8a90c449ec5 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Sun, 9 Mar 2025 17:49:23 +0900 Subject: added shebang on rofiserch.sh cause debian and ubuntu cannot interpret as script without shebang --- config/hypr/scripts/RofiSearch.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/config/hypr/scripts/RofiSearch.sh b/config/hypr/scripts/RofiSearch.sh index e4b4f6af..aa20546d 100755 --- a/config/hypr/scripts/RofiSearch.sh +++ b/config/hypr/scripts/RofiSearch.sh @@ -1,3 +1,4 @@ +#!/bin/bash # /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## # For Searching via web browsers -- cgit v1.2.3 From ba87c54ce748e40df2fbae2593fe9493fd73177f Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Sun, 9 Mar 2025 19:18:12 +0900 Subject: some adjustments on dark-light switcher. SwayNC notibg-alt is now from directly from wallust --- config/hypr/scripts/DarkLight.sh | 4 +-- config/swaync/style.css | 2 +- config/wallust/templates/colors-waybar.css | 41 +++++++++++++++--------------- config/waybar/wallust/colors-waybar.css | 41 +++++++++++++++--------------- 4 files changed, 45 insertions(+), 43 deletions(-) diff --git a/config/hypr/scripts/DarkLight.sh b/config/hypr/scripts/DarkLight.sh index d34554fa..96d43fa7 100755 --- a/config/hypr/scripts/DarkLight.sh +++ b/config/hypr/scripts/DarkLight.sh @@ -85,10 +85,10 @@ notify_user "$next_mode" # swaync color change if [ "$next_mode" = "Dark" ]; then sed -i '/@define-color noti-bg/s/rgba([0-9]*,\s*[0-9]*,\s*[0-9]*,\s*[0-9.]*);/rgba(0, 0, 0, 0.8);/' "${swaync_style}" - sed -i '/@define-color noti-bg-alt/s/#.*;/#111111;/' "${swaync_style}" + #sed -i '/@define-color noti-bg-alt/s/#.*;/#111111;/' "${swaync_style}" else sed -i '/@define-color noti-bg/s/rgba([0-9]*,\s*[0-9]*,\s*[0-9]*,\s*[0-9.]*);/rgba(255, 255, 255, 0.9);/' "${swaync_style}" - sed -i '/@define-color noti-bg-alt/s/#.*;/#F0F0F0;/' "${swaync_style}" + #sed -i '/@define-color noti-bg-alt/s/#.*;/#F0F0F0;/' "${swaync_style}" fi # ags color change diff --git a/config/swaync/style.css b/config/swaync/style.css index a9dc328f..1aed332c 100755 --- a/config/swaync/style.css +++ b/config/swaync/style.css @@ -5,7 +5,7 @@ @define-color noti-border-color @color12; @define-color noti-bg rgba(0, 0, 0, 0.8); -@define-color noti-bg-alt #111111; +@define-color noti-bg-alt @background-alt; @define-color noti-bg-hover @background; @define-color text-color @foreground; diff --git a/config/wallust/templates/colors-waybar.css b/config/wallust/templates/colors-waybar.css index 32d21310..c59e4914 100644 --- a/config/wallust/templates/colors-waybar.css +++ b/config/wallust/templates/colors-waybar.css @@ -1,23 +1,24 @@ /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ /* wallust template - colors-waybar */ -@define-color foreground {{foreground}}; -@define-color background rgba({{background | rgb}},0.25); -@define-color cursor {{cursor}}; - -@define-color color0 {{color0}}; -@define-color color1 {{color1}}; -@define-color color2 {{color2}}; -@define-color color3 {{color3}}; -@define-color color4 {{color4}}; -@define-color color5 {{color5}}; -@define-color color6 {{color6}}; -@define-color color7 {{color7}}; -@define-color color8 {{color8}}; -@define-color color9 {{color9}}; -@define-color color10 {{color10}}; -@define-color color11 {{color11}}; -@define-color color12 {{color12}}; -@define-color color13 {{color13}}; -@define-color color14 {{color14}}; -@define-color color15 {{color15}}; + @define-color foreground {{foreground}}; + @define-color background {{background}}; + @define-color background-alt rgba({{background | rgb}},0.25); + @define-color cursor {{cursor}}; + + @define-color color0 {{color0}}; + @define-color color1 {{color1}}; + @define-color color2 {{color2}}; + @define-color color3 {{color3}}; + @define-color color4 {{color4}}; + @define-color color5 {{color5}}; + @define-color color6 {{color6}}; + @define-color color7 {{color7}}; + @define-color color8 {{color8}}; + @define-color color9 {{color9}}; + @define-color color10 {{color10}}; + @define-color color11 {{color11}}; + @define-color color12 {{color12}}; + @define-color color13 {{color13}}; + @define-color color14 {{color14}}; + @define-color color15 {{color15}}; \ No newline at end of file diff --git a/config/waybar/wallust/colors-waybar.css b/config/waybar/wallust/colors-waybar.css index 102446b3..b2afbce4 100644 --- a/config/waybar/wallust/colors-waybar.css +++ b/config/waybar/wallust/colors-waybar.css @@ -1,23 +1,24 @@ /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ /* wallust template - colors-waybar */ -@define-color foreground #ACF2F1; -@define-color background rgba(30,21,22,0.25); -@define-color cursor #ACF2F1; - -@define-color color0 #463C3D; -@define-color color1 #181916; -@define-color color2 #073122; -@define-color color3 #073122; -@define-color color4 #0E455E; -@define-color color5 #0D942F; -@define-color color6 #0DA4A1; -@define-color color7 #80E4E2; -@define-color color8 #59A09E; -@define-color color9 #20211D; -@define-color color10 #09422D; -@define-color color11 #09422D; -@define-color color12 #135C7D; -@define-color color13 #11C63F; -@define-color color14 #11DAD6; -@define-color color15 #80E4E2; + @define-color foreground #F9E3DF; + @define-color background #151316; + @define-color background-alt rgba(21,19,22,0.25); + @define-color cursor #F9E3DF; + + @define-color color0 #3D3A3E; + @define-color color1 #190E1E; + @define-color color2 #191F64; + @define-color color3 #482C5B; + @define-color color4 #5F3A79; + @define-color color5 #783E51; + @define-color color6 #B2827B; + @define-color color7 #EECEC9; + @define-color color8 #A6908D; + @define-color color9 #211328; + @define-color color10 #222985; + @define-color color11 #603A79; + @define-color color12 #7F4EA2; + @define-color color13 #A0536C; + @define-color color14 #EDAEA4; + @define-color color15 #EECEC9; \ No newline at end of file -- cgit v1.2.3 From 6fffb117dd4b241a1b6dad1677cdb9f308de0b06 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Sun, 9 Mar 2025 20:45:45 +0900 Subject: added gamemode on KooDotSettings-Menu --- config/hypr/scripts/Kool_Quick_Settings.sh | 2 ++ config/hypr/scripts/MonitorProfiles.sh | 3 +++ 2 files changed, 5 insertions(+) diff --git a/config/hypr/scripts/Kool_Quick_Settings.sh b/config/hypr/scripts/Kool_Quick_Settings.sh index a09bced6..b26f5beb 100755 --- a/config/hypr/scripts/Kool_Quick_Settings.sh +++ b/config/hypr/scripts/Kool_Quick_Settings.sh @@ -37,6 +37,7 @@ Choose Hyprland Animations Choose Monitor Profiles Choose Rofi Themes Search for Keybinds +Toggle Game Mode EOF } @@ -71,6 +72,7 @@ main() { "Choose Monitor Profiles") $scriptsDir/MonitorProfiles.sh ;; "Choose Rofi Themes") $scriptsDir/RofiThemeSelector.sh ;; "Search for Keybinds") $scriptsDir/KeyBinds.sh ;; + "Toggle Game Mode") $scriptsDir/GameMode.sh ;; *) return ;; # Do nothing for invalid choices esac diff --git a/config/hypr/scripts/MonitorProfiles.sh b/config/hypr/scripts/MonitorProfiles.sh index 6414e826..67316c09 100755 --- a/config/hypr/scripts/MonitorProfiles.sh +++ b/config/hypr/scripts/MonitorProfiles.sh @@ -37,3 +37,6 @@ if [[ -n "$chosen_file" ]]; then notify-send -u low -i "$iDIR/ja.png" "$chosen_file" "Monitor Profile Loaded" fi + +sleep 1 +${SCRIPTSDIR}/RefreshNoWaybar.sh & \ No newline at end of file -- cgit v1.2.3 From 9d7c47195acead56a7836be85b86ea5fd1a02165 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Sun, 9 Mar 2025 23:37:03 +0900 Subject: Added Distro-Hyprland.sh --- Distro-Hyprland.sh | 141 +++++++++++++++++++++++++++++++++++++++++++++++++++++ README.md | 6 +++ 2 files changed, 147 insertions(+) create mode 100755 Distro-Hyprland.sh diff --git a/Distro-Hyprland.sh b/Distro-Hyprland.sh new file mode 100755 index 00000000..b367b013 --- /dev/null +++ b/Distro-Hyprland.sh @@ -0,0 +1,141 @@ +#!/bin/bash +# https://github.com/JaKooLit + +# Script design to clone the Distro-Hyprland install scripts + +# Set some colors for output messages +OK="$(tput setaf 2)[OK]$(tput sgr0)" +ERROR="$(tput setaf 1)[ERROR]$(tput sgr0)" +NOTE="$(tput setaf 3)[NOTE]$(tput sgr0)" +INFO="$(tput setaf 4)[INFO]$(tput sgr0)" +WARN="$(tput setaf 1)[WARN]$(tput sgr0)" +CAT="$(tput setaf 6)[ACTION]$(tput sgr0)" +MAGENTA="$(tput setaf 5)" +ORANGE="$(tput setaf 214)" +WARNING="$(tput setaf 1)" +YELLOW="$(tput setaf 3)" +GREEN="$(tput setaf 2)" +BLUE="$(tput setaf 4)" +SKY_BLUE="$(tput setaf 6)" +RESET="$(tput sgr0)" + +# Detect the current distribution using /etc/os-release +if [ -f /etc/os-release ]; then + . /etc/os-release + distro_name=$NAME + distro_version=$VERSION_ID +else + echo "${ERROR} Unable to detect the distribution. Exiting." + exit 1 +fi + +# Define package managers, Git install commands, and dynamic variables for each distro +if [ "$distro_name" == "Arch Linux" ]; then + PACKAGE_MANAGER="pacman" + INSTALL_CMD="sudo pacman -S --noconfirm" + GIT_INSTALL_CMD="sudo pacman -S git --noconfirm" + Distro="Arch-Hyprland" + Github_URL="https://github.com/JaKooLit/$Distro.git" + Distro_DIR="$HOME/$Distro" +elif [ "$distro_name" == "Fedora" ]; then + PACKAGE_MANAGER="dnf" + INSTALL_CMD="sudo dnf install -y" + GIT_INSTALL_CMD="sudo dnf install -y git" + Distro="Fedora-Hyprland" + Github_URL="https://github.com/JaKooLit/$Distro.git" + Distro_DIR="$HOME/$Distro" +elif [ "$distro_name" == "openSUSE" ]; then + PACKAGE_MANAGER="zypper" + INSTALL_CMD="sudo zypper install -y" + GIT_INSTALL_CMD="sudo zypper install -y git" + Distro="OpenSUSE-Hyprland" + Github_URL="https://github.com/JaKooLit/$Distro.git" + Distro_DIR="$HOME/$Distro" +elif [ "$distro_name" == "NixOS" ]; then + PACKAGE_MANAGER="nix" + INSTALL_CMD="nix-shell" + GIT_INSTALL_CMD="nix-shell -p git curl pciutils" + Distro="NixOS-Hyprland" + Github_URL="https://github.com/JaKooLit/$Distro.git" + Distro_DIR="$HOME/$Distro" +elif [ "$distro_name" == "Debian" ]; then + PACKAGE_MANAGER="apt" + INSTALL_CMD="sudo apt install -y" + GIT_INSTALL_CMD="sudo apt install -y git" + Distro="Debian-Hyprland" + Github_URL="https://github.com/JaKooLit/$Distro.git" + Distro_DIR="$HOME/$Distro" +elif [ "$distro_name" == "Ubuntu" ]; then + PACKAGE_MANAGER="apt" + INSTALL_CMD="sudo apt install -y" + GIT_INSTALL_CMD="sudo apt install -y git" + + case "$distro_version" in + "24.04") + Distro="Ubuntu-Hyprland" + Github_URL="https://github.com/JaKooLit/$Distro.git" + Github_URL_branch="24.04" + Distro_DIR="$HOME/$Distro" + echo "${INFO} Ubuntu 24.04 detected. Customizing setup for Ubuntu 24.04." + ;; + "24.10") + Distro="Ubuntu-Hyprland" + Github_URL="https://github.com/JaKooLit/$Distro.git" + Github_URL_branch="24.10" + Distro_DIR="$HOME/$Distro" + echo "${INFO} Ubuntu 24.10 detected. Customizing setup for Ubuntu 24.10." + ;; + "25.04") + Distro="Ubuntu-Hyprland" + Github_URL="https://github.com/JaKooLit/$Distro.git" + Github_URL_branch="25.04" + Distro_DIR="$HOME/$Distro" + echo "${INFO} Ubuntu 25.04 detected. Customizing setup for Ubuntu 25.04." + ;; + *) + Distro="Ubuntu-Hyprland" + Github_URL="https://github.com/JaKooLit/$Distro.git" + Distro_DIR="$HOME/$Distro" + echo "${INFO} Ubuntu version $distro_version detected. Using default Ubuntu setup." + ;; + esac +else + echo "${ERROR} Unsupported distribution: $distro_name. Exiting." + exit 1 +fi + +# Check for Git and install if not found +printf "\n%.0s" {1..1} + +if ! command -v git &> /dev/null +then + echo "${INFO} Git not found! ${SKY_BLUE}Installing Git...${RESET}" + if ! $GIT_INSTALL_CMD; then + echo "${ERROR} Failed to install Git. Exiting." + exit 1 + fi +fi + +# Check if the directory already exists and perform clone or update +printf "\n%.0s" {1..1} + +if [ -d "$Distro_DIR" ]; then + echo "${YELLOW}$Distro_DIR exists. Updating the repository... ${RESET}" + cd "$Distro_DIR" + git stash && git pull + chmod +x install.sh + ./install.sh +else + echo "${MAGENTA}$Distro_DIR does not exist. Cloning the repository...${RESET}" + + # Clone the specific branch for Ubuntu versions only + if [ "$distro_name" == "Ubuntu" ]; then + git clone --depth=1 -b "$Github_URL_branch" "$Github_URL" "$Distro_DIR" + else + git clone --depth=1 "$Github_URL" "$Distro_DIR" + fi + + cd "$Distro_DIR" + chmod +x install.sh + ./install.sh +fi diff --git a/README.md b/README.md index 193ee3e6..3d2ae31e 100644 --- a/README.md +++ b/README.md @@ -44,6 +44,12 @@ https://github.com/user-attachments/assets/49bc12b2-abaf-45de-a21c-67aacd9bb872 +## Auto Distro-Hyprland install scripts cloning (BETA) +- NOTE still on beta. will change the development to main b4 merging to main and once all distro are tested +```bash +sh <(curl -L https://raw.githubusercontent.com/JaKooLit/Hyprland-Dots/development/Distro-Hyprland.sh) +``` + ## Installation ### 👁️‍🗨️ My Hyprland install Scripts 👁️‍🗨️ - Automated Hyprland Scripts for Distro of choice which will pull this dotfiles if opted to install these configurations -- cgit v1.2.3 From 9ced69fb62fd71e0f9363e10b851c6a960ec35df Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Mon, 10 Mar 2025 00:05:24 +0900 Subject: updated for Debian --- Distro-Hyprland.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Distro-Hyprland.sh b/Distro-Hyprland.sh index b367b013..94ac0a08 100755 --- a/Distro-Hyprland.sh +++ b/Distro-Hyprland.sh @@ -58,7 +58,7 @@ elif [ "$distro_name" == "NixOS" ]; then Distro="NixOS-Hyprland" Github_URL="https://github.com/JaKooLit/$Distro.git" Distro_DIR="$HOME/$Distro" -elif [ "$distro_name" == "Debian" ]; then +elif [ "$distro_name" == "Debian GNU/Linux" ]; then PACKAGE_MANAGER="apt" INSTALL_CMD="sudo apt install -y" GIT_INSTALL_CMD="sudo apt install -y git" -- cgit v1.2.3 From dfd430055a153a01a44cc9519d7dac4d1189352d Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Mon, 10 Mar 2025 00:19:23 +0900 Subject: adjusted to use package manager instead --- Distro-Hyprland.sh | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/Distro-Hyprland.sh b/Distro-Hyprland.sh index 94ac0a08..7eb4d39f 100755 --- a/Distro-Hyprland.sh +++ b/Distro-Hyprland.sh @@ -30,28 +30,28 @@ else fi # Define package managers, Git install commands, and dynamic variables for each distro -if [ "$distro_name" == "Arch Linux" ]; then +if command -v pacman &> /dev/null; then PACKAGE_MANAGER="pacman" INSTALL_CMD="sudo pacman -S --noconfirm" GIT_INSTALL_CMD="sudo pacman -S git --noconfirm" Distro="Arch-Hyprland" Github_URL="https://github.com/JaKooLit/$Distro.git" Distro_DIR="$HOME/$Distro" -elif [ "$distro_name" == "Fedora" ]; then +elif command -v dnf &> /dev/null; then PACKAGE_MANAGER="dnf" INSTALL_CMD="sudo dnf install -y" GIT_INSTALL_CMD="sudo dnf install -y git" Distro="Fedora-Hyprland" Github_URL="https://github.com/JaKooLit/$Distro.git" Distro_DIR="$HOME/$Distro" -elif [ "$distro_name" == "openSUSE" ]; then +elif command -v zypper &> /dev/null; then PACKAGE_MANAGER="zypper" INSTALL_CMD="sudo zypper install -y" GIT_INSTALL_CMD="sudo zypper install -y git" Distro="OpenSUSE-Hyprland" Github_URL="https://github.com/JaKooLit/$Distro.git" Distro_DIR="$HOME/$Distro" -elif [ "$distro_name" == "NixOS" ]; then +elif command -v nix &> /dev/null; then PACKAGE_MANAGER="nix" INSTALL_CMD="nix-shell" GIT_INSTALL_CMD="nix-shell -p git curl pciutils" @@ -105,10 +105,7 @@ else fi # Check for Git and install if not found -printf "\n%.0s" {1..1} - -if ! command -v git &> /dev/null -then +if ! command -v git &> /dev/null; then echo "${INFO} Git not found! ${SKY_BLUE}Installing Git...${RESET}" if ! $GIT_INSTALL_CMD; then echo "${ERROR} Failed to install Git. Exiting." @@ -117,8 +114,6 @@ then fi # Check if the directory already exists and perform clone or update -printf "\n%.0s" {1..1} - if [ -d "$Distro_DIR" ]; then echo "${YELLOW}$Distro_DIR exists. Updating the repository... ${RESET}" cd "$Distro_DIR" @@ -130,6 +125,7 @@ else # Clone the specific branch for Ubuntu versions only if [ "$distro_name" == "Ubuntu" ]; then + echo "${INFO} Cloning from branch ${Github_URL_branch} for Ubuntu $distro_version." git clone --depth=1 -b "$Github_URL_branch" "$Github_URL" "$Distro_DIR" else git clone --depth=1 "$Github_URL" "$Distro_DIR" -- cgit v1.2.3 From a57353a4d95ab8f6279e77d9da3df246f8fc00d0 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Mon, 10 Mar 2025 00:20:24 +0900 Subject: updated for nixos --- Distro-Hyprland.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Distro-Hyprland.sh b/Distro-Hyprland.sh index 7eb4d39f..b92fa1f9 100755 --- a/Distro-Hyprland.sh +++ b/Distro-Hyprland.sh @@ -51,7 +51,7 @@ elif command -v zypper &> /dev/null; then Distro="OpenSUSE-Hyprland" Github_URL="https://github.com/JaKooLit/$Distro.git" Distro_DIR="$HOME/$Distro" -elif command -v nix &> /dev/null; then +elif [ "$distro_name" == "NixOS" ]; then PACKAGE_MANAGER="nix" INSTALL_CMD="nix-shell" GIT_INSTALL_CMD="nix-shell -p git curl pciutils" -- cgit v1.2.3 From 8fb7cccc56aef190a165d3998b06e0d8824f0b87 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Mon, 10 Mar 2025 00:25:28 +0900 Subject: some changes --- Distro-Hyprland.sh | 60 +++++++++++++++++++++++++++--------------------------- 1 file changed, 30 insertions(+), 30 deletions(-) diff --git a/Distro-Hyprland.sh b/Distro-Hyprland.sh index b92fa1f9..0be7c4f6 100755 --- a/Distro-Hyprland.sh +++ b/Distro-Hyprland.sh @@ -30,35 +30,7 @@ else fi # Define package managers, Git install commands, and dynamic variables for each distro -if command -v pacman &> /dev/null; then - PACKAGE_MANAGER="pacman" - INSTALL_CMD="sudo pacman -S --noconfirm" - GIT_INSTALL_CMD="sudo pacman -S git --noconfirm" - Distro="Arch-Hyprland" - Github_URL="https://github.com/JaKooLit/$Distro.git" - Distro_DIR="$HOME/$Distro" -elif command -v dnf &> /dev/null; then - PACKAGE_MANAGER="dnf" - INSTALL_CMD="sudo dnf install -y" - GIT_INSTALL_CMD="sudo dnf install -y git" - Distro="Fedora-Hyprland" - Github_URL="https://github.com/JaKooLit/$Distro.git" - Distro_DIR="$HOME/$Distro" -elif command -v zypper &> /dev/null; then - PACKAGE_MANAGER="zypper" - INSTALL_CMD="sudo zypper install -y" - GIT_INSTALL_CMD="sudo zypper install -y git" - Distro="OpenSUSE-Hyprland" - Github_URL="https://github.com/JaKooLit/$Distro.git" - Distro_DIR="$HOME/$Distro" -elif [ "$distro_name" == "NixOS" ]; then - PACKAGE_MANAGER="nix" - INSTALL_CMD="nix-shell" - GIT_INSTALL_CMD="nix-shell -p git curl pciutils" - Distro="NixOS-Hyprland" - Github_URL="https://github.com/JaKooLit/$Distro.git" - Distro_DIR="$HOME/$Distro" -elif [ "$distro_name" == "Debian GNU/Linux" ]; then +if [ "$distro_name" == "Debian GNU/Linux" ]; then PACKAGE_MANAGER="apt" INSTALL_CMD="sudo apt install -y" GIT_INSTALL_CMD="sudo apt install -y git" @@ -99,6 +71,34 @@ elif [ "$distro_name" == "Ubuntu" ]; then echo "${INFO} Ubuntu version $distro_version detected. Using default Ubuntu setup." ;; esac +elif command -v pacman &> /dev/null; then + PACKAGE_MANAGER="pacman" + INSTALL_CMD="sudo pacman -S --noconfirm" + GIT_INSTALL_CMD="sudo pacman -S git --noconfirm" + Distro="Arch-Hyprland" + Github_URL="https://github.com/JaKooLit/$Distro.git" + Distro_DIR="$HOME/$Distro" +elif command -v dnf &> /dev/null; then + PACKAGE_MANAGER="dnf" + INSTALL_CMD="sudo dnf install -y" + GIT_INSTALL_CMD="sudo dnf install -y git" + Distro="Fedora-Hyprland" + Github_URL="https://github.com/JaKooLit/$Distro.git" + Distro_DIR="$HOME/$Distro" +elif command -v zypper &> /dev/null; then + PACKAGE_MANAGER="zypper" + INSTALL_CMD="sudo zypper install -y" + GIT_INSTALL_CMD="sudo zypper install -y git" + Distro="OpenSUSE-Hyprland" + Github_URL="https://github.com/JaKooLit/$Distro.git" + Distro_DIR="$HOME/$Distro" +elif [ "$distro_name" == "NixOS" ]; then + PACKAGE_MANAGER="nix" + INSTALL_CMD="nix-shell" + GIT_INSTALL_CMD="nix-shell -p git curl pciutils" + Distro="NixOS-Hyprland" + Github_URL="https://github.com/JaKooLit/$Distro.git" + Distro_DIR="$HOME/$Distro" else echo "${ERROR} Unsupported distribution: $distro_name. Exiting." exit 1 @@ -134,4 +134,4 @@ else cd "$Distro_DIR" chmod +x install.sh ./install.sh -fi +fi \ No newline at end of file -- cgit v1.2.3 From 76a3903bb29294f86acdf1f40995d9e4471ce07f Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Mon, 10 Mar 2025 00:30:19 +0900 Subject: some changes --- Distro-Hyprland.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Distro-Hyprland.sh b/Distro-Hyprland.sh index 0be7c4f6..ff0bae03 100755 --- a/Distro-Hyprland.sh +++ b/Distro-Hyprland.sh @@ -30,14 +30,14 @@ else fi # Define package managers, Git install commands, and dynamic variables for each distro -if [ "$distro_name" == "Debian GNU/Linux" ]; then +if [ "$distro_name" = "Debian GNU/Linux" ]; then PACKAGE_MANAGER="apt" INSTALL_CMD="sudo apt install -y" GIT_INSTALL_CMD="sudo apt install -y git" Distro="Debian-Hyprland" Github_URL="https://github.com/JaKooLit/$Distro.git" Distro_DIR="$HOME/$Distro" -elif [ "$distro_name" == "Ubuntu" ]; then +elif [ "$distro_name" = "Ubuntu" ]; then PACKAGE_MANAGER="apt" INSTALL_CMD="sudo apt install -y" GIT_INSTALL_CMD="sudo apt install -y git" @@ -92,7 +92,7 @@ elif command -v zypper &> /dev/null; then Distro="OpenSUSE-Hyprland" Github_URL="https://github.com/JaKooLit/$Distro.git" Distro_DIR="$HOME/$Distro" -elif [ "$distro_name" == "NixOS" ]; then +elif [ "$distro_name" = "NixOS" ]; then PACKAGE_MANAGER="nix" INSTALL_CMD="nix-shell" GIT_INSTALL_CMD="nix-shell -p git curl pciutils" @@ -124,7 +124,7 @@ else echo "${MAGENTA}$Distro_DIR does not exist. Cloning the repository...${RESET}" # Clone the specific branch for Ubuntu versions only - if [ "$distro_name" == "Ubuntu" ]; then + if [ "$distro_name" = "Ubuntu" ]; then echo "${INFO} Cloning from branch ${Github_URL_branch} for Ubuntu $distro_version." git clone --depth=1 -b "$Github_URL_branch" "$Github_URL" "$Distro_DIR" else @@ -134,4 +134,4 @@ else cd "$Distro_DIR" chmod +x install.sh ./install.sh -fi \ No newline at end of file +fi -- cgit v1.2.3 From 631086a867badbe8c365f1170b171a7ffc135884 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Mon, 10 Mar 2025 00:43:43 +0900 Subject: added Distro-Hyprland install script --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 3d2ae31e..8c0ae111 100644 --- a/README.md +++ b/README.md @@ -44,10 +44,11 @@ https://github.com/user-attachments/assets/49bc12b2-abaf-45de-a21c-67aacd9bb872 -## Auto Distro-Hyprland install scripts cloning (BETA) -- NOTE still on beta. will change the development to main b4 merging to main and once all distro are tested +## Auto Distro-Hyprland install scripts cloning +- NOTE: you need package `curl` for this to work + ```bash -sh <(curl -L https://raw.githubusercontent.com/JaKooLit/Hyprland-Dots/development/Distro-Hyprland.sh) +sh <(curl -L https://raw.githubusercontent.com/JaKooLit/Hyprland-Dots/main/Distro-Hyprland.sh) ``` ## Installation -- cgit v1.2.3