Compare commits

...
Sign in to create a new pull request.

159 commits

Author SHA1 Message Date
90c62cd0f5 i dont know what i am doing actually 2025-01-14 00:47:34 +03:00
42888b55f4 pyenv my beloved 2025-01-14 00:45:52 +03:00
86971004f1 ignore nix result files globally 2024-12-22 18:09:42 +03:00
7e3213b9ed dont link the neovim for now 2024-12-14 03:26:55 +03:00
70a84ef9b6 update fcitx 2024-12-10 18:06:36 +03:00
1623c77a91 update lazy 2024-12-10 15:43:37 +03:00
2c33518f6f update path 2024-12-02 11:45:39 +03:00
59b752cf48 fix tlrc 2024-12-01 15:48:02 +03:00
dee54164bc updated config 2024-12-01 00:45:14 +03:00
33441765a7 fix alacritty path 2024-12-01 00:36:43 +03:00
4daa3cde5f update nvim lazy 2024-12-01 00:36:04 +03:00
974a30186e update lazy packages 2024-11-25 10:23:11 +03:00
aa5996a1d5 now it works for both nixos and arch 2024-11-25 10:22:42 +03:00
20ea52277d disable git in tmux 2024-11-23 17:26:55 +03:00
78df6f0bb8 awesome new justfile 2024-11-18 02:28:12 +03:00
b5768ab96e delete ssh config from here 2024-11-18 00:31:57 +03:00
bf272e0cb5 add just command runner and bashrc and starship 2024-11-17 16:07:49 +03:00
5b4fce0444 fcitx5 annoying notification 2024-11-17 16:06:51 +03:00
d382450c64 fix stupid typo because i am a stupid man 2024-11-16 22:05:06 +03:00
3ca792bd8f add starfish to fish shell 2024-11-16 22:03:34 +03:00
16c65295ba change theme 2024-11-16 17:52:36 +03:00
3a8ce2da82 git clone big repositories 2024-11-16 17:51:56 +03:00
5a8ee95b24 stop being weird 2024-11-05 00:33:23 +03:00
f2a6a1abed small update 2024-10-18 11:04:57 +03:00
a4d38b717d i need to store ssh somewhere else 2024-09-30 22:00:54 +03:00
c0f657fd0f remove obs for now 2024-09-22 21:04:05 +03:00
9a2d27810f add fcitx5 to makefile 2024-09-22 21:02:31 +03:00
1990e1e047 add fcitx5 config 2024-09-22 20:59:42 +03:00
dde1082f18 add mpv (closes #5) 2024-09-21 20:41:05 +03:00
4eb834295e also delete containers after done 2024-09-15 03:08:16 +03:00
7d447ceba2 update nevim treesitter 2024-09-13 17:35:22 +03:00
ccca1e172e better neovim file explorer 2024-09-12 21:37:46 +03:00
f42e775fbf at this point i am just adding random shit to neovim 2024-09-12 18:40:47 +03:00
5b0e0ff025 why tmux mess with coloring? 2024-09-12 14:27:11 +03:00
ef15074d6d set this python venv for some reason 2024-09-11 19:29:52 +03:00
43fec98399 add plugins to neovim 2024-09-11 19:29:30 +03:00
eb3bbeacc3 move neovim config to lua 2024-09-11 00:58:38 +03:00
4f9d0e344c add global gitignore file because fuck macos 2024-09-10 19:47:32 +03:00
67f5434fb0 i dont remember what this settings does 🤡 2024-09-10 16:01:28 +03:00
cb827a1a33 add kitty theme 2024-09-10 16:00:17 +03:00
d0beab13fc add neovim config 2024-08-31 20:21:20 +03:00
eae75327f3 he is a big boy now 2024-08-31 20:18:43 +03:00
d68125fbbf add zoxide abbreviations 2024-08-29 21:27:49 +03:00
10aea1193f add yazi configuration for tmux 2024-08-27 14:00:04 +03:00
f4bf35e0d8 add kitty conf 2024-08-27 13:59:41 +03:00
6303a831e1 add cargo path fish 2024-08-27 13:59:24 +03:00
f1c60831a7 update vscode settings 2024-08-27 13:59:06 +03:00
421fb47afa renumber windows on tmux 2024-08-19 22:49:40 +03:00
b71d277beb add vscode alias 2024-08-19 18:49:21 +03:00
0e342df081 dont use lspci 2024-08-18 21:24:13 +03:00
70d9b17ee5 add maintanence 2024-08-17 14:51:32 +03:00
c09450490d i dont understand obs 2024-08-17 11:38:02 +03:00
bbe8b502e8 update obs-studio 2024-08-17 11:37:40 +03:00
aabef65e95 create tlrc folder 2024-08-02 19:53:39 +03:00
445a753154 fix alacritty link 2024-08-02 19:50:15 +03:00
57fdfd426a also create vscode folder 2024-08-02 16:35:43 +03:00
79e77cd5e6 first create folder 2024-08-02 16:34:34 +03:00
5ec03c902c more beautiful readme 2024-07-29 01:15:10 +03:00
2aa50cdc7b add turkish and japanese 2024-07-29 01:13:12 +03:00
54bb9b4d99 dont give error when these programs doesnt exist 2024-07-25 15:24:10 +03:00
470ef57577 aliases are better for one liners 2024-07-25 15:23:22 +03:00
342da216e4 add new git config 2024-07-25 15:12:48 +03:00
e54d57037e update obs 2024-07-25 15:12:34 +03:00
cf7daf5c6f add new folders 2024-07-25 14:27:39 +03:00
d59f9fb262 i hate trailing whitespace 2024-07-25 14:27:28 +03:00
0508ca604e add an useful git alias 2024-07-24 02:18:06 +03:00
ebd441bb22 update obs 2024-07-20 01:37:10 +03:00
a558f16269 add obs studio config 2024-07-20 01:33:48 +03:00
ec66763bf6 ipython shortcut 2024-07-17 21:21:54 +03:00
17a11cdc78 add work host 2024-07-16 15:49:58 +03:00
d695c32545 classy 2024-07-16 15:49:39 +03:00
ebe9717344 dracula config update 2024-07-16 15:14:54 +03:00
2e3082b6d6 default vscode terminal is fish 2024-07-13 23:23:08 +03:00
f67bee1c2b add new python shortcuts 2024-07-13 22:39:06 +03:00
607067a18e add free human readable 2024-07-12 20:25:06 +03:00
8124014dab add python environment aliases 2024-07-10 13:19:20 +03:00
9a0ab81b7c remove scripts folder 2024-07-10 01:20:05 +03:00
bf484a86af human readability is more important 2024-07-10 01:18:41 +03:00
87f666f9be add nnn config 2024-07-05 22:36:07 +03:00
baaf340b43 bigger fontsize 2024-07-05 22:35:45 +03:00
db351d8caa add tlrc config 2024-07-04 17:38:00 +03:00
9b00af9bde add vscode settings 2024-07-03 17:31:38 +03:00
02674e103f add new fish command 2024-07-03 17:12:47 +03:00
a000bdea23 move unused nixos to its own repository 2024-07-03 15:43:06 +03:00
f4199affbd update tmux config 2024-07-03 15:37:56 +03:00
983dc33dee try out shared ssh config file 2024-06-30 20:13:31 +03:00
93ee554720 add pyenv 2024-06-30 19:59:07 +03:00
15b28ac49e seperate git clone 2024-06-30 19:43:49 +03:00
e961a7084f add fish config 2024-06-30 19:33:56 +03:00
d87a735e80 get rid of the nixos paths 2024-06-30 12:20:52 +03:00
cd588f5a5e add installation links 2024-06-30 12:20:35 +03:00
9877f5d34e change shell to fish 2024-06-30 12:20:14 +03:00
0dd1d86a79 enable ssh 2024-06-29 23:38:38 +03:00
9e0cbc3b5e maximize window opacity 2024-06-29 13:39:31 +03:00
4537d90d4d add new programs 2024-06-29 13:38:48 +03:00
64d86ff17d works a bit better with japanese fonts 2024-04-29 15:11:18 +03:00
0fdc1dca69 nvidia-smi still doesnt work 2024-04-25 11:57:12 +03:00
f61f0361f0 tmux installation but not configuration 2024-04-24 01:47:15 +03:00
48831b1fac add some quality of life packages 2024-04-23 18:25:36 +03:00
7d0333d0f3 add configuration 2024-04-23 14:27:06 +03:00
36d98d4cac add yt dlp docker 2024-04-14 12:49:25 +03:00
701277ceeb add terraria backup script 2024-04-14 12:49:09 +03:00
b2068af8bf add docker aliases 2024-02-25 15:42:33 +03:00
7decbeed4c alacritty migrate to TOML 2024-01-03 13:08:36 +03:00
0f73d4c4d0 add go path 2024-01-01 12:31:42 +03:00
3f0c3697d5 global npm bin 2024-01-01 12:31:29 +03:00
eb51004ec9 tmux path stays same 2024-01-01 12:31:06 +03:00
e4d51f9f16 remove redundant aliases 2023-12-07 03:00:14 +03:00
ea05e2608f fix tempdir 2023-12-07 02:59:57 +03:00
9d36300f66 set font size 2023-12-06 18:13:10 +03:00
bdaba048aa add git lfs 2023-12-06 18:11:51 +03:00
c167df1d7f ignore tmux plugins 2023-12-06 17:31:45 +03:00
705ce91cd9 fix path 2023-12-06 17:29:00 +03:00
2f834d0c80 make file will be everything 2023-12-06 17:28:49 +03:00
aad740ae21 remove old linkers 2023-12-06 17:28:28 +03:00
4e463f72ed remove alacritty titlebar 2023-12-06 17:28:13 +03:00
436fd3c6e7 fix tmux path 2023-12-06 16:55:37 +03:00
a247068efc delete i3 stuff 2023-12-06 16:47:23 +03:00
5759bc5684 use mouse damn it 2023-10-05 22:38:34 +03:00
51c0127306 fix indexing in tmux 2023-10-04 17:44:56 +03:00
20086ca396 start alacritty with tmux 2023-10-04 17:38:14 +03:00
232c631cdc only cuda matters 2023-09-14 23:21:11 +03:00
ceeb4e9a7d maximize that baby 2023-09-13 20:59:46 +03:00
762181e619 add tmux and z 2023-09-08 13:22:03 +03:00
b0e6f5deed add new aliases 2023-07-05 05:40:43 +03:00
d813f6e5b3 add jenv 2023-06-26 23:47:17 +03:00
d3a2126dfe i hate blurlock 2023-06-19 02:00:48 +03:00
ef7f434ec1 picom does not work :( 2023-06-10 00:25:06 +03:00
2752a3ea1e add new extensions 2023-06-10 00:24:46 +03:00
10372594b5 add new extensions 2023-06-10 00:24:27 +03:00
a78bbb6d3e picom stuff 2023-06-10 00:23:55 +03:00
66a2fe5b57 add cuda configuration 2023-06-10 00:23:44 +03:00
f99301616b track picom 2023-05-04 23:39:07 +03:00
d9ed3113a9 change wallpaper 2023-05-04 23:38:54 +03:00
d59639fd23 update ulauncher 2023-05-04 23:19:53 +03:00
408d8dbebc track ulauncher 2023-05-04 23:08:27 +03:00
b78c4ae386 conda stuff ? 2023-04-29 11:20:31 +03:00
0e7b4a3f44 add git lfs settings 2023-04-29 11:20:17 +03:00
87d1dba514 switch to ulauncher 2023-04-29 11:20:02 +03:00
77ec3bc041 i dont need to see wifi name in the bar 2023-04-19 01:11:31 +03:00
69bdf88717 track alacritty 2023-04-13 23:27:01 +03:00
a58c128df1 track stupid geometry 2023-04-13 18:44:28 +03:00
3099594406 stop conky and i3bar 2023-04-13 18:43:55 +03:00
0ac3e16046 add system tray 2023-04-13 18:43:24 +03:00
b00b17b048 ignore tracking current wallpaper 2023-04-13 17:06:23 +03:00
b18780ead9 dont shot startup pop up 2023-04-11 09:52:34 +03:00
15fdac347e start polybar at startup 2023-04-11 02:24:22 +03:00
cbf2220d57 added backlight 2023-04-10 20:14:56 +03:00
cd9b7f18e0 add missing configurations to the installation script 2023-04-10 19:14:47 +03:00
ec490a84d7 fix the installer script 2023-04-10 16:06:35 +03:00
2caf217108 add i3 config 2023-04-10 15:26:38 +03:00
fcb6a96340 add polybar launch script 2023-04-10 15:26:29 +03:00
eb4e04d997 add polybar config 2023-04-10 15:26:15 +03:00
bad185ee7e add flameshot 2023-04-10 15:26:02 +03:00
778a62237d add nitrogen 2023-03-31 13:58:35 +03:00
afbfc07ac4 add open 2023-03-28 23:21:11 +03:00
fcc5f89c14 add scrot configuration 2023-03-24 02:01:53 +03:00
d169a18588 add latest tag obsidian link 2023-03-24 01:43:07 +03:00
2263e35130 overhaul the dotfiles 2023-03-24 01:41:01 +03:00
34 changed files with 796 additions and 121 deletions

View file

@ -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)

45
.zshrc
View file

@ -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
}

