From e4ce16cb0c4a956c4f8c10037a57f9c80c689627 Mon Sep 17 00:00:00 2001 From: Osman F Bayram <74963545+osbm@users.noreply.github.com> Date: Wed, 13 Jul 2022 16:50:23 +0300 Subject: [PATCH 001/171] add new aliases --- scripts/aliases.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/aliases.sh b/scripts/aliases.sh index 1c93d88..15bd703 100644 --- a/scripts/aliases.sh +++ b/scripts/aliases.sh @@ -1,2 +1,6 @@ # show everything alias ll="ls -la" + +alias gitdir="cd ~/Documents/GitHub" +alias gpuname="nvidia-smi --query-gpu=name --format=csv,noheader" +alias py="ipython" From d4baa0e27794243e0ec2dd13ba285eeaabe896bb Mon Sep 17 00:00:00 2001 From: Osman F Bayram <74963545+osbm@users.noreply.github.com> Date: Wed, 13 Jul 2022 16:52:10 +0300 Subject: [PATCH 002/171] configure fc editor --- .zshrc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.zshrc b/.zshrc index 6747cb9..470b86d 100644 --- a/.zshrc +++ b/.zshrc @@ -4,3 +4,5 @@ source ./scripts/aliases.sh # Add pyenv initialization script source ./scripts/pyenv-config.sh + +FCEDIT=nano From 3794076d7a8e83fca88b142947673870fe36d938 Mon Sep 17 00:00:00 2001 From: osbm Date: Wed, 27 Jul 2022 11:35:39 +0300 Subject: [PATCH 003/171] Update README.md --- README.md | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 01807af..151f0cf 100644 --- a/README.md +++ b/README.md @@ -1,28 +1,37 @@ # dotfiles -Restore the settings of + +To install the z-shell configuration to your system: + +``` +echo 'source ~/Documents/GitHub/dotfiles/.zshrc' >> ~/.zshrc +``` + + +## after initial installation + +``` +git config --global user.name "osbm" +git config --global user.email "osmanfbayram@gmail.com" + +git config --global credential.helper store +``` - [ ] vscode - [ ] zsh - [ ] zsh-autosuggestions - [ ] zsh-syntax-highlighting - [ ] zsh-prompt -- [ ] vim - [ ] tmux - [ ] git - [ ] rclone -Also I should configure the git -git config --global user.name -git config --global user.email - # after a system install - [ ] install optimization repository - [ ] install rclone backup script - [ ] clone all the repositories that are not archived - [ ] install these python packages - [ ] kaggle-cli - - [ ] animdl - - [ ] tensorflow / pytorch / scipy / sklearn + - [ ] `pip install osbm` - [ ] install all these programs - [ ] pyenv - [ ] discord From 39e2855aaa4339c9ab316a831f67f503e8694fec Mon Sep 17 00:00:00 2001 From: osbm Date: Wed, 27 Jul 2022 11:35:46 +0300 Subject: [PATCH 004/171] Update .zshrc --- .zshrc | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/.zshrc b/.zshrc index 470b86d..49ea596 100644 --- a/.zshrc +++ b/.zshrc @@ -1,8 +1,25 @@ # Add aliases -source ./scripts/aliases.sh +# show everything +alias ll="ls -la" -# Add pyenv initialization script -source ./scripts/pyenv-config.sh +alias gitdir="cd ~/Documents/GitHub" +alias gpuname="nvidia-smi --query-gpu=name --format=csv,noheader" +alias py="ipython" +alias l="ls -la" + + +# sort according to size +alias lt='ls --human-readable --size -1 -S --classify' + +alias ve='python -m venv .venv' +alias va='source ./.venv/bin/activate' + + +# to set the default editor to nano FCEDIT=nano + +# stop autocorrection in z shell +unsetopt correct + From a5b2f86c07f1df9052deb7b8a69888fc7ca43a30 Mon Sep 17 00:00:00 2001 From: osbm Date: Mon, 19 Sep 2022 11:29:17 +0300 Subject: [PATCH 005/171] change l alias --- .zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.zshrc b/.zshrc index 49ea596..067d8aa 100644 --- a/.zshrc +++ b/.zshrc @@ -7,7 +7,7 @@ alias gitdir="cd ~/Documents/GitHub" alias gpuname="nvidia-smi --query-gpu=name --format=csv,noheader" alias py="ipython" -alias l="ls -la" +alias l="ls -lFha" # sort according to size From e5ef3c4241633345574dc02280319ecb5cea61c9 Mon Sep 17 00:00:00 2001 From: osbm Date: Sun, 25 Sep 2022 20:31:29 +0300 Subject: [PATCH 006/171] add ipython logging script --- .ipython/startup/00-log_session.ipy | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .ipython/startup/00-log_session.ipy diff --git a/.ipython/startup/00-log_session.ipy b/.ipython/startup/00-log_session.ipy new file mode 100644 index 0000000..089e2d2 --- /dev/null +++ b/.ipython/startup/00-log_session.ipy @@ -0,0 +1,13 @@ +""" +This script will be in the IPython startup directory and will be run before the session starts. +""" + +from IPython import get_ipython +from datetime import datetime + +ipython = get_ipython() + +filename = '/home/osman/Documents/ipython_sessions/' +filename += datetime.now().strftime('%Y-%m-%d_%H-%M-%S') + '.ipy' + +ipython.magic('logstart -o ' + filename) From 1e8a13f9c84d4c614518c4dec36ce87e0454e0d6 Mon Sep 17 00:00:00 2001 From: osbm Date: Sun, 25 Sep 2022 20:37:26 +0300 Subject: [PATCH 007/171] make free human readable --- .zshrc | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.zshrc b/.zshrc index 067d8aa..0a6a985 100644 --- a/.zshrc +++ b/.zshrc @@ -13,9 +13,11 @@ alias l="ls -lFha" # sort according to size alias lt='ls --human-readable --size -1 -S --classify' +alias fastping='ping -c 100 -s.2' alias ve='python -m venv .venv' alias va='source ./.venv/bin/activate' +alias free='free -h' # to set the default editor to nano FCEDIT=nano @@ -23,3 +25,21 @@ FCEDIT=nano # stop autocorrection in z shell unsetopt correct + +# import -window root example.png + +sound() { + # plays sounds in sequence and waits for them to finish + for s in $@; do + paplay $s + done +} +sn1() { + sound /usr/share/sounds/ubuntu/stereo/dialog-information.ogg +} +sn2() { + sound /usr/share/sounds/freedesktop/stereo/complete.oga +} +sn3() { + sound /usr/share/sounds/freedesktop/stereo/suspend-error.oga +} From 82aedf5a20b0adf98c78656cc767c31cc53e3de1 Mon Sep 17 00:00:00 2001 From: osbm Date: Wed, 28 Sep 2022 21:02:56 +0300 Subject: [PATCH 008/171] add another git config --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 151f0cf..078c54d 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,8 @@ echo 'source ~/Documents/GitHub/dotfiles/.zshrc' >> ~/.zshrc git config --global user.name "osbm" git config --global user.email "osmanfbayram@gmail.com" -git config --global credential.helper store +git config --global credential.helper store # store secrets +git config --global core.pager cat # use cat for outputs ``` - [ ] vscode @@ -26,7 +27,7 @@ git config --global credential.helper store - [ ] rclone # after a system install -- [ ] install optimization repository +- [ ] install optimization repository - [ ] install rclone backup script - [ ] clone all the repositories that are not archived - [ ] install these python packages @@ -52,4 +53,4 @@ git config --global credential.helper store - [ ] trash (cli) - [ ] spectacle (screenshot) - [ ] appimagelauncher for obsidian - + From 4cf4a0509f3a6440ffee5f09e82b65e2219869f5 Mon Sep 17 00:00:00 2001 From: osbm Date: Sun, 16 Oct 2022 14:28:15 +0300 Subject: [PATCH 009/171] add autosetupremote --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 078c54d..3675da6 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,9 @@ git config --global user.email "osmanfbayram@gmail.com" git config --global credential.helper store # store secrets git config --global core.pager cat # use cat for outputs + +git config --global push.autoSetupRemote true # automatically set upstream + ``` - [ ] vscode From f6f9cb889a0ecf0fa74d3743bdfc8a56ad448fe4 Mon Sep 17 00:00:00 2001 From: osbm Date: Sun, 6 Nov 2022 23:46:27 +0300 Subject: [PATCH 010/171] this is unnecessary --- .ipython/startup/00-log_session.ipy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.ipython/startup/00-log_session.ipy b/.ipython/startup/00-log_session.ipy index 089e2d2..5fe3984 100644 --- a/.ipython/startup/00-log_session.ipy +++ b/.ipython/startup/00-log_session.ipy @@ -8,6 +8,6 @@ from datetime import datetime ipython = get_ipython() filename = '/home/osman/Documents/ipython_sessions/' -filename += datetime.now().strftime('%Y-%m-%d_%H-%M-%S') + '.ipy' +filename += datetime.now().strftime('%Y-%m-%d_%H-%M-%S') + '.py' ipython.magic('logstart -o ' + filename) From 4c542348fb13f770ca4c52ecbe7396bdbaeba3d8 Mon Sep 17 00:00:00 2001 From: osbm Date: Tue, 8 Nov 2022 15:23:52 +0300 Subject: [PATCH 011/171] add git config --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 3675da6..e1c35bb 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,7 @@ git config --global core.pager cat # use cat for outputs git config --global push.autoSetupRemote true # automatically set upstream +git config --global init.defaultBranch main # set main as default branch ``` - [ ] vscode From 385b2d8afef9d8aeaa0d28d377020abd8f88af72 Mon Sep 17 00:00:00 2001 From: osbm Date: Mon, 21 Nov 2022 16:27:36 +0300 Subject: [PATCH 012/171] delete git gui apps --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index e1c35bb..7ebf607 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,6 @@ git config --global init.defaultBranch main # set main as default branch - [ ] chrome - [ ] zotero - [ ] obsidian - - [ ] gitkraken / github desktop - [ ] zsh - [ ] ani-cli / animdl - [ ] vscode From 2263e351302dc46418fafab56cef50757890dcd7 Mon Sep 17 00:00:00 2001 From: osbm Date: Fri, 24 Mar 2023 01:41:01 +0300 Subject: [PATCH 013/171] overhaul the dotfiles --- .ipython/startup/00-log_session.ipy | 13 ------ .zshrc | 45 -------------------- Makefile | 8 ++++ README.md | 65 +++++------------------------ install.sh | 22 ++++++++++ scripts/aliases.sh | 6 --- scripts/pyenv-config.sh | 3 -- src/.gitconfig | 12 ++++++ src/.zprofile | 3 ++ src/.zshrc | 56 +++++++++++++++++++++++++ 10 files changed, 112 insertions(+), 121 deletions(-) delete mode 100644 .ipython/startup/00-log_session.ipy delete mode 100644 .zshrc create mode 100644 Makefile create mode 100755 install.sh delete mode 100644 scripts/aliases.sh delete mode 100644 scripts/pyenv-config.sh create mode 100644 src/.gitconfig create mode 100644 src/.zprofile create mode 100644 src/.zshrc diff --git a/.ipython/startup/00-log_session.ipy b/.ipython/startup/00-log_session.ipy deleted file mode 100644 index 5fe3984..0000000 --- a/.ipython/startup/00-log_session.ipy +++ /dev/null @@ -1,13 +0,0 @@ -""" -This script will be in the IPython startup directory and will be run before the session starts. -""" - -from IPython import get_ipython -from datetime import datetime - -ipython = get_ipython() - -filename = '/home/osman/Documents/ipython_sessions/' -filename += datetime.now().strftime('%Y-%m-%d_%H-%M-%S') + '.py' - -ipython.magic('logstart -o ' + filename) diff --git a/.zshrc b/.zshrc deleted file mode 100644 index 0a6a985..0000000 --- a/.zshrc +++ /dev/null @@ -1,45 +0,0 @@ - -# Add aliases -# show everything -alias ll="ls -la" - -alias gitdir="cd ~/Documents/GitHub" -alias gpuname="nvidia-smi --query-gpu=name --format=csv,noheader" -alias py="ipython" - -alias l="ls -lFha" - - -# sort according to size -alias lt='ls --human-readable --size -1 -S --classify' - -alias fastping='ping -c 100 -s.2' -alias ve='python -m venv .venv' -alias va='source ./.venv/bin/activate' - -alias free='free -h' - -# to set the default editor to nano -FCEDIT=nano - -# stop autocorrection in z shell -unsetopt correct - - -# import -window root example.png - -sound() { - # plays sounds in sequence and waits for them to finish - for s in $@; do - paplay $s - done -} -sn1() { - sound /usr/share/sounds/ubuntu/stereo/dialog-information.ogg -} -sn2() { - sound /usr/share/sounds/freedesktop/stereo/complete.oga -} -sn3() { - sound /usr/share/sounds/freedesktop/stereo/suspend-error.oga -} diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..fc10c77 --- /dev/null +++ b/Makefile @@ -0,0 +1,8 @@ +all: + chmod +x ./install.sh + ./install.sh + +clone-repos: + git clone https://github.com/osbm/media.git ~/Documents/media + git clone https://github.com/osbm/obsidian.git ~/Documents/obsidian + git clone https://github.com/osbm/wallpapers.git ~/Pictures/wallpapers diff --git a/README.md b/README.md index 7ebf607..7261527 100644 --- a/README.md +++ b/README.md @@ -1,59 +1,16 @@ -# dotfiles - -To install the z-shell configuration to your system: +# To Install my system ``` -echo 'source ~/Documents/GitHub/dotfiles/.zshrc' >> ~/.zshrc +git clone https://github.com/osbm/dotfiles.git ~/Documents/GitHub/dotfiles +cd ~/Documents/GitHub/dotfiles +make ``` -## after initial installation - -``` -git config --global user.name "osbm" -git config --global user.email "osmanfbayram@gmail.com" - -git config --global credential.helper store # store secrets -git config --global core.pager cat # use cat for outputs - -git config --global push.autoSetupRemote true # automatically set upstream - -git config --global init.defaultBranch main # set main as default branch -``` - -- [ ] vscode -- [ ] zsh - - [ ] zsh-autosuggestions - - [ ] zsh-syntax-highlighting - - [ ] zsh-prompt -- [ ] tmux -- [ ] git -- [ ] rclone - -# after a system install -- [ ] install optimization repository -- [ ] install rclone backup script -- [ ] clone all the repositories that are not archived -- [ ] install these python packages - - [ ] kaggle-cli - - [ ] `pip install osbm` -- [ ] install all these programs - - [ ] pyenv - - [ ] discord - - [ ] etcher - - [ ] libreoffice - - [ ] chrome - - [ ] zotero - - [ ] obsidian - - [ ] zsh - - [ ] ani-cli / animdl - - [ ] vscode - - [ ] docker - - [ ] blender - - [ ] gimp - - [ ] microsoft teams - - [ ] rclone - - [ ] trash (cli) - - [ ] spectacle (screenshot) - - [ ] appimagelauncher for obsidian - +Needed applications: +- i3 +- git +- obsidian +- pyenv +- dex +- AppImageLauncher diff --git a/install.sh b/install.sh new file mode 100755 index 0000000..b58052e --- /dev/null +++ b/install.sh @@ -0,0 +1,22 @@ +# change directory to the location of this script +cd "$(dirname "$0")" + +# change default shell to zsh +chsh -s $(which zsh) + +# create my folders +mkdir -p ~/Documents/GitHub +mkdir -p ~/Documents/temp +mkdir -p ~/Pictures/screenshots +mkdir -p ~/Documents/tempdir/old_config_files + +link_file() { + if [ -f ~/$1 ]; then + mv ~/$1 ~/Documents/tempdir/old_config_files/$1 + fi + ln -s src/$1 $2 +} + +link_file .zshrc ~ +link_file .zprofile ~ +link_file .gitconfig ~ diff --git a/scripts/aliases.sh b/scripts/aliases.sh deleted file mode 100644 index 15bd703..0000000 --- a/scripts/aliases.sh +++ /dev/null @@ -1,6 +0,0 @@ -# show everything -alias ll="ls -la" - -alias gitdir="cd ~/Documents/GitHub" -alias gpuname="nvidia-smi --query-gpu=name --format=csv,noheader" -alias py="ipython" diff --git a/scripts/pyenv-config.sh b/scripts/pyenv-config.sh deleted file mode 100644 index 5791174..0000000 --- a/scripts/pyenv-config.sh +++ /dev/null @@ -1,3 +0,0 @@ -export PYENV_ROOT="$HOME/.pyenv" -export PATH="$PYENV_ROOT/bin:$PATH" -eval "$(pyenv init --path)" diff --git a/src/.gitconfig b/src/.gitconfig new file mode 100644 index 0000000..47f354c --- /dev/null +++ b/src/.gitconfig @@ -0,0 +1,12 @@ +[user] + name = osbm + email = osmanfbayram@gmail.com +[credential] + helper = store +[core] + pager = cat + editor = nano +[push] + autoSetupRemote = true +[init] + defaultBranch = main \ No newline at end of file diff --git a/src/.zprofile b/src/.zprofile new file mode 100644 index 0000000..222599e --- /dev/null +++ b/src/.zprofile @@ -0,0 +1,3 @@ +export PYENV_ROOT="$HOME/.pyenv" +command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH" +eval "$(pyenv init -)" \ No newline at end of file diff --git a/src/.zshrc b/src/.zshrc new file mode 100644 index 0000000..cfc76b8 --- /dev/null +++ b/src/.zshrc @@ -0,0 +1,56 @@ + +# --------------- default manjaro zsh config --------------- +# Use powerline +USE_POWERLINE="true" +# Source manjaro-zsh-configuration +if [[ -e /usr/share/zsh/manjaro-zsh-config ]]; then + source /usr/share/zsh/manjaro-zsh-config +fi +# Use manjaro zsh prompt +if [[ -e /usr/share/zsh/manjaro-zsh-prompt ]]; then + source /usr/share/zsh/manjaro-zsh-prompt +fi + +# --------------- Add aliases --------------- +alias gitdir="cd ~/Documents/GitHub" +alias tempdir="cd ~/Documents/temp" + +alias l="ls -lFha" +alias la="ls -a" +alias lt="ls --human-readable --size -1 -S --classify" + +alias fastping="ping -c 100 -i 0.2" +alias gpuname="nvidia-smi --query-gpu=name --format=csv,noheader" +alias screenshot="import -window root ~/Pictures/screenshots/$(date +%Y-%m-%d_%H-%M-%S).png" +alias terraria="dex ~/.local/share/applications/Terraria.desktop" + +alias py="ipython" +alias ve="python -m venv .venv" +alias va="source ./.venv/bin/activate" + +# human readable sizes +alias free="free -h" +alias df="df -h" +alias du="du -h" + +alias ..="cd .." +alias ...="cd ../.." +alias ....="cd ../../.." + +# to set the default editor to nano +FCEDIT=nano + +# to stop autocorrection in z shell +unsetopt correct + +# --------------- pyenv config --------------- +export PYENV_ROOT="$HOME/.pyenv" +command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH" +eval "$(pyenv init -)" + +sound() { + # plays sounds in sequence and waits for them to finish + for s in $@; do + paplay $s + done +} From d169a18588beeffe7d8da4ff0f304f09da68af16 Mon Sep 17 00:00:00 2001 From: osbm Date: Fri, 24 Mar 2023 01:43:07 +0300 Subject: [PATCH 014/171] add latest tag obsidian link --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7261527..f529016 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ make Needed applications: - i3 - git -- obsidian +- obsidian from [this link](https://github.com/obsidianmd/obsidian-releases/releases/latest) - pyenv - dex - AppImageLauncher From fcc5f89c145b03408f330b4c290e109a895eef9f Mon Sep 17 00:00:00 2001 From: osbm Date: Fri, 24 Mar 2023 02:01:53 +0300 Subject: [PATCH 015/171] add scrot configuration --- install.sh | 1 + src/.config/i3-scrot.conf | 1 + 2 files changed, 2 insertions(+) create mode 100644 src/.config/i3-scrot.conf diff --git a/install.sh b/install.sh index b58052e..e520fcc 100755 --- a/install.sh +++ b/install.sh @@ -20,3 +20,4 @@ link_file() { link_file .zshrc ~ link_file .zprofile ~ link_file .gitconfig ~ +link_file .config/i3-scrot.conf ~/.config diff --git a/src/.config/i3-scrot.conf b/src/.config/i3-scrot.conf new file mode 100644 index 0000000..8c6fab5 --- /dev/null +++ b/src/.config/i3-scrot.conf @@ -0,0 +1 @@ +scrot_dir=/home/osman/Pictures/screenshots From afbfc07ac40c7e03ba154fba48b32b6c794e65aa Mon Sep 17 00:00:00 2001 From: osbm Date: Tue, 28 Mar 2023 23:21:11 +0300 Subject: [PATCH 016/171] add open --- src/.zshrc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/.zshrc b/src/.zshrc index cfc76b8..bb4ea93 100644 --- a/src/.zshrc +++ b/src/.zshrc @@ -23,6 +23,7 @@ alias fastping="ping -c 100 -i 0.2" alias gpuname="nvidia-smi --query-gpu=name --format=csv,noheader" alias screenshot="import -window root ~/Pictures/screenshots/$(date +%Y-%m-%d_%H-%M-%S).png" alias terraria="dex ~/.local/share/applications/Terraria.desktop" +alias open="xdg-open" alias py="ipython" alias ve="python -m venv .venv" From 778a62237dc9b6379f3c16d022cd3c09c796dad5 Mon Sep 17 00:00:00 2001 From: osbm Date: Fri, 31 Mar 2023 13:58:35 +0300 Subject: [PATCH 017/171] add nitrogen --- install.sh | 1 + src/.config/nitrogen/nitrogen.cfg | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 src/.config/nitrogen/nitrogen.cfg diff --git a/install.sh b/install.sh index e520fcc..e188c77 100755 --- a/install.sh +++ b/install.sh @@ -21,3 +21,4 @@ link_file .zshrc ~ link_file .zprofile ~ link_file .gitconfig ~ link_file .config/i3-scrot.conf ~/.config +link_file .config/nitrogen/nitrogen.cfg ~/.config/nitrogen/ \ No newline at end of file diff --git a/src/.config/nitrogen/nitrogen.cfg b/src/.config/nitrogen/nitrogen.cfg new file mode 100644 index 0000000..8984f72 --- /dev/null +++ b/src/.config/nitrogen/nitrogen.cfg @@ -0,0 +1,12 @@ +[geometry] +posx=565 +posy=60 +sizex=377 +sizey=591 + +[nitrogen] +view=list +recurse=true +sort=alpha +icon_caps=false +dirs=/usr/share/backgrounds;/home/osman/Pictures/wallpapers; From bad185ee7efabaa68ee6b06b296d6508abaffa13 Mon Sep 17 00:00:00 2001 From: osbm Date: Mon, 10 Apr 2023 15:26:02 +0300 Subject: [PATCH 018/171] add flameshot --- src/.config/flameshot/flameshot.ini | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 src/.config/flameshot/flameshot.ini diff --git a/src/.config/flameshot/flameshot.ini b/src/.config/flameshot/flameshot.ini new file mode 100644 index 0000000..727a0ff --- /dev/null +++ b/src/.config/flameshot/flameshot.ini @@ -0,0 +1,4 @@ +[General] +contrastOpacity=188 +savePath=/home/osman/Pictures/screenshots +showHelp=false From eb4e04d99742416be42e0e0d9a59e01419745c92 Mon Sep 17 00:00:00 2001 From: osbm Date: Mon, 10 Apr 2023 15:26:15 +0300 Subject: [PATCH 019/171] add polybar config --- src/.config/polybar/config.ini | 230 +++++++++++++++++++++++++++++++++ 1 file changed, 230 insertions(+) create mode 100644 src/.config/polybar/config.ini diff --git a/src/.config/polybar/config.ini b/src/.config/polybar/config.ini new file mode 100644 index 0000000..347dc5a --- /dev/null +++ b/src/.config/polybar/config.ini @@ -0,0 +1,230 @@ +;========================================================== +; +; +; ██████╗ ██████╗ ██╗ ██╗ ██╗██████╗ █████╗ ██████╗ +; ██╔══██╗██╔═══██╗██║ ╚██╗ ██╔╝██╔══██╗██╔══██╗██╔══██╗ +; ██████╔╝██║ ██║██║ ╚████╔╝ ██████╔╝███████║██████╔╝ +; ██╔═══╝ ██║ ██║██║ ╚██╔╝ ██╔══██╗██╔══██║██╔══██╗ +; ██║ ╚██████╔╝███████╗██║ ██████╔╝██║ ██║██║ ██║ +; ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝ +; +; +; To learn more about how to configure Polybar +; go to https://github.com/polybar/polybar +; +; The README contains a lot of information +; +;========================================================== + +[colors] +background = #282A2E +background-alt = #373B41 +foreground = #C5C8C6 +primary = #F0C674 +secondary = #8ABEB7 +alert = #A54242 +disabled = #707880 + +[bar/myBar] +width = 100% +height = 24pt +radius = 6 + +; dpi = 96 + +background = ${colors.background} +foreground = ${colors.foreground} + +line-size = 3pt + +border-size = 4pt +border-color = #00000000 + +padding-left = 0 +padding-right = 1 + +module-margin = 1 + +separator = | +separator-foreground = ${colors.disabled} + +font-0 = monospace;2 + +modules-left = xworkspaces xwindow +modules-right = filesystem pulseaudio memory cpu porn-folder-size wlan backlight battery date + +cursor-click = pointer +cursor-scroll = ns-resize + +enable-ipc = true + +; tray-position = right + +; wm-restack = generic +; wm-restack = bspwm +; wm-restack = i3 + +; override-redirect = true + +[module/xworkspaces] +type = internal/xworkspaces + +label-active = %name% +label-active-background = ${colors.background-alt} +label-active-underline= ${colors.primary} +label-active-padding = 1 + +label-occupied = %name% +label-occupied-padding = 1 + +label-urgent = %name% +label-urgent-background = ${colors.alert} +label-urgent-padding = 1 + +label-empty = %name% +label-empty-foreground = ${colors.disabled} +label-empty-padding = 1 + +[module/xwindow] +type = internal/xwindow +label = %title:0:60:...% + +[module/filesystem] +type = internal/fs +interval = 25 + +mount-0 = / + +label-mounted = %{F#F0C674}%mountpoint%%{F-} %percentage_used%% + +label-unmounted = %mountpoint% not mounted +label-unmounted-foreground = ${colors.disabled} + +[module/pulseaudio] +type = internal/pulseaudio + +format-volume-prefix = "VOL " +format-volume-prefix-foreground = ${colors.primary} +format-volume = + +label-volume = %percentage%% + +label-muted = muted +label-muted-foreground = ${colors.disabled} + +[module/xkeyboard] +type = internal/xkeyboard +blacklist-0 = num lock + +label-layout = %layout% +label-layout-foreground = ${colors.primary} + +label-indicator-padding = 2 +label-indicator-margin = 1 +label-indicator-foreground = ${colors.background} +label-indicator-background = ${colors.secondary} + +[module/battery] +type = internal/battery + +; This is useful in case the battery never reports 100% charge +; Default: 100 +full-at = 99 + +; format-low once this charge percentage is reached +; Default: 10 +; New in version 3.6.0 +low-at = 5 + +; Use the following command to list batteries and adapters: +; $ ls -1 /sys/class/power_supply/ +battery = BAT0 +adapter = ADP1 + +; If an inotify event haven't been reported in this many +; seconds, manually poll for new values. +; +; Needed as a fallback for systems that don't report events +; on sysfs/procfs. +; +; Disable polling by setting the interval to 0. +; +; Default: 5 +label-charging = Charging %percentage%% +label-full = Fully charged +label-discharging = Discharging %percentage%% + +poll-interval = 5 + +animation-discharging-0 =  +animation-discharging-1 =  +animation-discharging-2 =  +animation-discharging-3 =  +animation-discharging-4 =  +; Framerate in milliseconds +animation-discharging-framerate = 500 + + +[module/memory] +type = internal/memory +interval = 2 +format-prefix = "RAM " +format-prefix-foreground = ${colors.primary} +label = %percentage_used:2%% + +[module/cpu] +type = internal/cpu +interval = 2 +format-prefix = "CPU " +format-prefix-foreground = ${colors.primary} +label = %percentage:2%% + +[network-base] +type = internal/network +interval = 5 +format-connected = +format-disconnected = +label-disconnected = %{F#F0C674}%ifname%%{F#707880} disconnected + +[module/porn-folder-size] +label=porn folder 9GB (not enough) + +[module/wlan] +inherit = network-base +interface-type = wireless +label-connected = %{F#F0C674}%ifname%%{F-} %essid% + +[module/eth] +inherit = network-base +interface-type = wired +label-connected = %{F#F0C674}%ifname%%{F-} %local_ip% + +; [module/wifi] # uses rofi +; type = custom/script +; exec = /home/username/.config/polybar/scripts/wifi.sh +; tail = true +; interval = 5 + +[module/backlight] +type = internal/xbacklight +label = %percentage%% + + +[module/date] +type = internal/date +interval = 1 + +date = %b-%d (%a) +date-alt = %Y-%m-%d + +time = %H:%M +time-alt = %H:%M:%S + +label = %date% | %time% +label-foreground = ${colors.primary} + +[settings] +screenchange-reload = true +pseudo-transparency = true + +; vim:ft=dosini From fcb6a96340b81ca25e9af09800554dcfc6a1baf4 Mon Sep 17 00:00:00 2001 From: osbm Date: Mon, 10 Apr 2023 15:26:29 +0300 Subject: [PATCH 020/171] add polybar launch script --- src/.config/polybar/launch.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 src/.config/polybar/launch.sh diff --git a/src/.config/polybar/launch.sh b/src/.config/polybar/launch.sh new file mode 100755 index 0000000..70a1fb8 --- /dev/null +++ b/src/.config/polybar/launch.sh @@ -0,0 +1,14 @@ +#!/usr/bin/env bash + +# Terminate already running bar instances +# If all your bars have ipc enabled, you can use +polybar-msg cmd quit +# Otherwise you can use the nuclear option: +# killall -q polybar + +# Launch bar1 and bar2 +echo "---" | tee -a /tmp/myBar.log +polybar myBar > /dev/null 2>&1 | tee -a /tmp/myBar.log & disown +# polybar bar2 2>&1 | tee -a /tmp/polybar2.log & disown + +echo "myBar launched..." From 2caf217108affbf56b21f78d8cb83f69f6312f3c Mon Sep 17 00:00:00 2001 From: osbm Date: Mon, 10 Apr 2023 15:26:38 +0300 Subject: [PATCH 021/171] add i3 config --- src/.i3/config | 425 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 425 insertions(+) create mode 100644 src/.i3/config diff --git a/src/.i3/config b/src/.i3/config new file mode 100644 index 0000000..17afff1 --- /dev/null +++ b/src/.i3/config @@ -0,0 +1,425 @@ +# i3 config file (v4) +# Please see http://i3wm.org/docs/userguide.html for a complete reference! + +# Set mod key (Mod1=, Mod4=) +set $mod Mod4 + +# dunst added by osbm +exec --no-startup-id dunst + + +# set default desktop layout (default is tiling) +# workspace_layout tabbed + +# Configure border style +default_border pixel 1 +default_floating_border normal + +# Hide borders +hide_edge_borders none + +# change borders +bindsym $mod+u border none +bindsym $mod+y border pixel 1 +bindsym $mod+n border normal + +# Font for window titles. Will also be used by the bar unless a different font +# is used in the bar {} block below. +font xft:URWGothic-Book 11 + +# Use Mouse+$mod to drag floating windows +floating_modifier $mod + +# start a terminal +bindsym $mod+Return exec alacritty + +# kill focused window +bindsym $mod+Shift+q kill + +# start program launcher +bindsym $mod+d exec --no-startup-id dmenu_recency + +# launch categorized menu +bindsym $mod+z exec --no-startup-id morc_menu + +################################################################################################ +## sound-section - DO NOT EDIT if you wish to automatically upgrade Alsa -> Pulseaudio later! ## +################################################################################################ + +exec --no-startup-id volumeicon +bindsym $mod+Ctrl+m exec terminal -e 'alsamixer' +#exec --no-startup-id pulseaudio +#exec --no-startup-id pa-applet +#bindsym $mod+Ctrl+m exec pavucontrol + +################################################################################################ + +# Screen brightness controls +# bindsym XF86MonBrightnessUp exec "xbacklight -inc 10; notify-send 'brightness up'" +# bindsym XF86MonBrightnessDown exec "xbacklight -dec 10; notify-send 'brightness down'" + +# Start Applications +bindsym $mod+Ctrl+b exec terminal -e 'bmenu' +bindsym $mod+F2 exec google-chrome-stable +bindsym $mod+F3 exec pcmanfm +# bindsym $mod+F3 exec ranger +bindsym $mod+Shift+F3 exec pcmanfm_pkexec +bindsym $mod+F5 exec terminal -e 'mocp' +bindsym $mod+t exec --no-startup-id pkill picom +bindsym $mod+Ctrl+t exec --no-startup-id picom -b +bindsym $mod+Shift+d --release exec "killall dunst; exec notify-send 'restart dunst'" +bindsym Print exec --no-startup-id flameshot gui +bindsym $mod+Print --release exec --no-startup-id i3-scrot -w +bindsym $mod+Shift+Print --release exec --no-startup-id i3-scrot -s +bindsym $mod+Shift+h exec xdg-open /usr/share/doc/manjaro/i3_help.pdf +bindsym $mod+Ctrl+x --release exec --no-startup-id xkill + +# focus_follows_mouse no + +# change focus +bindsym $mod+j focus left +bindsym $mod+k focus down +bindsym $mod+l focus up +bindsym $mod+semicolon focus right + +# alternatively, you can use the cursor keys: +bindsym $mod+Left focus left +bindsym $mod+Down focus down +bindsym $mod+Up focus up +bindsym $mod+Right focus right + +# move focused window +bindsym $mod+Shift+j move left +bindsym $mod+Shift+k move down +bindsym $mod+Shift+l move up +bindsym $mod+Shift+semicolon move right + +# alternatively, you can use the cursor keys: +bindsym $mod+Shift+Left move left +bindsym $mod+Shift+Down move down +bindsym $mod+Shift+Up move up +bindsym $mod+Shift+Right move right + +# workspace back and forth (with/without active container) +workspace_auto_back_and_forth yes +bindsym $mod+b workspace back_and_forth +bindsym $mod+Shift+b move container to workspace back_and_forth; workspace back_and_forth + +# split orientation +bindsym $mod+h split h;exec notify-send 'tile horizontally' +bindsym $mod+v split v;exec notify-send 'tile vertically' +bindsym $mod+q split toggle + +# toggle fullscreen mode for the focused container +bindsym $mod+f fullscreen toggle + +# change container layout (stacked, tabbed, toggle split) +bindsym $mod+s layout stacking +bindsym $mod+w layout tabbed +bindsym $mod+e layout toggle split + +# toggle tiling / floating +bindsym $mod+Shift+space floating toggle + +# change focus between tiling / floating windows +bindsym $mod+space focus mode_toggle + +# toggle sticky +bindsym $mod+Shift+s sticky toggle + +# focus the parent container +bindsym $mod+a focus parent + +# move the currently focused window to the scratchpad +bindsym $mod+Shift+minus move scratchpad + +# Show the next scratchpad window or hide the focused scratchpad window. +# If there are multiple scratchpad windows, this command cycles through them. +bindsym $mod+minus scratchpad show + +#navigate workspaces next / previous +bindsym $mod+Ctrl+Right workspace next +bindsym $mod+Ctrl+Left workspace prev + +# Workspace names +# to display names or symbols instead of plain workspace numbers you can use +# something like: set $ws1 1:mail +# set $ws2 2: +set $ws1 1 +set $ws2 2 +set $ws3 3 +set $ws4 4 +set $ws5 5 +set $ws6 6 +set $ws7 7 +set $ws8 8 + +# switch to workspace +bindsym $mod+1 workspace $ws1 +bindsym $mod+2 workspace $ws2 +bindsym $mod+3 workspace $ws3 +bindsym $mod+4 workspace $ws4 +bindsym $mod+5 workspace $ws5 +bindsym $mod+6 workspace $ws6 +bindsym $mod+7 workspace $ws7 +bindsym $mod+8 workspace $ws8 + +# Move focused container to workspace +bindsym $mod+Ctrl+1 move container to workspace $ws1 +bindsym $mod+Ctrl+2 move container to workspace $ws2 +bindsym $mod+Ctrl+3 move container to workspace $ws3 +bindsym $mod+Ctrl+4 move container to workspace $ws4 +bindsym $mod+Ctrl+5 move container to workspace $ws5 +bindsym $mod+Ctrl+6 move container to workspace $ws6 +bindsym $mod+Ctrl+7 move container to workspace $ws7 +bindsym $mod+Ctrl+8 move container to workspace $ws8 + +# Move to workspace with focused container +bindsym $mod+Shift+1 move container to workspace $ws1; workspace $ws1 +bindsym $mod+Shift+2 move container to workspace $ws2; workspace $ws2 +bindsym $mod+Shift+3 move container to workspace $ws3; workspace $ws3 +bindsym $mod+Shift+4 move container to workspace $ws4; workspace $ws4 +bindsym $mod+Shift+5 move container to workspace $ws5; workspace $ws5 +bindsym $mod+Shift+6 move container to workspace $ws6; workspace $ws6 +bindsym $mod+Shift+7 move container to workspace $ws7; workspace $ws7 +bindsym $mod+Shift+8 move container to workspace $ws8; workspace $ws8 + +# Open applications on specific workspaces +# assign [class="Thunderbird"] $ws1 +# assign [class="Pale moon"] $ws2 +# assign [class="Pcmanfm"] $ws3 +# assign [class="Skype"] $ws5 + +# Open specific applications in floating mode +for_window [title="alsamixer"] floating enable border pixel 1 +for_window [class="calamares"] floating enable border normal +for_window [class="Clipgrab"] floating enable +for_window [title="File Transfer*"] floating enable +for_window [class="fpakman"] floating enable +for_window [class="Galculator"] floating enable border pixel 1 +for_window [class="GParted"] floating enable border normal +for_window [title="i3_help"] floating enable sticky enable border normal +for_window [class="Lightdm-settings"] floating enable +for_window [class="Lxappearance"] floating enable sticky enable border normal +for_window [class="Manjaro-hello"] floating enable +for_window [class="Manjaro Settings Manager"] floating enable border normal +for_window [title="MuseScore: Play Panel"] floating enable +for_window [class="Nitrogen"] floating enable sticky enable border normal +for_window [class="Oblogout"] fullscreen enable +for_window [class="octopi"] floating enable +for_window [title="About Pale Moon"] floating enable +for_window [class="Pamac-manager"] floating enable +for_window [class="Pavucontrol"] floating enable +for_window [class="qt5ct"] floating enable sticky enable border normal +for_window [class="Qtconfig-qt4"] floating enable sticky enable border normal +for_window [class="Simple-scan"] floating enable border normal +for_window [class="(?i)System-config-printer.py"] floating enable border normal +for_window [class="Skype"] floating enable border normal +for_window [class="Timeset-gui"] floating enable border normal +for_window [class="(?i)virtualbox"] floating enable border normal +for_window [class="Xfburn"] floating enable + +# switch to workspace with urgent window automatically +for_window [urgent=latest] focus + +# reload the configuration file +bindsym $mod+Shift+c reload + +# restart i3 inplace (preserves your layout/session, can be used to upgrade i3) +bindsym $mod+Shift+r restart + +# exit i3 (logs you out of your X session) +bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'" + +# Set shut down, restart and locking features +bindsym $mod+0 mode "$mode_system" +set $mode_system (l)ock, (e)xit, switch_(u)ser, (s)uspend, (h)ibernate, (r)eboot, (Shift+s)hutdown +mode "$mode_system" { + bindsym l exec --no-startup-id i3exit lock, mode "default" + bindsym s exec --no-startup-id i3exit suspend, mode "default" + bindsym u exec --no-startup-id i3exit switch_user, mode "default" + bindsym e exec --no-startup-id i3exit logout, mode "default" + bindsym h exec --no-startup-id i3exit hibernate, mode "default" + bindsym r exec --no-startup-id i3exit reboot, mode "default" + bindsym Shift+s exec --no-startup-id i3exit shutdown, mode "default" + + # exit system mode: "Enter" or "Escape" + bindsym Return mode "default" + bindsym Escape mode "default" +} + +# Resize window (you can also use the mouse for that) +bindsym $mod+r mode "resize" +mode "resize" { + # These bindings trigger as soon as you enter the resize mode + # Pressing left will shrink the window’s width. + # Pressing right will grow the window’s width. + # Pressing up will shrink the window’s height. + # Pressing down will grow the window’s height. + bindsym j resize shrink width 5 px or 5 ppt + bindsym k resize grow height 5 px or 5 ppt + bindsym l resize shrink height 5 px or 5 ppt + bindsym semicolon resize grow width 5 px or 5 ppt + + # same bindings, but for the arrow keys + bindsym Left resize shrink width 10 px or 10 ppt + bindsym Down resize grow height 10 px or 10 ppt + bindsym Up resize shrink height 10 px or 10 ppt + bindsym Right resize grow width 10 px or 10 ppt + + # exit resize mode: Enter or Escape + bindsym Return mode "default" + bindsym Escape mode "default" +} + +# Lock screen +bindsym $mod+9 exec --no-startup-id blurlock + +# Autostart applications +exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 +exec --no-startup-id nitrogen --restore; sleep 1; picom -b +# exec --no-startup-id manjaro-hello +exec --no-startup-id nm-applet +exec --no-startup-id xfce4-power-manager +exec --no-startup-id pamac-tray +# add flameshot to autostart +exec --no-startup-id flameshot + +exec --no-startup-id clipit +# exec --no-startup-id blueman-applet +# exec_always --no-startup-id sbxkb +exec --no-startup-id start_conky_maia +# exec --no-startup-id start_conky_green +exec --no-startup-id xautolock -time 10 -locker blurlock +exec_always --no-startup-id ff-theme-util +exec_always --no-startup-id fix_xcursor + +# Color palette used for the terminal ( ~/.Xresources file ) +# Colors are gathered based on the documentation: +# https://i3wm.org/docs/userguide.html#xresources +# Change the variable name at the place you want to match the color +# of your terminal like this: +# [example] +# If you want your bar to have the same background color as your +# terminal background change the line 362 from: +# background #14191D +# to: +# background $term_background +# Same logic applied to everything else. +set_from_resource $term_background background +set_from_resource $term_foreground foreground +set_from_resource $term_color0 color0 +set_from_resource $term_color1 color1 +set_from_resource $term_color2 color2 +set_from_resource $term_color3 color3 +set_from_resource $term_color4 color4 +set_from_resource $term_color5 color5 +set_from_resource $term_color6 color6 +set_from_resource $term_color7 color7 +set_from_resource $term_color8 color8 +set_from_resource $term_color9 color9 +set_from_resource $term_color10 color10 +set_from_resource $term_color11 color11 +set_from_resource $term_color12 color12 +set_from_resource $term_color13 color13 +set_from_resource $term_color14 color14 +set_from_resource $term_color15 color15 + +# Start i3bar to display a workspace bar (plus the system information i3status if available) +bar { + i3bar_command i3bar + status_command i3status + position bottom + +## please set your primary output first. Example: 'xrandr --output eDP1 --primary' +# tray_output primary +# tray_output eDP1 + + bindsym button4 nop + bindsym button5 nop +# font xft:URWGothic-Book 11 + strip_workspace_numbers yes + + colors { + background #222D31 + statusline #F9FAF9 + separator #454947 + +# border backgr. text + focused_workspace #F9FAF9 #16a085 #292F34 + active_workspace #595B5B #353836 #FDF6E3 + inactive_workspace #595B5B #222D31 #EEE8D5 + binding_mode #16a085 #2C2C2C #F9FAF9 + urgent_workspace #16a085 #FDF6E3 #E5201D + } +} + +# hide/unhide i3status bar +bindsym $mod+m bar mode toggle + +# Theme colors +# class border backgr. text indic. child_border + client.focused #556064 #556064 #80FFF9 #FDF6E3 + client.focused_inactive #2F3D44 #2F3D44 #1ABC9C #454948 + client.unfocused #2F3D44 #2F3D44 #1ABC9C #454948 + client.urgent #CB4B16 #FDF6E3 #1ABC9C #268BD2 + client.placeholder #000000 #0c0c0c #ffffff #000000 + + client.background #2B2C2B + +############################# +### settings for i3-gaps: ### +############################# + +# Set inner/outer gaps +gaps inner 14 +gaps outer -2 + +# Additionally, you can issue commands with the following syntax. This is useful to bind keys to changing the gap size. +# gaps inner|outer current|all set|plus|minus +# gaps inner all set 10 +# gaps outer all plus 5 + +# Smart gaps (gaps used if only more than one container on the workspace) +smart_gaps on + +# Smart borders (draw borders around container only if it is not the only container on this workspace) +# on|no_gaps (on=always activate and no_gaps=only activate if the gap size to the edge of the screen is 0) +smart_borders on + +# Press $mod+Shift+g to enter the gap mode. Choose o or i for modifying outer/inner gaps. Press one of + / - (in-/decrement for current workspace) or 0 (remove gaps for current workspace). If you also press Shift with these keys, the change will be global for all workspaces. +set $mode_gaps Gaps: (o) outer, (i) inner +set $mode_gaps_outer Outer Gaps: +|-|0 (local), Shift + +|-|0 (global) +set $mode_gaps_inner Inner Gaps: +|-|0 (local), Shift + +|-|0 (global) +bindsym $mod+Shift+g mode "$mode_gaps" + +mode "$mode_gaps" { + bindsym o mode "$mode_gaps_outer" + bindsym i mode "$mode_gaps_inner" + bindsym Return mode "default" + bindsym Escape mode "default" +} +mode "$mode_gaps_inner" { + bindsym plus gaps inner current plus 5 + bindsym minus gaps inner current minus 5 + bindsym 0 gaps inner current set 0 + + bindsym Shift+plus gaps inner all plus 5 + bindsym Shift+minus gaps inner all minus 5 + bindsym Shift+0 gaps inner all set 0 + + bindsym Return mode "default" + bindsym Escape mode "default" +} +mode "$mode_gaps_outer" { + bindsym plus gaps outer current plus 5 + bindsym minus gaps outer current minus 5 + bindsym 0 gaps outer current set 0 + + bindsym Shift+plus gaps outer all plus 5 + bindsym Shift+minus gaps outer all minus 5 + bindsym Shift+0 gaps outer all set 0 + + bindsym Return mode "default" + bindsym Escape mode "default" +} From ec490a84d7c255f4747e99f5d05edb3c3a0a0b20 Mon Sep 17 00:00:00 2001 From: osbm Date: Mon, 10 Apr 2023 16:06:35 +0300 Subject: [PATCH 022/171] fix the installer script --- install.sh | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index e188c77..a1088dc 100755 --- a/install.sh +++ b/install.sh @@ -2,7 +2,7 @@ cd "$(dirname "$0")" # change default shell to zsh -chsh -s $(which zsh) +# chsh -s $(which zsh) # create my folders mkdir -p ~/Documents/GitHub @@ -11,10 +11,23 @@ mkdir -p ~/Pictures/screenshots mkdir -p ~/Documents/tempdir/old_config_files link_file() { + # if that file exists, move it to the temp folder if [ -f ~/$1 ]; then - mv ~/$1 ~/Documents/tempdir/old_config_files/$1 + echo "Moving ~/$1 to ~/Documents/temp/old_config_files/$1" + # lets create that folder if it doesn't exist + # get the folder name of the &1 + mkdir -p ~/Documents/temp/old_config_files/$(dirname $1) + mv ~/$1 ~/Documents/temp/old_config_files/$1 fi - ln -s src/$1 $2 + + # if that file is already a symlink, remove it + if [ -L ~/$1 ]; then + echo "Removing ~/$1" + rm ~/$1 + fi + + echo "Linking ~/$1 to ~/Documents/GitHub/dotfiles/src/$1" + ln -s ~/Documents/GitHub/dotfiles/src/$1 $2 } link_file .zshrc ~ From cd9b7f18e0bf481cde0aa1e25f9dba3dc3fe44be Mon Sep 17 00:00:00 2001 From: osbm Date: Mon, 10 Apr 2023 19:14:47 +0300 Subject: [PATCH 023/171] add missing configurations to the installation script --- install.sh | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index a1088dc..7e423b4 100755 --- a/install.sh +++ b/install.sh @@ -20,10 +20,19 @@ link_file() { mv ~/$1 ~/Documents/temp/old_config_files/$1 fi + # if that folder exists, move it to the temp folder + if [ -d ~/$1 ]; then + echo "Moving ~/$1 to ~/Documents/temp/old_config_files/$1" + # lets create that folder if it doesn't exist + # get the folder name of the &1 + mkdir -p ~/Documents/temp/old_config_files/$(dirname $1) + mv ~/$1 ~/Documents/temp/old_config_files/$1 + fi + # if that file is already a symlink, remove it if [ -L ~/$1 ]; then echo "Removing ~/$1" - rm ~/$1 + rm -rf ~/$1 fi echo "Linking ~/$1 to ~/Documents/GitHub/dotfiles/src/$1" @@ -33,5 +42,8 @@ link_file() { link_file .zshrc ~ link_file .zprofile ~ link_file .gitconfig ~ +link_file .i3/ ~/ link_file .config/i3-scrot.conf ~/.config -link_file .config/nitrogen/nitrogen.cfg ~/.config/nitrogen/ \ No newline at end of file +link_file .config/nitrogen/ ~/.config/ +link_file .config/flameshot/ ~/.config/ +link_file .config/polybar/ ~/.config/ From cbf2220d577020a7f1bdf9abdf26ba05644c9f86 Mon Sep 17 00:00:00 2001 From: osbm Date: Mon, 10 Apr 2023 20:14:56 +0300 Subject: [PATCH 024/171] added backlight --- src/.config/polybar/config.ini | 33 ++++++++++++++++++++++----------- 1 file changed, 22 insertions(+), 11 deletions(-) diff --git a/src/.config/polybar/config.ini b/src/.config/polybar/config.ini index 347dc5a..5353c1c 100644 --- a/src/.config/polybar/config.ini +++ b/src/.config/polybar/config.ini @@ -49,16 +49,17 @@ separator = | separator-foreground = ${colors.disabled} font-0 = monospace;2 +font-7 = NotoEmoji:scale=10 modules-left = xworkspaces xwindow -modules-right = filesystem pulseaudio memory cpu porn-folder-size wlan backlight battery date +modules-right = pulseaudio backlight wlan battery date cursor-click = pointer cursor-scroll = ns-resize enable-ipc = true -; tray-position = right +# tray-position = left ; wm-restack = generic ; wm-restack = bspwm @@ -109,6 +110,8 @@ format-volume = label-volume = %percentage%% +# label-muted = Muted + label-muted = muted label-muted-foreground = ${colors.disabled} @@ -126,14 +129,7 @@ label-indicator-background = ${colors.secondary} [module/battery] type = internal/battery - -; This is useful in case the battery never reports 100% charge -; Default: 100 full-at = 99 - -; format-low once this charge percentage is reached -; Default: 10 -; New in version 3.6.0 low-at = 5 ; Use the following command to list batteries and adapters: @@ -206,8 +202,23 @@ label-connected = %{F#F0C674}%ifname%%{F-} %local_ip% ; interval = 5 [module/backlight] -type = internal/xbacklight -label = %percentage%% +type = internal/backlight +card = intel_backlight +use-actual-brightness = true + +enable-scroll = true +format =