From cc60129e48ec9809ef898b2e080179a53e5d4c6b Mon Sep 17 00:00:00 2001 From: Keyitdev <70140437+Keyitdev@users.noreply.github.com> Date: Fri, 1 Aug 2025 12:03:56 +0200 Subject: [PATCH] Update: Added mpd and ncmpcpp configs, replaced oh-my-zsh with just .zshrc. --- home/.config/i3/config | 16 +++-- home/.config/mpd/mpd.conf | 18 +++++ home/.config/ncmpcpp/config | 67 +++++++++++++++++++ home/.config/polybar/config.ini | 2 +- home/.xinitrc | 1 + home/.zshrc | 42 ++++++++++++ .../custom/themes/keyitdev.zsh-theme | 19 ------ 7 files changed, 140 insertions(+), 25 deletions(-) create mode 100644 home/.config/mpd/mpd.conf create mode 100644 home/.config/ncmpcpp/config create mode 100644 home/.xinitrc create mode 100755 home/.zshrc delete mode 100644 usr/share/oh-my-zsh/custom/themes/keyitdev.zsh-theme diff --git a/home/.config/i3/config b/home/.config/i3/config index f2cb7b3..73e7dba 100644 --- a/home/.config/i3/config +++ b/home/.config/i3/config @@ -13,6 +13,7 @@ exec --no-startup-id xrandr --dpi 96 exec_always --no-startup-id feh --no-fehbg --bg-fill $HOME/Pictures/wallpapers/rick.png exec_always --no-startup-id $HOME/.config/polybar/launch.sh +exec_always --no-startup-id mpd & exec_always --no-startup-id picom & exec_always --no-startup-id dunst & exec_always --no-startup-id /usr/lib/mate-polkit/polkit-mate-authentication-agent-1 & @@ -39,17 +40,22 @@ bindsym $mod+Return exec i3-sensible-terminal # kill focused window bindsym $mod+Shift+q kill +bindsym $mod+q exec --no-startup-id firefox-developer-edition +bindsym $mod+w exec --no-startup-id code +bindsym $mod+e exec --no-startup-id nemo + bindsym $mod+a exec --no-startup-id rofi -show drun -no-default-config -config ~/.config/rofi/dmenu.rasi -bindsym $mod+s exec --no-startup-id code +bindsym $mod+s exec --no-startup-id nemo ~/Pictures/screenshots/ bindsym $mod+d exec --no-startup-id rofi -show drun -no-default-config -config ~/.config/rofi/main.rasi -bindsym $mod+w exec --no-startup-id nemo ~/Pictures/screenshots/ -bindsym $mod+e exec --no-startup-id nemo -bindsym $mod+q exec --no-startup-id firefox-developer-edition - +bindsym $mod+z exec --no-startup-id alacritty -e ncmpcpp bindsym $mod+x exec --no-startup-id rofi-powermenu bindsym $mod+c exec --no-startup-id rofi-screenshot +bindsym ctrl + F1 exec --no-startup-id i3-sensible-terminal +bindsym ctrl + F2 exec --no-startup-id kitty +bindsym ctrl + F3 exec --no-startup-id dmenu_run + # bindsym $mod+d exec --no-startup-id dmenu_run # change focus diff --git a/home/.config/mpd/mpd.conf b/home/.config/mpd/mpd.conf new file mode 100644 index 0000000..daeef05 --- /dev/null +++ b/home/.config/mpd/mpd.conf @@ -0,0 +1,18 @@ +# Documentation: https://mpd.readthedocs.io/en/stable/user.html +# Config created by Keyitdev https://www.github.com/keyitdev/dotfiles +# Copyright (C) 2022 Keyitdev + +music_directory "~/Music" + +db_file "~/.config/mpd/database" +playlist_directory "~/.config/mpd/playlists" + +auto_update "yes" +bind_to_address "127.0.0.1" +restore_paused "yes" +max_output_buffer_size "16384" + +audio_output { + type "pulse" + name "pulse" +} \ No newline at end of file diff --git a/home/.config/ncmpcpp/config b/home/.config/ncmpcpp/config new file mode 100644 index 0000000..25f0d42 --- /dev/null +++ b/home/.config/ncmpcpp/config @@ -0,0 +1,67 @@ +; Documentation: https://wiki.archlinux.org/title/ncmpcpp +; Config created by Aditya Shakya https://github.com/Alexander-Miller +; Config modified by Keyitdev https://www.github.com/keyitdev/dotfiles +; Copyright (C) 2022 Keyitdev, Aditya Shakya + +### Directories ### +ncmpcpp_directory = ~/.config/ncmpcpp +lyrics_directory = ~/.config/ncmpcpp/lyrics +mpd_music_dir = ~/Music +mpd_host = "localhost" +mpd_port = "6600" +mpd_crossfade_time = "2" + +### Behaviour ### +message_delay_time = 1 +autocenter_mode = "yes" +centered_cursor = "yes" +ignore_leading_the = "yes" +playlist_disable_highlight_delay = 2 +allow_for_physical_item_deletion = "no" + +### Visualizer ### +visualizer_data_source = /tmp/mpd.fifo +visualizer_output_name = "mpd_visualizer" +visualizer_in_stereo = "yes" +visualizer_look = ●● +visualizer_type = "ellipse" + +### Appearance ### +playlist_display_mode = "columns" +browser_display_mode = "columns" +colors_enabled = "yes" + +#user_interface = classic +user_interface = alternative +volume_color = "white" + +### Window ### +song_window_title_format = "{%a - }{%t}|{%f}" +statusbar_visibility = "no" +header_visibility = "no" +titles_visibility = "no" + +### Progress bar ### +progressbar_look = "▂▂▂" +progressbar_color = "black" +progressbar_elapsed_color = "red" + +### Alternative UI ### +alternative_ui_separator_color = "black" +alternative_header_first_line_format = $b$5$/b $b$8{%t}|{%f}$/b $/b +alternative_header_second_line_format = {$b{$2 %a$9}{ - $7 %b$9}} + +### Song list ### +song_status_format = "$7%t" +song_list_format = "$(blue){%a}$(end) $(red){%t}$(end)$(red)({%l})$(end) +song_library_format = {{%a - %t} (%b)}|{%f} +song_columns_list_format = "(49)[white]{tr}$C(5f)[red]{l}(50)[blue]{a}" + +### Colors ### +main_window_color = "white" +current_item_prefix = >> +current_item_suffix = $(end) +current_item_inactive_column_prefix = red +current_item_inactive_column_suffix = red +color1 = "white" +color2 = "red" \ No newline at end of file diff --git a/home/.config/polybar/config.ini b/home/.config/polybar/config.ini index 3cb9984..0d5cb85 100644 --- a/home/.config/polybar/config.ini +++ b/home/.config/polybar/config.ini @@ -638,7 +638,7 @@ format-background = ${color.background} format-foreground = ${color.yellow} -click-left = rofi -show drun +click-left = rofi -show drun -no-default-config -config ~/.config/rofi/dmenu.rasi ; create a new workspace (with the smallest possible number) click-middle = i3-msg workspace $(comm -23 <(seq 1 100) <(i3-msg -t get_workspaces | jq '.[].num' | sort -n) | head -n 1) click-right = rofi-powermenu diff --git a/home/.xinitrc b/home/.xinitrc new file mode 100644 index 0000000..705250c --- /dev/null +++ b/home/.xinitrc @@ -0,0 +1 @@ +exec i3 \ No newline at end of file diff --git a/home/.zshrc b/home/.zshrc new file mode 100755 index 0000000..9591ecb --- /dev/null +++ b/home/.zshrc @@ -0,0 +1,42 @@ +autoload -U colors && colors + +git_info() { + if git rev-parse --is-inside-work-tree &>/dev/null; then + local branch=$(git rev-parse --abbrev-ref HEAD 2>/dev/null) + if ! git diff --quiet 2>/dev/null || ! git diff --cached --quiet 2>/dev/null; then + echo " %F{green}‹${branch}%f %F{red}|!|%f%F{green}›%f" + else + echo " %F{green}‹${branch}›%f" + fi + fi +} + +setopt PROMPT_SUBST + +PROMPT='%F{blue}%B%~%b%f$(git_info) [%*] +%B%(!.#.$)%b ' + +autoload -Uz compinit +compinit + +export LS_COLORS="di=1;34" +alias ls='ls --color=auto' +zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS} +zstyle ':completion:*' menu select=1 + +HISTFILE=~/.zsh_history +HISTSIZE=1000000 +SAVEHIST=1000000 + +setopt INC_APPEND_HISTORY +setopt SHARE_HISTORY +setopt HIST_IGNORE_DUPS + +autoload -U up-line-or-beginning-search +autoload -U down-line-or-beginning-search + +zle -N up-line-or-beginning-search +zle -N down-line-or-beginning-search + +bindkey '^[[A' up-line-or-beginning-search +bindkey '^[[B' down-line-or-beginning-search diff --git a/usr/share/oh-my-zsh/custom/themes/keyitdev.zsh-theme b/usr/share/oh-my-zsh/custom/themes/keyitdev.zsh-theme deleted file mode 100644 index 5873024..0000000 --- a/usr/share/oh-my-zsh/custom/themes/keyitdev.zsh-theme +++ /dev/null @@ -1,19 +0,0 @@ -# Config created by Keyitdev https://www.github.com/keyitdev/dotfiles -# Copyright (C) 2022 Keyitdev - -local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})" -local user_symbol='%(!.#.$)' -local current_dir="%B%{$fg[blue]%}%~ %{$reset_color%}" -local date="[%D{%H:%M:%S}]" -local vcs_branch='$(git_prompt_info)$(hg_prompt_info)' - -ZSH_THEME_RVM_PROMPT_OPTIONS="i v g" - -PROMPT="${current_dir}${rvm_ruby}${vcs_branch}${date}${venv_prompt} -%B${user_symbol}%b " -RPROMPT="%B${return_code}%b" - -ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[green]%}‹" -ZSH_THEME_GIT_PROMPT_SUFFIX="› %{$reset_color%}" -ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[red]%} |!|%{$fg[green]%}" -ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[green]%}" \ No newline at end of file