diff options
| author | Ja.KooLit <jimmielovejay@gmail.com> | 2023-12-22 11:22:39 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-22 11:22:39 +0900 |
| commit | eeb0b93d8b4eab212c698b17ddaa15e71352ae0d (patch) | |
| tree | 0d428dedd9267c35bf2b9a3803be4c33597c6f13 /config/hypr | |
| parent | be0d3cede8df46613930ccc00ef14bb1e5929506 (diff) | |
| parent | ff5e228c55b3ec83683c025dd0ab56840154404a (diff) | |
Merge pull request #87 from JaKooLit/Development
Development
Diffstat (limited to 'config/hypr')
| -rw-r--r-- | config/hypr/configs/Execs.conf | 6 | ||||
| -rwxr-xr-x | config/hypr/initial-boot.sh | 12 | ||||
| -rwxr-xr-x | config/hypr/scripts/DarkLight.sh | 17 | ||||
| -rw-r--r-- | config/hypr/v2.2.1 (renamed from config/hypr/v2.2) | 0 |
4 files changed, 30 insertions, 5 deletions
diff --git a/config/hypr/configs/Execs.conf b/config/hypr/configs/Execs.conf index 76ec382b..e9f9dcdc 100644 --- a/config/hypr/configs/Execs.conf +++ b/config/hypr/configs/Execs.conf @@ -6,9 +6,6 @@ $lock = $scriptsDir/LockScreen.sh $SwwwRandom = $scriptsDir/WallpaperRandom.sh $WallpaperPath = $HOME/Pictures/wallpapers -# Initial boot script to start Pywal and Set wallpaper. This line and corresponding script can be safely deleted once logged in -exec-once = $HOME/.config/hypr/initial-boot.sh - # wallpaper stuff / More wallpaper options below exec-once = swww query || swww init exec-once = $SwwwRandom $WallpaperPath # random wallpaper switcher every 30 minutes @@ -34,6 +31,9 @@ exec-once = wl-paste --type image --watch cliphist store # Rainbow borders exec-once = $scriptsDir/RainbowBorders.sh +# Initial boot script to start Pywal and Set wallpaper. This line and corresponding script can be safely deleted once logged in +exec-once = $HOME/.config/hypr/initial-boot.sh + # sway-idle with lock only exec-once = swayidle -w timeout 900 '$lock' # sway-idle with lock and sleep diff --git a/config/hypr/initial-boot.sh b/config/hypr/initial-boot.sh index 1ab8b018..a51f479b 100755 --- a/config/hypr/initial-boot.sh +++ b/config/hypr/initial-boot.sh @@ -8,6 +8,8 @@ # Variables scriptsDir=$HOME/.config/hypr/scripts wallpaper=$HOME/Pictures/wallpapers/Cute-Cat_ja.png +waybar_style="$HOME/.config/waybar/configs/[Pywal] Chroma Fusion.css" +kvantum_theme="Tokyo-Night" swww="swww img" effect="--transition-bezier .43,1.19,1,.4 --transition-fps 30 --transition-type grow --transition-pos 0.925,0.977 --transition-duration 2" @@ -16,14 +18,17 @@ effect="--transition-bezier .43,1.19,1,.4 --transition-fps 30 --transition-type if [ ! -f ~/.config/hypr/.initial_startup_done ]; then # Initialize pywal - printf " Initializing pywal........\n\n" + #printf " Initializing pywal........\n\n" wal -i $wallpaper -s -t # 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" + # Initial waybar style + ln -sf "$waybar_style" "$HOME/.config/waybar/style.css" + # Initial scripts to load in order to have a proper wallpaper waybar and pywal themes - swww init || swww query && $swww "$wallpaper" $effect + swww query && $swww "$wallpaper" $effect # Refreshing waybar, dunst, rofi etc. "$scriptsDir/PywalSwww.sh" > /dev/null 2>&1 & @@ -35,6 +40,9 @@ if [ ! -f ~/.config/hypr/.initial_startup_done ]; then gsettings set org.gnome.desktop.interface cursor-theme Bibata-Modern-Ice > /dev/null 2>&1 & gsettings set org.gnome.desktop.interface cursor-size 24 > /dev/null 2>&1 & + # initiate kvantum theme + kvantummanager --set "$kvantum_theme" > /dev/null 2>&1 & + # initiate the kb_layout (for some reason) waybar cant launch it "$scriptsDir/SwitchKeyboardLayout.sh" > /dev/null 2>&1 & diff --git a/config/hypr/scripts/DarkLight.sh b/config/hypr/scripts/DarkLight.sh index 628baa41..dd8f6e46 100755 --- a/config/hypr/scripts/DarkLight.sh +++ b/config/hypr/scripts/DarkLight.sh @@ -45,9 +45,15 @@ set_waybar_style() { if [ "$(cat ~/.cache/.wallpaper_mode)" = "Light" ]; then next_mode="Dark" wallpaper_path="$dark_wallpapers" + kvantum_theme="Tokyo-Night" + qt5ct_color_scheme="$HOME/.config/qt5ct/colors/Tokyo-Night.conf" + qt6ct_color_scheme="$HOME/.config/qt6ct/colors/Tokyo-Night.conf" else next_mode="Light" wallpaper_path="$light_wallpapers" + kvantum_theme="Tokyo-Day" + qt5ct_color_scheme="$HOME/.config/qt5ct/colors/Tokyo-Day.conf" + qt6ct_color_scheme="$HOME/.config/qt6ct/colors/Tokyo-Day.conf" fi # Call the function after determining the mode @@ -64,6 +70,12 @@ else sed -i '/foreground = /s/.*/ foreground = "#00000095"/' "${dunst_config}/dunstrc" fi +# QT APPS Change Kvantum Manager theme & QT5CT Settings +# QT Icons at below with GTK Icons +kvantummanager --set "$kvantum_theme" +sed -i "s|^color_scheme_path=.*$|color_scheme_path=$qt5ct_color_scheme|" "$HOME/.config/qt5ct/qt5ct.conf" +sed -i "s|^color_scheme_path=.*$|color_scheme_path=$qt6ct_color_scheme|" "$HOME/.config/qt6ct/qt6ct.conf" + # Set Rofi Themes if [ "$next_mode" = "Dark" ]; then ln -sf $dark_rofi_pywal "$HOME/.config/rofi/pywal-color/pywal-theme.rasi" @@ -136,11 +148,16 @@ set_custom_gtk_theme() { fi echo "Selected icon theme for $mode mode: $selected_icon" gsettings set $icon_setting "$selected_icon" + + ## QT5ct icon_theme + sed -i "s|^icon_theme=.*$|icon_theme=$selected_icon|" "$HOME/.config/qt5ct/qt5ct.conf" + sed -i "s|^icon_theme=.*$|icon_theme=$selected_icon|" "$HOME/.config/qt6ct/qt6ct.conf" else echo "No $mode icon theme found" fi } + # Call the function to set GTK theme and icon theme based on mode set_custom_gtk_theme "$next_mode" diff --git a/config/hypr/v2.2 b/config/hypr/v2.2.1 index 31b3414d..31b3414d 100644 --- a/config/hypr/v2.2 +++ b/config/hypr/v2.2.1 |
