i3wm ➔ hyprland (wip)
still a way to go. but, i am moving in the right direction, at least.
This commit is contained in:
84
README.md
84
README.md
@@ -182,26 +182,25 @@ please note, this step is only needed when arch is to be installed on a new host
|
|||||||
- `chmodAllSh.sh` (fixes mode change from 14001 to 217 errors in repo)
|
- `chmodAllSh.sh` (fixes mode change from 14001 to 217 errors in repo)
|
||||||
- `reboot` and re-login
|
- `reboot` and re-login
|
||||||
|
|
||||||
## step seven :: nvidia (optional)
|
|
||||||
|
|
||||||
if the system runs nvidia, follow the steps in [nvidia.md](nvidia.md) to set up the nvidia driver.
|
|
||||||
|
|
||||||
## step eight :: post installation tasks
|
## step eight :: post installation tasks
|
||||||
|
|
||||||
|
|
||||||
- **KEEPASSXC**
|
- **KEEPASSXC**
|
||||||
|
- open keepassxc
|
||||||
|
- open the password vault at:
|
||||||
- `/home/poq/syncDir/secrets/keePassXC/passwordVaultA.kdbx`
|
- `/home/poq/syncDir/secrets/keePassXC/passwordVaultA.kdbx`
|
||||||
|
- enable browser integration @ settings ➔ browser integration
|
||||||
|
- name client as `YYMM_hostname.browser`, like `2602_tuxwarrior.librewolf`
|
||||||
|
- view clients @ database settings ➔ browser integration
|
||||||
- **PCLOUD**
|
- **PCLOUD**
|
||||||
- log in
|
- log in
|
||||||
- settings ➔ disk usage ➔ disk space: 2048 ➔ 10240 & cache size: 5120 ➔ 51200 (~51 gb)
|
- settings ➔ disk usage ➔
|
||||||
|
- disk space: 2048 ➔ 10240
|
||||||
|
- cache size: 5120 ➔ 51200 (~51 gb)
|
||||||
- **KITTEN**
|
- **KITTEN**
|
||||||
- `$ kitten themes 'cyberpunk neon'`
|
- `$ kitten themes 'cyberpunk neon'`
|
||||||
- to list all themes: `$ kitten themes`
|
- to list all themes: `$ kitten themes`
|
||||||
- (search for `tropical` ➔ select `tropical neon` ➔ press `M` to modify kitten.conf and start using the theme)
|
- (search for `tropical` ➔ select `tropical neon` ➔ press `M` to modify kitten.conf and start using the theme)
|
||||||
- favourite themes (as of feb 26):
|
- alternative themes (as of feb 26):
|
||||||
- dark background
|
- dark background
|
||||||
- `kitten themes 'default'`
|
- `kitten themes 'default'`
|
||||||
- `kitten themes 'adwaita darker'`
|
- `kitten themes 'adwaita darker'`
|
||||||
@@ -219,81 +218,61 @@ if the system runs nvidia, follow the steps in [nvidia.md](nvidia.md) to set up
|
|||||||
- `kitten themes 'ubuntu'`
|
- `kitten themes 'ubuntu'`
|
||||||
- `kitten themes 'neowave'`
|
- `kitten themes 'neowave'`
|
||||||
- `kitten themes 'box'`
|
- `kitten themes 'box'`
|
||||||
|
|
||||||
- `kitten themes 'papercolor dark'`
|
- `kitten themes 'papercolor dark'`
|
||||||
- **VSCODIUM**
|
- **VSCODIUM**
|
||||||
- **local sync**
|
- **local sync**
|
||||||
- open extensions and search for `local sync`
|
- open extensions and search for `local sync`
|
||||||
- install the extension
|
- install the extension
|
||||||
- open extension settings
|
- open extension settings
|
||||||
- 1. disable auto backup files on change
|
- 1. set path to backup files:
|
||||||
- 2. set path to backup files:
|
|
||||||
- `/home/poq/syncDir/gitRepos/gi.op.fo/fiodb/db/vscodium/syncBackup`
|
- `/home/poq/syncDir/gitRepos/gi.op.fo/fiodb/db/vscodium/syncBackup`
|
||||||
- 3. run `local sync: restore` (ctrl + shift + p)
|
- 2. run `local sync: restore` (ctrl + shift + p)
|
||||||
- 4. enable auto backup files on change
|
|
||||||
- **open workspace :: open all active projects**
|
- **open workspace :: open all active projects**
|
||||||
- file ➔ open workspace from file ➔ `/home/poq/syncDir/gitRepos/gi.op.fo/fiodb/db/workspaces/vscodium/workspace/one.code-workspace`
|
- file ➔ open workspace from file ➔ `/home/poq/syncDir/gitRepos/gi.op.fo/fiodb/db/workspaces/vscodium/workspace/one.code-workspace`
|
||||||
- several .sh files might be flagged as modified (in gitkraken they will show up as `file mode changes from 14001 to 217`, which means from chmod 755 to 644), then you can fix this running the command `chmodAllSh.sh`.
|
- several .sh files might be flagged as modified (in gitkraken they will show up as `file mode changes from 14001 to 217`, which means from chmod 755 to 644). you can fix this running the command `chmodAllSh.sh`.
|
||||||
- **GITKRAKEN**
|
- **GITKRAKEN**
|
||||||
- preferences ➔ integrations ➔ connect to gitlab
|
|
||||||
- preferences ➔ ssh ➔ uncheck `use local ssh agent`
|
|
||||||
- preferences ➔ ui customization ➔ theme: `gitkraken dark - high contrast`
|
- preferences ➔ ui customization ➔ theme: `gitkraken dark - high contrast`
|
||||||
|
- preferences ➔ integrations ➔ connect to gitlab
|
||||||
|
- currently not needed, as gi.op.fo is not using ssh
|
||||||
|
- preferences ➔ ssh ➔ uncheck `use local ssh agent`
|
||||||
|
- select keys to use
|
||||||
- register fingerprint for ssh key(s)
|
- register fingerprint for ssh key(s)
|
||||||
- if the ssh key for a git repo has never been used, the ssh connection will fail as the key is not yet registered.
|
- if the ssh key for a git repo has never been used, the ssh connection will fail as the key is not yet registered.
|
||||||
- `$ ssh git@gi.op.fo -p 2002`
|
- `$ ssh git@gi.op.fo -p 2002`
|
||||||
- `Are you sure you want to continue connecting (yes/no/[fingerprint])? yes`
|
- `Are you sure you want to continue connecting (yes/no/[fingerprint])? yes`
|
||||||
- **LIBREWOLF**
|
- **LIBREWOLF**
|
||||||
- settings ➔ change device name ➔ `YYMM - poq @ tuxwarrior`
|
- settings ➔ change device name ➔ `YYMM_username@host` (example: `2602_poq@tuxwarrior`)
|
||||||
- settings ➔ set as default browser
|
- settings ➔ enable and log into firefox sync
|
||||||
- settings ➔ and log into librewolf sync
|
- search engine:
|
||||||
|
- this should be set automatically
|
||||||
- default browser:
|
|
||||||
- settings ➔ select the option to set librewolf as default browser
|
|
||||||
- default search engine:
|
|
||||||
- change default search engine to presearch, and login to presearch
|
|
||||||
- theme
|
- theme
|
||||||
|
- this should be set automatically
|
||||||
|
- obsolete:
|
||||||
- extensions icon ➔ manage extensions ➔ themes ➔ enable theme `xxxx`
|
- extensions icon ➔ manage extensions ➔ themes ➔ enable theme `xxxx`
|
||||||
- or, enable:
|
- or, enable:
|
||||||
- alt 1: https://addons.mozilla.org/en-US/librewolf/addon/neon-sign-shine/
|
- alt 1: https://addons.mozilla.org/en-US/firefox/addon/neon-sign-shine/
|
||||||
- alt 2: https://addons.mozilla.org/en-US/librewolf/addon/pitch-black-pink/
|
- alt 2: https://addons.mozilla.org/en-US/firefox/addon/pitch-black-pink/
|
||||||
- alt 3: https://addons.mozilla.org/en-US/librewolf/addon/activist-bold_/
|
- alt 3: https://addons.mozilla.org/en-US/firefox/addon/activist-bold_/
|
||||||
- install dictionaries for
|
- install dictionaries for
|
||||||
- [en-AU](https://addons.mozilla.org/en-US/librewolf/addon/english-australian-dictionary/) and
|
- [en-AU](https://addons.mozilla.org/en-US/firefox/addon/english-australian-dictionary/) and
|
||||||
- [no-NB](https://addons.mozilla.org/en-US/librewolf/addon/norsk-bokm%C3%A5l-ordliste/)
|
- [no-NB](https://addons.mozilla.org/en-US/firefox/addon/norsk-bokm%C3%A5l-ordliste/)
|
||||||
- update singlefile
|
- update singlefile
|
||||||
- name format (extension icon ➔ manage extensions ➔ extensions ➔ singlefile ➔ preferences ➔ file format):
|
- name format (extension icon ➔ manage extensions ➔ extensions ➔ singlefile ➔ preferences ➔ file format):
|
||||||
- old: `%if-empty<{page-title}|No title> ({date-locale} {time-locale}).{filename-extension}`
|
- old: `%if-empty<{page-title}|No title> ({date-locale} {time-locale}).{filename-extension}`
|
||||||
- new: `{year-locale}{month-locale}{day-locale}_{url-href-flat}_.{filename-extension}`
|
- new: `{year-locale}{month-locale}{day-locale}_{url-href-flat}_.{filename-extension}`
|
||||||
- open "save as" dialog (… ➔ file format):
|
- open "save as" dialog (… ➔ file format):
|
||||||
- check 'open the "Save as" dialog to confirm the file name'
|
- check 'open the "Save as" dialog to confirm the file name'
|
||||||
- open <https://archive.is/> and install extension found on the top of that page
|
- open the `web scrobbler` extension and log in to last.fm
|
||||||
- open `web scrobbler` extension and log in to last.fm
|
|
||||||
- extension: sidebery ➔ settings ➔
|
- extension: sidebery ➔ settings ➔
|
||||||
- help ➔ `import addon data` ➔ `/home/poq/syncDir/gitRepos/gitlab.com/dotsplus/librewolf/addons/sidebery/ sidebery-data-....json`
|
- help ➔ `import addon data` ➔ `/home/poq/syncDir/gitRepos/gitlab.com/dotsplus/librewolf/addons/sidebery/ sidebery-data-....json`
|
||||||
- or, download the settings from: <https://gitlab.com/pqq/dotsplus/-/tree/main/librewolf/addons/sidebery>
|
- or, download the settings from: <https://gitlab.com/pqq/dotsplus/-/tree/main/librewolf/addons/sidebery>
|
||||||
- manual adjustments (if needed) ➔
|
- manual adjustments ➔
|
||||||
- delete default containers (`personal`, `work`, `banking`, and `shopping`)
|
- delete default containers (`personal`, `work`, `banking`, and `shopping`)
|
||||||
- select `bigTech` container ➔ `manage rules` for urls and add the following urls to include:
|
|
||||||
- `google.com`, `x.com`, `bing.com`, `youtube.com`
|
|
||||||
- select `quick` container ➔ manage rules and include:
|
|
||||||
- `quick.no`, `dlsoftware`, `quick3`
|
|
||||||
- bitwarden ➔ settings ➔
|
|
||||||
- autofill ➔
|
|
||||||
- disable: display identities as suggestions
|
|
||||||
- disable: display cards as suggestions
|
|
||||||
- enable: `Display suggestions when icon is selected`
|
|
||||||
- disable: always show cards as autofill suggestions on vault view
|
|
||||||
- disable: always show identities as autofil suggestions on vault view
|
|
||||||
- notifications ➔
|
|
||||||
- disable: `ask to save and use passkeys`
|
|
||||||
- appearance ➔
|
|
||||||
- vault customization ➔
|
|
||||||
- enable: `Show quick copy actions on Vault`
|
|
||||||
- **PCMAN**
|
- **PCMAN**
|
||||||
- edit ➔ preferences >
|
- edit ➔ preferences >
|
||||||
- (general ➔ uncheck [ ] erase files on removable media instead of "trash can" creation) <<- no, will keep this checked for now
|
|
||||||
- layout ➔ show in places ➔ unselect all but "trash can"
|
- layout ➔ show in places ➔ unselect all but "trash can"
|
||||||
- **REAPER**
|
- **REAPER**
|
||||||
|
- ! UPDATE OF THIS SECTION IS NEEDED !
|
||||||
- NOTE: much of this can very likey be omitted, as the settings can be imported from:
|
- NOTE: much of this can very likey be omitted, as the settings can be imported from:
|
||||||
- `/home/poq/syncDir/gitRepos/gitlab.com/dotsplus/reaper/config/`
|
- `/home/poq/syncDir/gitRepos/gitlab.com/dotsplus/reaper/config/`
|
||||||
- ---
|
- ---
|
||||||
@@ -337,6 +316,7 @@ if the system runs nvidia, follow the steps in [nvidia.md](nvidia.md) to set up
|
|||||||
- also located in protonmail under the 'licence' label
|
- also located in protonmail under the 'licence' label
|
||||||
- extra: ?
|
- extra: ?
|
||||||
- **PRINTING**
|
- **PRINTING**
|
||||||
|
- ! UPDATE OF THIS SECTION IS NEEDED !
|
||||||
- remove services cups.socket and cups.path
|
- remove services cups.socket and cups.path
|
||||||
- `$ sudo systemctl disable cups.path`
|
- `$ sudo systemctl disable cups.path`
|
||||||
- `$ sudo systemctl disable cups.socket`
|
- `$ sudo systemctl disable cups.socket`
|
||||||
@@ -344,7 +324,7 @@ if the system runs nvidia, follow the steps in [nvidia.md](nvidia.md) to set up
|
|||||||
- if usb printer, and turned on, the printer should show up
|
- if usb printer, and turned on, the printer should show up
|
||||||
- useful: https://kb.adamsdesk.com/operating_system/arch_linux_install_network_printer/
|
- useful: https://kb.adamsdesk.com/operating_system/arch_linux_install_network_printer/
|
||||||
|
|
||||||
# error solving
|
# OBSOLETE : error solving
|
||||||
|
|
||||||
- the keyring is reset on each reboot
|
- the keyring is reset on each reboot
|
||||||
- symptoms: you're asked to re-login to nextcloud and protonvpn on each reboot
|
- symptoms: you're asked to re-login to nextcloud and protonvpn on each reboot
|
||||||
|
|||||||
@@ -2,9 +2,8 @@
|
|||||||
|
|
||||||
# klevstul
|
# klevstul
|
||||||
|
|
||||||
# these variables are used by 99_deploy.sh, as that script is importing this file using `source`
|
# these variables are used by `99_deploy.sh`, where this file is imported using `source`
|
||||||
|
|
||||||
OPTIONS_LOADED=true # used to check if options have been loaded
|
OPTIONS_LOADED=true # used to check if options have been loaded
|
||||||
CLONE_TARGET_DIR=/tmp # directory to clone dots repository to
|
CLONE_TARGET_DIR=/tmp # directory to clone dots repository to
|
||||||
SYSTEM_USER=poq # system user (! root)
|
SYSTEM_USER=poq # system user (! root)
|
||||||
#I3WM=false # {true, false} installs i3 packages - used by '99_deploy.sh'
|
|
||||||
|
|||||||
@@ -36,8 +36,6 @@ alias du="du --summarize --human-readable"
|
|||||||
alias dus="du --summarize --human-readable * | sort -h"
|
alias dus="du --summarize --human-readable * | sort -h"
|
||||||
alias encrypt="gpg --encrypt --sign --recipient frode@klevstul.com"
|
alias encrypt="gpg --encrypt --sign --recipient frode@klevstul.com"
|
||||||
alias extract="extract.sh"
|
alias extract="extract.sh"
|
||||||
alias faf="find . -type f -iname" # faf (find a file)
|
|
||||||
alias fif="grep -rnw . -e" # fif (find in file) | https://stackoverflow.com/questions/16956810/find-all-files-containing-a-specific-text-string-on-linux
|
|
||||||
alias gparted="sudo gparted"
|
alias gparted="sudo gparted"
|
||||||
alias grep='grep --color=auto'
|
alias grep='grep --color=auto'
|
||||||
alias ip='ip -br a'
|
alias ip='ip -br a'
|
||||||
@@ -50,8 +48,8 @@ alias ls='ls --color=auto'
|
|||||||
alias myip="echo $(wget http://ipinfo.io/ip -qO -)"
|
alias myip="echo $(wget http://ipinfo.io/ip -qO -)"
|
||||||
alias neofetch='fastfetch'
|
alias neofetch='fastfetch'
|
||||||
alias quantumfix="pw-metadata -n settings 0 clock.force-quantum 1024"
|
alias quantumfix="pw-metadata -n settings 0 clock.force-quantum 1024"
|
||||||
alias sb="source ~/.bashrc"
|
alias sb="unalias -a; source ~/.bashrc"
|
||||||
alias sbr="source /home/poq/syncDir/gitRepos/gi.op.fo/lnx-arch/dots/bash/.bashrc" # source bash (from) repo
|
alias sbr="unalias -a; source /home/poq/syncDir/gitRepos/gi.op.fo/lnx-arch/dots/bash/.bashrc" # source bash (from) repo
|
||||||
alias sizeInBytes="stat -c %s"
|
alias sizeInBytes="stat -c %s"
|
||||||
alias ssh="ssh -v"
|
alias ssh="ssh -v"
|
||||||
alias ssh_weba_r="ssh -v -t root@weba -p 1808 'export TERM=xterm; cd /tmp; bash -l'"
|
alias ssh_weba_r="ssh -v -t root@weba -p 1808 'export TERM=xterm; cd /tmp; bash -l'"
|
||||||
@@ -74,7 +72,7 @@ alias pgmodeler="/home/poq/syncDir/swas/portableApps/pgmodeler_plus-1*"
|
|||||||
# x terminal shell start string | https://askubuntu.com/questions/1340319/ps1-string-full-documentation-and-reference-page
|
# x terminal shell start string | https://askubuntu.com/questions/1340319/ps1-string-full-documentation-and-reference-page
|
||||||
# https://bash-prompt-generator.org/
|
# https://bash-prompt-generator.org/
|
||||||
# https://askubuntu.com/questions/193416/adding-timestamps-to-terminal-prompts
|
# https://askubuntu.com/questions/193416/adding-timestamps-to-terminal-prompts
|
||||||
PS1='\n⚙[\D{%y%m%d%H%M}|\u@\h \w]\$ '
|
PS1='\n⚙[\D{%y%m%d%H%M}|\u@\h|\w]\$ '
|
||||||
#PS1='\[\e[01;32m\]\u@\h \[\e[01;34m\]\w\[\e[00m\]\$ '
|
#PS1='\[\e[01;32m\]\u@\h \[\e[01;34m\]\w\[\e[00m\]\$ '
|
||||||
|
|
||||||
# change the window title of x terminals
|
# change the window title of x terminals
|
||||||
@@ -88,6 +86,29 @@ case ${TERM} in
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
||||||
|
# ---
|
||||||
|
# searching
|
||||||
|
# ---
|
||||||
|
|
||||||
|
# find a file (faf)
|
||||||
|
faf() {
|
||||||
|
path="."
|
||||||
|
if [[ -n $2 ]]; then
|
||||||
|
path=$2
|
||||||
|
fi
|
||||||
|
find ${path} -type f -iname ${1} 2>/dev/null
|
||||||
|
}
|
||||||
|
|
||||||
|
# find in file (fif) | https://stackoverflow.com/questions/16956810/find-all-files-containing-a-specific-text-string-on-linux
|
||||||
|
fif() {
|
||||||
|
path="."
|
||||||
|
if [[ -n $2 ]]; then
|
||||||
|
path=$2
|
||||||
|
fi
|
||||||
|
grep -rnw ${path} -e ${1} 2>/dev/null
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
# ---
|
# ---
|
||||||
# networking
|
# networking
|
||||||
# ---
|
# ---
|
||||||
|
|||||||
@@ -5,5 +5,8 @@
|
|||||||
this_file_name=`basename "$0"`
|
this_file_name=`basename "$0"`
|
||||||
echo "$this_file_name"
|
echo "$this_file_name"
|
||||||
|
|
||||||
|
# note: it is possible to create sym links / soft links to non-existing directories! hence, this can be done without having started pcloud.
|
||||||
ln -s /home/poq/pCloudDrive/repos/git/gitlab.com ~/syncDir/gitRepos/
|
ln -s /home/poq/pCloudDrive/repos/git/gitlab.com ~/syncDir/gitRepos/
|
||||||
ln -s /home/poq/pCloudDrive/repos/pCloud_nonGit ~/syncDir/gitRepos/
|
ln -s /home/poq/pCloudDrive/repos/pCloud_nonGit ~/syncDir/gitRepos/
|
||||||
|
|
||||||
|
ls -al ~/syncDir/gitRepos/
|
||||||
|
|||||||
@@ -4,6 +4,8 @@
|
|||||||
|
|
||||||
notify-send "<< startup.sh >>"
|
notify-send "<< startup.sh >>"
|
||||||
|
|
||||||
|
source /home/poq/syncDir/secrets/toBeSourced/secretsAsEnvVariables.sh # set secrets as env variables
|
||||||
|
|
||||||
nextcloud & # nextcloud file sync
|
nextcloud & # nextcloud file sync
|
||||||
pcloud & # pcloud service
|
pcloud & # pcloud service
|
||||||
|
|
||||||
|
|||||||
@@ -6,9 +6,17 @@
|
|||||||
# note: a re-login is needed for changes to take place
|
# note: a re-login is needed for changes to take place
|
||||||
#
|
#
|
||||||
|
|
||||||
|
# secrets
|
||||||
|
# please note that this file is open to the world, so secrets should only be stored in
|
||||||
|
# `/home/poq/syncDir/secrets/toBeSourced/secretsAsEnvVariables.sh`, as that file is
|
||||||
|
# sourced by statup.sh.
|
||||||
|
|
||||||
|
# note on paths:
|
||||||
|
# even though it would possible to specify unique paths per host machine, that would most
|
||||||
|
# likely not work very well. this is as several scripts assume `/home/poq/` etc. so, use
|
||||||
|
# the same path for all hosts.
|
||||||
|
|
||||||
# full path to directory where syncronised data will be kept
|
# full path to directory where syncronised data will be kept
|
||||||
# this should be independent from systems (like nextcloud, dropbox, google drive etc)
|
|
||||||
# this as we easily should be able to switch system without having to change this name/path
|
|
||||||
# format: SYNCDIR_[HOSTNAME]
|
# format: SYNCDIR_[HOSTNAME]
|
||||||
SYNCDIR_t470p=/home/poq/nextcloud/syncDir
|
SYNCDIR_t470p=/home/poq/nextcloud/syncDir
|
||||||
SYNCDIR_tuxwarrior=/home/poq/nextcloud/syncDir
|
SYNCDIR_tuxwarrior=/home/poq/nextcloud/syncDir
|
||||||
@@ -26,9 +34,6 @@ DOWNLOADS=/home/poq/syncDir/0_downloads
|
|||||||
# styling for gtk apps
|
# styling for gtk apps
|
||||||
#GTK_THEME=Sweet-Dark
|
#GTK_THEME=Sweet-Dark
|
||||||
|
|
||||||
# secrets
|
|
||||||
#SECRET_KD3=RtKFWJIoXWjU80mlo4T4Ey2mqDNeJQwHjYLkE0ViN+k
|
|
||||||
|
|
||||||
# used by lf
|
# used by lf
|
||||||
#EDITOR=nano
|
#EDITOR=nano
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -40,7 +40,7 @@ if [[ -z "${clone_trg}" ]] ; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# load secrets, as environment variables
|
# 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}
|
source ${secrets_cred_path}
|
||||||
|
|
||||||
# ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
|
# ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
|
||||||
@@ -149,14 +149,15 @@ deploy_file() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# locate librewolf's profile directory
|
# locate librewolf's profile directory
|
||||||
|
# in librewolf, open `about:profiles` to see location of profile directory
|
||||||
librewolf_profile_dir() {
|
librewolf_profile_dir() {
|
||||||
ffdir=/home/${system_user}/.mozilla/firefox/
|
ffdir=/home/${system_user}/.config/librewolf/librewolf/
|
||||||
|
|
||||||
if ! [ -d "$ffdir" ]
|
if ! [ -d "$ffdir" ]
|
||||||
then
|
then
|
||||||
echo "error: firefox main directory not found: '${ffdir}'"
|
echo "error: librewolf's main directory was not found at: '${ffdir}'"
|
||||||
else
|
else
|
||||||
pattern=".default-release"
|
pattern=".default-default"
|
||||||
old_dir=`pwd`
|
old_dir=`pwd`
|
||||||
cd ${ffdir}
|
cd ${ffdir}
|
||||||
for _dir in *"${pattern}"*; do
|
for _dir in *"${pattern}"*; do
|
||||||
@@ -166,7 +167,7 @@ librewolf_profile_dir() {
|
|||||||
|
|
||||||
if [ -z "$dir" ]
|
if [ -z "$dir" ]
|
||||||
then
|
then
|
||||||
echo "error: firefox profile directory not found"
|
echo "error: librewolf's profile directory not found"
|
||||||
else
|
else
|
||||||
ffprofiledir=${ffdir}${dir}
|
ffprofiledir=${ffdir}${dir}
|
||||||
echo "${ffprofiledir}"
|
echo "${ffprofiledir}"
|
||||||
@@ -199,6 +200,8 @@ if [ ${operation} == "dots" ] ; then
|
|||||||
file_name=.bashrc
|
file_name=.bashrc
|
||||||
file_path=/home/${system_user}
|
file_path=/home/${system_user}
|
||||||
deploy_file "${dots_trg}/bash/${file_name}" "${file_path}/${file_name}"
|
deploy_file "${dots_trg}/bash/${file_name}" "${file_path}/${file_name}"
|
||||||
|
unalias -a
|
||||||
|
source "${file_path}/${file_name}"
|
||||||
|
|
||||||
# bin (executable binaries, scripts)
|
# bin (executable binaries, scripts)
|
||||||
file_path=/usr/local/bin
|
file_path=/usr/local/bin
|
||||||
@@ -214,13 +217,6 @@ if [ ${operation} == "dots" ] ; then
|
|||||||
file_path=/home/${system_user}/.config
|
file_path=/home/${system_user}/.config
|
||||||
deploy_file "${dots_trg}/mimeapps/${file_name}" "${file_path}/${file_name}" no_chown
|
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
|
# pacman
|
||||||
file_name=.makepkg.conf
|
file_name=.makepkg.conf
|
||||||
file_path=/home/${system_user}
|
file_path=/home/${system_user}
|
||||||
@@ -297,37 +293,8 @@ if [ ${operation} == "dots" ] ; then
|
|||||||
# programs
|
# programs
|
||||||
# ----------
|
# ----------
|
||||||
|
|
||||||
# cava
|
# librewolf
|
||||||
# file_name=config
|
file_name=policies.json
|
||||||
# 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
|
|
||||||
|
|
||||||
ffpd=$(firefox_profile_dir)
|
ffpd=$(firefox_profile_dir)
|
||||||
if [[ ${ffpd} == error* ]] ; then
|
if [[ ${ffpd} == error* ]] ; then
|
||||||
echo ${ffpd}
|
echo ${ffpd}
|
||||||
@@ -335,26 +302,11 @@ if [ ${operation} == "dots" ] ; then
|
|||||||
file_name=user.js
|
file_name=user.js
|
||||||
file_path=${ffpd}
|
file_path=${ffpd}
|
||||||
deploy_file "${dots_trg}/firefox/${file_name}" "${file_path}/${file_name}"
|
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
|
fi
|
||||||
|
|
||||||
# gtk (settings found using lxappearance)
|
# gtk (settings found using lxappearance)
|
||||||
# note that the bookmarks file were found in two different locations, so a
|
# 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
|
# 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_name=.gtk-bookmarks
|
||||||
file_path=/home/${system_user}
|
file_path=/home/${system_user}
|
||||||
deploy_file "${dots_trg}/gtk/${file_name}" "${file_path}/${file_name}"
|
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}
|
trash-put ${tmp_file_path_full}
|
||||||
ln -s "${file_path}/${file_name}" "${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
|
# helix
|
||||||
file_name=config.toml
|
file_name=config.toml
|
||||||
file_path=/home/${system_user}/.config/helix
|
file_path=/home/${system_user}/.config/helix
|
||||||
create_dir ${file_path}
|
create_dir ${file_path}
|
||||||
deploy_file "${dots_trg}/helix/${file_name}" "${file_path}/${file_name}"
|
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
|
# pcmanfm
|
||||||
# bookmarks found in "dots/gtk/.gtk-bookmarks"
|
# bookmarks found in "dots/gtk/.gtk-bookmarks"
|
||||||
file_name=pcmanfm.conf
|
file_name=pcmanfm.conf
|
||||||
@@ -389,32 +327,6 @@ if [ ${operation} == "dots" ] ; then
|
|||||||
create_dir ${file_path}
|
create_dir ${file_path}
|
||||||
deploy_file "${dots_trg}/pcmanfm/${file_name}" "${file_path}/${file_name}"
|
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
|
fi
|
||||||
|
|
||||||
# dots+ (wallpapers, fonts ++)
|
# dots+ (wallpapers, fonts ++)
|
||||||
|
|||||||
Reference in New Issue
Block a user