59
Makefile Normal file
View file

@ -0,0 +1,59 @@
DOTFILES_DIR := /home/osbm/Documents/dotfiles/src
clone:
git clone https://github.com/osbm/rerouting.git ~/Documents/rerouting
git clone https://github.com/osbm/wallpapers.git ~/Pictures/wallpapers
make-directories:
mkdir -p ~/Pictures/screenshots
mkdir -p ~/Documents/bin
mkdir -p ~/Documents/git
mkdir -p ~/Documents/temp
mkdir -p ~/Videos/obs-recordings
mkdir -p ~/Videos/youtube
install-programs-pacman:
sudo pacman -S tmux alacritty trash-cli git git-lfs spectacle unzip docker docker-compose pyenv libreoffice-still obsidian tlrc
link:
# delete directories if they exist
rm -rf ~/.config/alacritty
rm -rf ~/.config/mpv
rm -rf ~/.config/kitty
rm -rf ~/.config/fish
# rm -rf ~/.config/obs-studio
rm -rf ~/.config/flameshot
rm -rf ~/.config/nvim
rm -rf ~/.config/fcitx5
mkdir -p ~/.config/alacritty
mkdir -p ~/.config/mpv
mkdir -p ~/.config/kitty
mkdir -p ~/.config/flameshot
mkdir -p ~/.config/Code/User
mkdir -p ~/.config/tlrc
ln -sf $(DOTFILES_DIR)/.config/fish/ ~/.config/fish
# ln -sf $(DOTFILES_DIR)/.config/obs-studio/ ~/.config/obs-studio
ln -sf $(DOTFILES_DIR)/.config/nvim ~/.config/nvim
ln -sf $(DOTFILES_DIR)/.config/fcitx5 ~/.config/fcitx5
ln -sf $(DOTFILES_DIR)/.gitconfig ~/.gitconfig
ln -sf $(DOTFILES_DIR)/.gitignore ~/.gitignore
ln -sf $(DOTFILES_DIR)/.ssh/config ~/.ssh/config
ln -sf $(DOTFILES_DIR)/.config/alacritty/alacritty.toml ~/.config/alacritty/alacritty.toml
ln -sf $(DOTFILES_DIR)/.config/mpv/mpv.conf ~/.config/mpv/mpv.conf
ln -sf $(DOTFILES_DIR)/.config/kitty/kitty.conf ~/.config/kitty/kitty.conf
ln -sf $(DOTFILES_DIR)/.config/tmux/tmux.conf ~/.config/tmux/tmux.conf
ln -sf $(DOTFILES_DIR)/.config/flameshot/flameshot.ini ~/.config/flameshot/flameshot.ini
ln -sf $(DOTFILES_DIR)/.config/Code/User/settings.json ~/.config/Code/User/settings.json
ln -sf $(DOTFILES_DIR)/.config/tlrc/config.toml ~/.config/tlrc/config.toml
install-tpm:
git clone https://github.com/tmux-plugins/tpm ~/.config/tmux/plugins/tpm
echo "Dont forget to install tmux plugins by 'C-s I'"

