i3wm ➔ hyprland (wip)
still a way to go. but, i am moving in the right direction, at least.
This commit is contained in:
@@ -40,7 +40,7 @@ if [[ -z "${clone_trg}" ]] ; then
|
||||
fi
|
||||
|
||||
# load secrets, as environment variables
|
||||
secrets_cred_path=/home/${system_user}/syncDir/secrets/toBeSourced/cred.sh
|
||||
secrets_cred_path=/home/${system_user}/syncDir/secrets/toBeSourced/secretsAsEnvVariables.sh
|
||||
source ${secrets_cred_path}
|
||||
|
||||
# ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
|
||||
@@ -149,14 +149,15 @@ deploy_file() {
|
||||
}
|
||||
|
||||
# locate librewolf's profile directory
|
||||
# in librewolf, open `about:profiles` to see location of profile directory
|
||||
librewolf_profile_dir() {
|
||||
ffdir=/home/${system_user}/.mozilla/firefox/
|
||||
ffdir=/home/${system_user}/.config/librewolf/librewolf/
|
||||
|
||||
if ! [ -d "$ffdir" ]
|
||||
then
|
||||
echo "error: firefox main directory not found: '${ffdir}'"
|
||||
echo "error: librewolf's main directory was not found at: '${ffdir}'"
|
||||
else
|
||||
pattern=".default-release"
|
||||
pattern=".default-default"
|
||||
old_dir=`pwd`
|
||||
cd ${ffdir}
|
||||
for _dir in *"${pattern}"*; do
|
||||
@@ -166,7 +167,7 @@ librewolf_profile_dir() {
|
||||
|
||||
if [ -z "$dir" ]
|
||||
then
|
||||
echo "error: firefox profile directory not found"
|
||||
echo "error: librewolf's profile directory not found"
|
||||
else
|
||||
ffprofiledir=${ffdir}${dir}
|
||||
echo "${ffprofiledir}"
|
||||
@@ -199,6 +200,8 @@ if [ ${operation} == "dots" ] ; then
|
||||
file_name=.bashrc
|
||||
file_path=/home/${system_user}
|
||||
deploy_file "${dots_trg}/bash/${file_name}" "${file_path}/${file_name}"
|
||||
unalias -a
|
||||
source "${file_path}/${file_name}"
|
||||
|
||||
# bin (executable binaries, scripts)
|
||||
file_path=/usr/local/bin
|
||||
@@ -214,13 +217,6 @@ if [ ${operation} == "dots" ] ; then
|
||||
file_path=/home/${system_user}/.config
|
||||
deploy_file "${dots_trg}/mimeapps/${file_name}" "${file_path}/${file_name}" no_chown
|
||||
|
||||
# mounts
|
||||
# file_name=mnt-nas.mount
|
||||
# file_path=/etc/systemd/system
|
||||
# deploy_file "${dots_trg}/systemd/${file_name}" "${file_path}/${file_name}" no_chown
|
||||
# sed -i "s|USERNAME|klevstul|g" "${file_path}/${file_name}"
|
||||
# sed -i "s|PASSWORD|${LILLESORTEBOKS}|g" "${file_path}/${file_name}"
|
||||
|
||||
# pacman
|
||||
file_name=.makepkg.conf
|
||||
file_path=/home/${system_user}
|
||||
@@ -297,37 +293,8 @@ if [ ${operation} == "dots" ] ; then
|
||||
# programs
|
||||
# ----------
|
||||
|
||||
# cava
|
||||
# file_name=config
|
||||
# file_path=/home/${system_user}/.config/cava
|
||||
# create_dir ${file_path}
|
||||
# deploy_file "${dots_trg}/cava/${file_name}" "${file_path}/${file_name}"
|
||||
|
||||
## dbgate
|
||||
#file_name=settings.json
|
||||
#file_path=/home/${system_user}/.dbgate
|
||||
#create_dir ${file_path}
|
||||
#deploy_file "${dots_trg}/dbgate/${file_name}" "${file_path}/${file_name}"
|
||||
#cp /home/${system_user}/syncDir/secrets/dbgate/connections.jsonl ${file_path}/
|
||||
#chown ${system_user}:${system_user} ${file_path}/connections.jsonl
|
||||
|
||||
# dunst
|
||||
# file_name=dunstrc
|
||||
# file_path=/home/${system_user}/.config/dunst
|
||||
# create_dir ${file_path}
|
||||
# deploy_file "${dots_trg}/dunst/${file_name}" "${file_path}/${file_name}"
|
||||
|
||||
# lf
|
||||
# file_name=lfrc
|
||||
# file_path=/home/${system_user}/.config/lf
|
||||
# create_dir ${file_path}
|
||||
# deploy_file "${dots_trg}/lf/${file_name}" "${file_path}/${file_name}"
|
||||
|
||||
# firefox
|
||||
#file_name=policies.json
|
||||
#file_path=/usr/lib/firefox/distribution
|
||||
#deploy_file "${dots_trg}/firefox/${file_name}" "${file_path}/${file_name}" no_chown
|
||||
|
||||
# librewolf
|
||||
file_name=policies.json
|
||||
ffpd=$(firefox_profile_dir)
|
||||
if [[ ${ffpd} == error* ]] ; then
|
||||
echo ${ffpd}
|
||||
@@ -335,26 +302,11 @@ if [ ${operation} == "dots" ] ; then
|
||||
file_name=user.js
|
||||
file_path=${ffpd}
|
||||
deploy_file "${dots_trg}/firefox/${file_name}" "${file_path}/${file_name}"
|
||||
# https://stackoverflow.com/questions/525592/find-and-replace-inside-a-text-file-from-a-bash-command
|
||||
# https://askubuntu.com/questions/76808/how-do-i-use-variables-in-a-sed-command
|
||||
sed -i -e "s/{HOSTNAME}/${HOSTNAME}/g" "${file_path}/${file_name}"
|
||||
|
||||
file_name=userChrome.css
|
||||
file_path=${ffpd}/chrome
|
||||
create_dir ${file_path}
|
||||
deploy_file "${dots_trg}/firefox/${file_name}" "${file_path}/${file_name}"
|
||||
fi
|
||||
|
||||
# gtk (settings found using lxappearance)
|
||||
# note that the bookmarks file were found in two different locations, so a
|
||||
# symlink is created below. as well, ".gtkrc-2.0.mine" had no effect, so
|
||||
# ".gtkrc-2.0" is overwritten
|
||||
# file_name=settings.ini
|
||||
# file_path=/home/${system_user}/.config/gtk-3.0
|
||||
# create_dir ${file_path}
|
||||
# deploy_file "${dots_trg}/gtk/${file_name}" "${file_path}/${file_name}"
|
||||
# gsettings set org.gnome.desktop.interface gtk-theme "Sweet-Dark"
|
||||
|
||||
file_name=.gtk-bookmarks
|
||||
file_path=/home/${system_user}
|
||||
deploy_file "${dots_trg}/gtk/${file_name}" "${file_path}/${file_name}"
|
||||
@@ -362,26 +314,12 @@ if [ ${operation} == "dots" ] ; then
|
||||
trash-put ${tmp_file_path_full}
|
||||
ln -s "${file_path}/${file_name}" "${tmp_file_path_full}"
|
||||
|
||||
# file_name=.gtkrc-2.0
|
||||
# file_path=/home/${system_user}
|
||||
# deploy_file "${dots_trg}/gtk/${file_name}" "${file_path}/${file_name}"
|
||||
|
||||
# file_name=index.theme
|
||||
# file_path=/home/${system_user}/.icons/default
|
||||
# create_dir ${file_path}
|
||||
# deploy_file "${dots_trg}/gtk/${file_name}" "${file_path}/${file_name}"
|
||||
|
||||
# helix
|
||||
file_name=config.toml
|
||||
file_path=/home/${system_user}/.config/helix
|
||||
create_dir ${file_path}
|
||||
deploy_file "${dots_trg}/helix/${file_name}" "${file_path}/${file_name}"
|
||||
|
||||
# nitrogen
|
||||
# file_path=/home/${system_user}/.config/nitrogen
|
||||
# create_dir ${file_path}
|
||||
# deploy_file "${dots_trg}/nitrogen/*" "${file_path}/"
|
||||
|
||||
# pcmanfm
|
||||
# bookmarks found in "dots/gtk/.gtk-bookmarks"
|
||||
file_name=pcmanfm.conf
|
||||
@@ -389,32 +327,6 @@ if [ ${operation} == "dots" ] ; then
|
||||
create_dir ${file_path}
|
||||
deploy_file "${dots_trg}/pcmanfm/${file_name}" "${file_path}/${file_name}"
|
||||
|
||||
# i3wm
|
||||
# if [ ${I3WM} == "true" ] ; then
|
||||
#
|
||||
# # i3
|
||||
# file_name=config
|
||||
# file_path=/home/${system_user}/.config/i3
|
||||
# create_dir ${file_path}
|
||||
# deploy_file "${dots_trg}/i3wm/${file_name}" "${file_path}/"
|
||||
#
|
||||
# # i3status
|
||||
# file_name=config
|
||||
# file_path=/home/${system_user}/.config/i3status
|
||||
# create_dir ${file_path}
|
||||
# deploy_file "${dots_trg}/i3status/${file_name}" "${file_path}/"
|
||||
#
|
||||
# fi
|
||||
#
|
||||
# if [ ${I3WM} == "true" ] || [ ${QTILE} == "true" ] ; then
|
||||
#
|
||||
# # xorg
|
||||
# file_path=/home/${system_user}
|
||||
# deploy_file "${dots_trg}/xorg/.*" "${file_path}/"
|
||||
# chmod 755 ${file_path}/.xinitrc
|
||||
#
|
||||
# fi
|
||||
|
||||
fi
|
||||
|
||||
# dots+ (wallpapers, fonts ++)
|
||||
|
||||
Reference in New Issue
Block a user