From e9b1a95801f5ce02165ea8a960d9803daf1449b8 Mon Sep 17 00:00:00 2001 From: klpod221 Date: Thu, 26 Oct 2023 15:35:16 +0700 Subject: [PATCH] img engine --- configs/.config/hypr/keybindings.conf | 4 ++-- .../.config/hypr/scripts/wallbashspotify.sh | 20 ++++++++++++++++ configs/.config/hypr/wallbash/spicetify.dcol | 23 +++++++++++++++++++ lists/default_pkg.lst | 2 +- scripts/install_cfg.sh | 2 -- scripts/install_nvm.sh | 20 ++++++++++++++++ 6 files changed, 66 insertions(+), 5 deletions(-) create mode 100644 configs/.config/hypr/scripts/wallbashspotify.sh create mode 100644 configs/.config/hypr/wallbash/spicetify.dcol create mode 100755 scripts/install_nvm.sh diff --git a/configs/.config/hypr/keybindings.conf b/configs/.config/hypr/keybindings.conf index 773a6a8..25cd54f 100644 --- a/configs/.config/hypr/keybindings.conf +++ b/configs/.config/hypr/keybindings.conf @@ -13,7 +13,7 @@ $mainMod = SUPER # windows key $term = kitty $editor = code $file = dolphin -$browser = brave +$browser = firefox $mail = thunderbird # Window/Session actions @@ -30,7 +30,7 @@ bind = $mainMod, backspace, exec, ~/.config/hypr/scripts/logoutlaunch.sh 1 # log bind = $mainMod, T, exec, $term # open terminal bind = $mainMod, E, exec, $file # open file manager bind = $mainMod, C, exec, $editor # open vscode -bind = $mainMod, B, exec, $browser # open browser +bind = $mainMod, F, exec, $browser # open browser bind = $mainMod, M, exec, $mail # open mail client bind = $mainMod, period, exec, emote # open emoji selector diff --git a/configs/.config/hypr/scripts/wallbashspotify.sh b/configs/.config/hypr/scripts/wallbashspotify.sh new file mode 100644 index 0000000..4c3bdb8 --- /dev/null +++ b/configs/.config/hypr/scripts/wallbashspotify.sh @@ -0,0 +1,20 @@ +#!/usr/bin/env sh + +# set variables + +ScrDir=`dirname $(realpath $0)` +source $ScrDir/globalcontrol.sh +scol="$HOME/.config/spicetify/Themes/Sleek/color.ini" +dcol="$HOME/.config/spicetify/Themes/Sleek/Wall-Dcol.ini" + +# regen conf + +if pkg_installed spotify && pkg_installed spicetify-cli && [ `spicetify config | awk '{if ($1=="color_scheme") print $2}'` == "Wallbash" ] ; then + + if pgrep -x spotify > /dev/null ; then + pkill -x spicetify + spicetify -s -q watch & + fi + + sed 's/#//g' $dcol > $scol +fi diff --git a/configs/.config/hypr/wallbash/spicetify.dcol b/configs/.config/hypr/wallbash/spicetify.dcol new file mode 100644 index 0000000..335c0af --- /dev/null +++ b/configs/.config/hypr/wallbash/spicetify.dcol @@ -0,0 +1,23 @@ +4|$ScrDir/wallbashspotify.sh|.config/spicetify/Themes/Sleek/Wall-Dcol.ini + +[Wallbash] +text = +subtext = +nav-active-text = +main = +sidebar = +player = +card = +shadow = +main-secondary = +button = +button-secondary = +button-active = +button-disabled = +nav-active = +play-button = +tab-active = +notification = +notification-error = +playback-bar = +misc = diff --git a/lists/default_pkg.lst b/lists/default_pkg.lst index 8d9de98..6ca2361 100644 --- a/lists/default_pkg.lst +++ b/lists/default_pkg.lst @@ -44,7 +44,6 @@ nwg-look kvantum qt5ct firefox -brave-bin kitty neofetch dolphin @@ -56,6 +55,7 @@ zsh lsd fzf cava +spotify pokemon-colorscripts-git fcitx5 fcitx5-qt diff --git a/scripts/install_cfg.sh b/scripts/install_cfg.sh index 5f4b167..cef4177 100755 --- a/scripts/install_cfg.sh +++ b/scripts/install_cfg.sh @@ -65,7 +65,5 @@ if nvidia_detect; then fi ./scripts/create_cache.sh - ./scripts/install_zsh.sh - ./scripts/install_lnk.sh diff --git a/scripts/install_nvm.sh b/scripts/install_nvm.sh new file mode 100755 index 0000000..208cd2a --- /dev/null +++ b/scripts/install_nvm.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +# check if nvm is installed +if command -v nvm &> /dev/null; then + echo "nvm is already installed..." +else + # install nvm + curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash + # source nvm + source ~/.zshrc + # install node + nvm install --lts + # set default node version + nvm alias default lts/* + + # install yarn pm2 and nodemon + npm install -g yarn pm2 nodemon + + echo "nvm is installed..." +fi