View file

@ -1,59 +1,12 @@
# dotfiles
To install the z-shell configuration to your system:
# To Install my configuration:
```
echo 'source ~/Documents/GitHub/dotfiles/.zshrc' >> ~/.zshrc
git clone https://github.com/osbm/dotfiles.git ~/Documents/dotfiles
make make-directories # create my default directories
make install-programs-pacman # install used programs
make link # symlink all configs (be careful this deletes/overwrites previous ones)
make install-tpm # install tpm for tmux
make clone # clone my private repositories (obsidian vault and wallpaper folder)
```
## 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

View file

@ -0,0 +1,24 @@
name: docker-builder
services:
py12:
image: py12
build:
context: ./pyenv
args:
PYTHON_VERSION: 3.12.3
py13:
image: py13
build:
context: ./pyenv
args:
PYTHON_VERSION: 3.12.3
yt:
image: yt
build:
context: ./yt

14
dockers/pyenv/Dockerfile Normal file
View file

@ -0,0 +1,14 @@
FROM osbm/pyenv:latest
ARG PYTHON_VERSION
RUN pyenv install $PYTHON_VERSION
RUN pyenv global $PYTHON_VERSION
RUN pyenv rehash
RUN pip install --upgrade pip
# Optional : Checks Pyenv version on container start-up
# ENTRYPOINT [ "pyenv","version" ]
RUN eval "$(pyenv init -)"
ENTRYPOINT /bin/bash

14
dockers/yt/Dockerfile Normal file
View file

@ -0,0 +1,14 @@
FROM ubuntu:22.04
RUN apt-get update
RUN apt-get install -y software-properties-common
RUN add-apt-repository ppa:tomtomtom/yt-dlp
RUN apt-get install -y yt-dlp
WORKDIR /downloads
ENTRYPOINT ["yt-dlp"]
# docker run -v $(pwd):/downloads yt "https://www.youtube.com/watch?v=wjZofJX0v4M"

76
justfile Normal file
View file

@ -0,0 +1,76 @@
default:
just -l
link_file path:
mkdir -p {{home_directory()}}/{{parent_directory(path)}}
rm -rf {{home_directory()}}/{{path}}
ln -sf {{absolute_path(prepend("src/",path))}} {{home_directory()}}/{{path}}
link-alacritty: (link_file ".config/alacritty/alacritty.toml")
echo "Alacritty configuration linked"
link-code: (link_file ".config/Code/User/settings.json")
# link_file .config/Code/User/keybindings.json
echo "VSCode configuration linked"
link-fcitx5: (link_file ".config/fcitx5")
echo "Fcitx5 configuration linked"
link-flameshot: (link_file ".config/flameshot/flameshot.ini")
echo "Flameshot configuration linked"
link-kitty: (link_file ".config/kitty/kitty.conf")
echo "Kitty configuration linked"
link-mpv: (link_file ".config/mpv/mpv.conf")
echo "mpv configuration linked"
link-neovim: (link_file ".config/nvim")
echo "Neovim configuration linked"
link-tlrc: (link_file ".config/tlrc/config.toml")
echo "tlrc configuration linked"
link-tmux: (link_file ".config/tmux/tmux.conf")
echo "Tmux configuration linked"
link-fish: (link_file ".config/fish")
echo "Fish configuration linked"
link-git: (link_file ".gitconfig") (link_file ".gitignore")
echo "Git configuration linked"
link-starship: (link_file ".config/starship.toml")
echo "Starship configuration linked"
link-zsh: (link_file ".zshrc") (link_file ".zprofile")
echo "Zsh configuration linked"
link-bash: (link_file ".bashrc") (link_file ".bash_profile")
echo "Bash configuration linked"
link-terminal-programs: link-alacritty link-kitty link-tmux link-fish link-zsh link-bash link-tlrc link-git link-starship
echo "Terminal programs configuration linked"
link-all: link-terminal-programs link-code link-fcitx5 link-flameshot link-mpv
echo "All configuration linked"
clone:
echo "Please be informed that these repositories are private github repositories of osbm."
git clone https://github.com/osbm/rerouting.git ~/Documents/rerouting
git clone https://github.com/osbm/wallpapers.git ~/Pictures/wallpapers
create-default-folders:
mkdir -p ~/Pictures/screenshots
mkdir -p ~/Documents/bin
mkdir -p ~/Documents/git
mkdir -p ~/Documents/temp
mkdir -p ~/Videos/obs-recordings
mkdir -p ~/Videos/youtube
install-tpm:
git clone https://github.com/tmux-plugins/tpm ~/.config/tmux/plugins/tpm
echo "Dont forget to install tmux plugins by 'C-s I'"

View file

@ -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"

58
scripts/better-git-branch.sh Executable file
View file

@ -0,0 +1,58 @@
#!/bin/bash
# Colors
RED='\033[0;31m'
GREEN='\033[0;32m'
NO_COLOR='\033[0m'
BLUE='\033[0;34m'
YELLOW='\033[0;33m'
NO_COLOR='\033[0m'
width1=5
width2=6
width3=30
width4=20
width5=40
# Function to count commits
count_commits() {
local branch="$1"
local base_branch="$2"
local ahead_behind
ahead_behind=$(git rev-list --left-right --count "$base_branch"..."$branch")
echo "$ahead_behind"
}
# Main script
main_branch=$(git rev-parse HEAD)
printf "${GREEN}%-${width1}s ${RED}%-${width2}s ${BLUE}%-${width3}s ${YELLOW}%-${width4}s ${NO_COLOR}%-${width5}s\n" "Ahead" "Behind" "Branch" "Last Commit" " "
# Separator line for clarity
printf "${GREEN}%-${width1}s ${RED}%-${width2}s ${BLUE}%-${width3}s ${YELLOW}%-${width4}s ${NO_COLOR}%-${width5}s\n" "-----" "------" "------------------------------" "-------------------" " "
format_string="%(objectname:short)@%(refname:short)@%(committerdate:relative)"
IFS=$'\n'
for branchdata in $(git for-each-ref --sort=-authordate --format="$format_string" refs/heads/ --no-merged); do
sha=$(echo "$branchdata" | cut -d '@' -f1)
branch=$(echo "$branchdata" | cut -d '@' -f2)
time=$(echo "$branchdata" | cut -d '@' -f3)
if [ "$branch" != "$main_branch" ]; then
# Get branch description
description=$(git config branch."$branch".description)
# Count commits ahead and behind
ahead_behind=$(count_commits "$sha" "$main_branch")
ahead=$(echo "$ahead_behind" | cut -f2)
behind=$(echo "$ahead_behind" | cut -f1)
# Display branch info
printf "${GREEN}%-${width1}s ${RED}%-${width2}s ${BLUE}%-${width3}s ${YELLOW}%-${width4}s ${NO_COLOR}%-${width5}s\n" $ahead $behind $branch "$time" "$description"
fi
done

View file

@ -1,3 +0,0 @@
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init --path)"

1
src/.bashrc Normal file
View file

@ -0,0 +1 @@
eval "$(starship init bash)"

View file

@ -0,0 +1,18 @@
{
"window.dialogStyle": "custom",
"window.titleBarStyle": "custom",
"git.autofetch": true,
"git.confirmSync": false,
"git.suggestSmartCommit": false,
"explorer.confirmDragAndDrop": false,
"github.copilot.editor.enableAutoCompletions": true,
"extensions.ignoreRecommendations": true,
"terminal.integrated.defaultProfile.linux": "fish",
"workbench.iconTheme": "vscode-icons",
"files.trimTrailingWhitespace": true,
"terminal.integrated.gpuAcceleration": "off",
"update.mode": "none",
"workbench.startupEditor": "none",
"vsicons.dontShowNewVersionMessage": true,
"workbench.colorTheme": "Catppuccin Mocha"
}

View file

@ -0,0 +1,11 @@
[font]
size = 12.0
[terminal.shell]
args = ["new-session", "-A", "-s", "general"]
program = "/run/current-system/sw/bin/tmux"
[window]
decorations = "None"
opacity = 1
startup_mode = "Maximized"

1
src/.config/fcitx5/conf/.gitignore vendored Normal file
View file

@ -0,0 +1 @@
cached_layouts

View file

@ -0,0 +1,11 @@
# Initial Mode
InitialMode=Hiragana
# Vertical candidate list
Vertical=True
# Expand Usage (Requires vertical candidate list)
ExpandMode="On Focus"
# Fix embedded preedit cursor at the beginning of the preedit
PreeditCursorPositionAtBeginning=False
# Hotkey to expand usage
ExpandKey=Control+Alt+H

View file

@ -0,0 +1,3 @@
[HiddenNotifications]
0=wayland-diagnose-kde

View file

@ -0,0 +1,29 @@
[Groups/0]
# Group Name
Name=Default
# Layout
Default Layout=us
# Default Input Method
DefaultIM=keyboard-tr
[Groups/0/Items/0]
# Name
Name=keyboard-us
# Layout
Layout=
[Groups/0/Items/1]
# Name
Name=keyboard-tr
# Layout
Layout=
[Groups/0/Items/2]
# Name
Name=mozc
# Layout
Layout=
[GroupOrder]
0=Default

View file

@ -0,0 +1,61 @@
if status is-interactive
# Commands to run in interactive sessions can go here
set -gx PATH /opt/cuda/bin $PATH
set -gx LD_LIBRARY_PATH /opt/cuda/lib64 $LD_LIBRARY_PATH
set -g fish_greeting
set -gx EDITOR "nvim"
# nnn configuration
# H - show hidden files
# d - detail view
set -x NNN_OPTS Hd
alias du='du -h'
alias df='df -h'
alias free='free -h'
alias l="ls -lah"
alias ve="python -m venv .venv"
alias va="source .venv/bin/activate.fish"
alias pipr="pip install -r requirements.txt"
alias pipu="pip install --upgrade pip"
alias py="ipython"
alias music-download="docker run --rm -v /home/osbm/Music:/downloads yt -x --audio-format mp3"
alias yt="docker run --rm -v /home/osbm/Videos/youtube:/downloads yt"
alias c="code ."
# if $TERM is dumb set it to xterm-256color
if test "$TERM" = "dumb"
set -x TERM xterm-256color
end
# if type -q pyenv
# pyenv init - | source
# else
# echo "pyenv not found"
# end
if type -q zoxide
zoxide init fish | source
else
echo "zoxide not found"
end
if type -q starship
starship init fish | source
else
echo "starship not found"
end
end
# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
# if test -f /home/osbm/.pyenv/versions/anaconda3-2023.03/bin/conda
# eval /home/osbm/.pyenv/versions/anaconda3-2023.03/bin/conda "shell.fish" "hook" $argv | source
# end
# <<< conda initialize <<<

View file

@ -0,0 +1,38 @@
# This file contains fish universal variable definitions.
# VERSION: 3.0
SETUVAR --export PYENV_ROOT:/home/osbm/\x2epyenv
SETUVAR __fish_initialized:3400
SETUVAR fish_color_autosuggestion:brblack
SETUVAR fish_color_cancel:\x2dr
SETUVAR fish_color_command:blue
SETUVAR fish_color_comment:red
SETUVAR fish_color_cwd:green
SETUVAR fish_color_cwd_root:red
SETUVAR fish_color_end:green
SETUVAR fish_color_error:brred
SETUVAR fish_color_escape:brcyan
SETUVAR fish_color_history_current:\x2d\x2dbold
SETUVAR fish_color_host:normal
SETUVAR fish_color_host_remote:yellow
SETUVAR fish_color_normal:normal
SETUVAR fish_color_operator:brcyan
SETUVAR fish_color_param:cyan
SETUVAR fish_color_quote:yellow
SETUVAR fish_color_redirection:cyan\x1e\x2d\x2dbold
SETUVAR fish_color_search_match:bryellow\x1e\x2d\x2dbackground\x3dbrblack
SETUVAR _fish_abbr_za:zoxide\x20add
SETUVAR _fish_abbr_zq:zoxide\x20query
SETUVAR _fish_abbr_zqi:zoxide\x20query\x20\x2di
SETUVAR _fish_abbr_zr:zoxide\x20removeSETUVAR fish_color_selection:white\x1e\x2d\x2dbold\x1e\x2d\x2dbackground\x3dbrblack
SETUVAR fish_color_status:red
SETUVAR fish_color_user:brgreen
SETUVAR fish_color_valid_path:\x2d\x2dunderline
SETUVAR fish_key_bindings:fish_default_key_bindings
SETUVAR fish_pager_color_completion:normal
SETUVAR fish_pager_color_description:yellow\x1e\x2di
SETUVAR fish_pager_color_prefix:normal\x1e\x2d\x2dbold\x1e\x2d\x2dunderline
SETUVAR fish_pager_color_progress:brwhite\x1e\x2d\x2dbackground\x3dcyan
SETUVAR fish_pager_color_selected_background:\x2dr
SETUVAR fish_user_paths:/home/osbm/\x2ecargo/bin

View file

@ -0,0 +1,5 @@
function gitu
git add --all
git commit -m "$argv"
git push
end

View file

@ -0,0 +1,5 @@
[General]
contrastOpacity=188
savePath=/home/osbm/Pictures/screenshots
showHelp=false
showStartupLaunchMessage=false

View file

@ -0,0 +1,6 @@
hide_window_decorations yes
# BEGIN_KITTY_THEME
# Dracula
include current-theme.conf
# END_KITTY_THEME

2
src/.config/mpv/mpv.conf Normal file
View file

@ -0,0 +1,2 @@
keep-open

32
src/.config/nvim/init.lua Normal file
View file

@ -0,0 +1,32 @@
vim.opt.number = true
vim.opt.relativenumber = true
vim.schedule(function()
vim.opt.clipboard = 'unnamedplus'
end)
-- Sets how neovim will display certain whitespace characters in the editor.
-- See `:help 'list'`
-- and `:help 'listchars'`
vim.opt.list = true
vim.opt.listchars = { tab = '» ', trail = '·', nbsp = '' }
vim.g.python_host_prog = "~/Documents/bin/neovim-venv/bin/python"
vim.g.python3_host_prog = "~/Documents/bin/neovim-venv/bin/python"
require("config.lazy")
require("mason").setup()
require("mason-lspconfig").setup()
local lspconfig = require('lspconfig')
lspconfig.pyright.setup {
}
require("nvim-tree").setup()
if vim.fn.argc(-1) == 0 then
vim.cmd("NvimTreeOpen")
end

View file

@ -0,0 +1,9 @@
{
"lazy.nvim": { "branch": "main", "commit": "b97ee167f594c69656f985f919a00435a7bc7045" },
"mason-lspconfig.nvim": { "branch": "main", "commit": "8e46de9241d3997927af12196bd8faa0ed08c29a" },
"mason.nvim": { "branch": "main", "commit": "e2f7f9044ec30067bc11800a9e266664b88cda22" },
"nvim-lspconfig": { "branch": "master", "commit": "5a812abc65d529ea7673059a348814c21d7f87ff" },
"nvim-tree.lua": { "branch": "master", "commit": "db8d7ac1f524fc6f808764b29fa695c51e014aa6" },
"nvim-treesitter": { "branch": "master", "commit": "337b503688eccb3046547661e4c738e674548fcf" },
"nvim-web-devicons": { "branch": "master", "commit": "87c34abe5d1dc7c1c0a95aaaf888059c614c68ac" }
}

View file

@ -0,0 +1,59 @@
-- Bootstrap lazy.nvim
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not (vim.uv or vim.loop).fs_stat(lazypath) then
local lazyrepo = "https://github.com/folke/lazy.nvim.git"
local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath })
if vim.v.shell_error ~= 0 then
vim.api.nvim_echo({
{ "Failed to clone lazy.nvim:\n", "ErrorMsg" },
{ out, "WarningMsg" },
{ "\nPress any key to exit..." },
}, true, {})
vim.fn.getchar()
os.exit(1)
end
end
vim.opt.rtp:prepend(lazypath)
-- Make sure to setup `mapleader` and `maplocalleader` before
-- loading lazy.nvim so that mappings are correct.
-- This is also a good place to setup other settings (vim.opt)
vim.g.mapleader = " "
vim.g.maplocalleader = "\\"
-- Setup lazy.nvim
require("lazy").setup({
spec = {
-- import your plugins
-- { import = "plugins" },
{
"williamboman/mason.nvim",
"williamboman/mason-lspconfig.nvim",
"neovim/nvim-lspconfig",
"nvim-tree/nvim-tree.lua",
"nvim-tree/nvim-web-devicons"
},
{"nvim-treesitter/nvim-treesitter", build = ":TSUpdate"},
-- {
-- "folke/noice.nvim",
-- event = "VeryLazy",
-- opts = {
-- -- add any options here
-- },
-- dependencies = {
-- -- if you lazy-load any plugin below, make sure to add proper `module="..."` entries
-- "MunifTanjim/nui.nvim",
-- -- OPTIONAL:
-- -- `nvim-notify` is only needed, if you want to use the notification view.
-- -- If not available, we use `mini` as the fallback
-- "rcarriga/nvim-notify",
-- }
-- }
},
-- Configure any other settings here. See the documentation for more details.
-- colorscheme that will be used when installing plugins.
install = { colorscheme = { "habamax" } },
-- automatically check for plugin updates
checker = { enabled = false },
})

View file

@ -0,0 +1,4 @@
add_newline = false

View file

@ -0,0 +1,83 @@
[cache]
dir = "/home/osbm/.cache/tlrc"
mirror = "https://github.com/tldr-pages/tldr/releases/latest/download"
auto_update = true
max_age = 336
languages = ["en", "tr", "ja"]
[output]
show_title = false
platform_title = false
show_hyphens = false
example_prefix = "- "
compact = true
raw_markdown = false
[indent]
title = 2
description = 2
bullet = 2
example = 4
[style.title]
color = "magenta"
background = "default"
bold = true
underline = false
italic = false
dim = false
strikethrough = false
[style.description]
color = "magenta"
background = "default"
bold = false
underline = false
italic = false
dim = false
strikethrough = false
[style.bullet]
color = "green"
background = "default"
bold = false
underline = false
italic = false
dim = false
strikethrough = false
[style.example]
color = "cyan"
background = "default"
bold = false
underline = false
italic = false
dim = false
strikethrough = false
[style.url]
color = "red"
background = "default"
bold = false
underline = false
italic = true
dim = false
strikethrough = false
[style.inline_code]
color = "yellow"
background = "default"
bold = false
underline = false
italic = true
dim = false
strikethrough = false
[style.placeholder]
color = "red"
background = "default"
bold = false
underline = false
italic = true
dim = false
strikethrough = false

View file

@ -0,0 +1,48 @@
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'dracula/tmux'
if-shell '[ -x /run/current-system/sw/bin/fish ]' \
'set-option -g default-shell /run/current-system/sw/bin/fish' \
'set-option -g default-shell /usr/bin/fish'
# set-option -g default-shell /run/current-system/sw/bin/fish
set -g prefix C-s
set -g @dracula-plugins "cpu-usage ram-usage gpu-usage battery time"
set -g @dracula-show-left-icon hostname
set -g @dracula-git-show-current-symbol ✓
set -g @dracula-git-no-repo-message "no-git"
set -g @dracula-show-timezone false
set -g @dracula-ignore-lspci true
# Start windows and panes at 1, not 0
set -g base-index 1
setw -g pane-base-index 1
set -g mouse on
# Automatically renumber windows
set -g renumber-windows on
# Set new panes to open in current directory
bind c new-window -c "#{pane_current_path}"
bind '"' split-window -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
# from yazi documentation
# https://yazi-rs.github.io/docs/image-preview/
set -g allow-passthrough on
set -ga update-environment TERM
set -ga update-environment TERM_PROGRAM
# set-option -a terminal-features 'XXX:RGB'
# set-option -a terminal-features 'xterm-kitty:RGB'
set-option -a terminal-features 'alacritty:RGB'
# this must be at the bottom for some reason
run '~/.config/tmux/plugins/tpm/tpm'

32
src/.gitconfig Normal file
View file

@ -0,0 +1,32 @@
[user]
name = osbm
email = osmanfbayram@gmail.com
[credential]
helper = store
[core]
pager = cat
editor = nano
excludesFile = ~/.gitignore
[push]
autoSetupRemote = true
[init]
defaultBranch = main
[filter "lfs"]
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
clean = git-lfs clean -- %f
[alias]
bb = "!/home/osbm/Documents/dotfiles/scripts/better-git-branch.sh"
[column]
ui = auto
[branch]
sort = -committerdate
[maintenance]
repo = /home/osbm/Pictures/wallpapers
repo = /home/osbm/Documents/rerouting
repo = /home/osbm/Documents/dotfiles
[http]
postBuffer = 1048576000
[https]
postBuffer = 1048576000

2
src/.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
.DS_Store
result

5
src/.zprofile Normal file
View file

@ -0,0 +1,5 @@
# export PYENV_ROOT="$HOME/.pyenv"
# command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"
# eval "$(pyenv init -)"
# export PATH=~/.npm-global/bin:$PATH

79
src/.zshrc Normal file
View file

@ -0,0 +1,79 @@
# --------------- 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 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 py="ipython"
alias ve="python -m venv .venv"
alias va="source ./.venv/bin/activate"
alias pipu="pip install --upgrade pip"
alias pipr="pip install -r requirements.txt"
# human readable sizes
alias free="free -h"
alias df="df -h"
alias du="du -h"
alias ..="cd .."
alias ...="cd ../.."
alias ....="cd ../../.."
alias docker-stop="docker stop $(docker ps -a -q)"
alias docker-rm="docker rm $(docker ps -aq)"
alias docker-rmi="docker rmi $(docker images -q)"
# 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
}
# source ~/Documents/dotfiles/src/.config/z.sh
# export CUDA_HOME=/opt/cuda-11.7
# export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/cuda-11.7/lib64
# export PATH=$PATH:$CUDA_HOME/bin
# pyenv for java
# export PATH="$HOME/.jenv/bin:$PATH"
# eval "$(jenv init -)"
# pyenv for node
# export NVM_DIR="$HOME/.nvm"
# [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
# [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
# go
# export GOPATH="$HOME/.go"
# export PATH="$PATH:$GOPATH/bin"