diff options
Diffstat (limited to '.config')
-rw-r--r-- | .config/Thunar/accels.scm | 3 | ||||
-rw-r--r-- | .config/X11/Xresources | 5 | ||||
-rw-r--r-- | .config/X11/xprofile | 3 | ||||
-rw-r--r-- | .config/gotop/user.json | 22 | ||||
-rw-r--r-- | .config/gtk-3.0/settings.ini | 9 | ||||
-rw-r--r-- | .config/htop/htoprc | 2 | ||||
-rw-r--r-- | .config/i3/config | 3 | ||||
-rw-r--r-- | .config/ipython/profile_default/history-corrupt-2024-12-09T13.25.20.800268.sqlite | bin | 0 -> 147456 bytes | |||
-rw-r--r-- | .config/ipython/profile_default/history-corrupt-2024-12-09T13.44.23.964600.sqlite | bin | 0 -> 28672 bytes | |||
-rw-r--r-- | .config/ipython/profile_default/history.sqlite | bin | 118784 -> 40960 bytes | |||
-rw-r--r-- | .config/keepassxc/keepassxc.ini | 1 | ||||
-rw-r--r-- | .config/lf/lfrc | 11 | ||||
-rw-r--r-- | .config/nvim/templates/_default.tex | 7 | ||||
-rw-r--r-- | .config/nvim/templates/article.tex | 11 | ||||
-rw-r--r-- | .config/shell/aliasrc | 5 | ||||
-rw-r--r-- | .config/shell/bm-dirs | 8 | ||||
-rw-r--r-- | .config/shell/profile | 2 | ||||
-rw-r--r-- | .config/zathura/zathurarc | 2 | ||||
-rw-r--r-- | .config/zsh/.zshrc | 17 |
19 files changed, 72 insertions, 39 deletions
diff --git a/.config/Thunar/accels.scm b/.config/Thunar/accels.scm index 638a9f3..fb9c2c7 100644 --- a/.config/Thunar/accels.scm +++ b/.config/Thunar/accels.scm @@ -1,4 +1,4 @@ -; thunar GtkAccelMap rc-file -*- scheme -*- +; Thunar GtkAccelMap rc-file -*- scheme -*- ; this file is an automated accelerator map dump ; ; (gtk_accel_path "<Actions>/ThunarActionManager/restore" "") @@ -51,7 +51,6 @@ ; (gtk_accel_path "<Actions>/ThunarWindow/cancel-search" "Escape") ; (gtk_accel_path "<Actions>/ThunarStandardView/select-by-pattern" "<Primary>s") ; (gtk_accel_path "<Actions>/ThunarStandardView/rename" "F2") -; (gtk_accel_path "<Actions>/ThunarStandardView/configure-columns" "") ; (gtk_accel_path "<Actions>/ThunarStandardView/create-document" "") ; (gtk_accel_path "<Actions>/ThunarShortcutsPane/sendto-shortcuts" "<Primary>d") ; (gtk_accel_path "<Actions>/ThunarActionManager/move-to-trash" "") diff --git a/.config/X11/Xresources b/.config/X11/Xresources index 294f1fb..fcc61aa 100644 --- a/.config/X11/Xresources +++ b/.config/X11/Xresources @@ -1,3 +1,6 @@ +Xcursor.size: 40 +Xcursor.theme: Banana + !! Transparency (0-1): st.alpha: 0.95 st.alphaOffset: 0.1 @@ -7,7 +10,7 @@ st.font: MesloLGS Nerd\ Font:size=17 ! st.termname: st-256color ! st.borderpx: 2 -st.background: #1d1f21 +/* st.background: #1d1f21 */ /* name dark light */ /* black 0 8 */ diff --git a/.config/X11/xprofile b/.config/X11/xprofile index 29250ae..3e71b20 100644 --- a/.config/X11/xprofile +++ b/.config/X11/xprofile @@ -6,9 +6,8 @@ echo "Sourced: $(date)" >> ~/.local/state/xprofile.logs xrdb "${XDG_CONFIG_HOME:-$HOME/.config}/X11/Xresources" & xrdbpid=$! numlockx on & -setdp & -autostart="copyq dunst pipewire syncthing remapd" +autostart="copyq dunst pipewire syncthing remapd gammastep setdp prime-offload" for program in $autostart; do pidof -sx "$program" || "$program" & diff --git a/.config/gotop/user.json b/.config/gotop/user.json new file mode 100644 index 0000000..fcc44ec --- /dev/null +++ b/.config/gotop/user.json @@ -0,0 +1,22 @@ +{ + "Fg": 7, + "Bg": -1, + + "BorderLabel": 7, + "BorderLine": 6, + + "CPULines": [4, 3, 2, 1, 5, 6, 7, 8], + + "BattLines": [4, 3, 2, 1, 5, 6, 7, 8], + + "MemLines": [5, 11, 4, 3, 2, 1, 6, 7, 8], + + "ProcCursor": 4, + + "Sparklines": [4, 5], + + "DiskBar": 7, + + "TempLow": 2, + "TempHigh": 1 +} diff --git a/.config/gtk-3.0/settings.ini b/.config/gtk-3.0/settings.ini index 1dea2a0..ce89467 100644 --- a/.config/gtk-3.0/settings.ini +++ b/.config/gtk-3.0/settings.ini @@ -4,12 +4,12 @@ gtk-icon-theme-name=Gruvbox-Plus-Dark gtk-sound-theme-name=Smooth gtk-application-prefer-dark-theme=true # GTK3 ignores bold or italic attributes. -gtk-font-name=Fira Sans 14 +gtk-font-name=Fira Sans 16 gtk-menu-images=1 gtk-button-images=1 -gtk-toolbar-style=GTK_TOOLBAR_ICONS -gtk-cursor-theme-name=Qogir-dark -gtk-cursor-theme-size=24 +gtk-toolbar-style=GTK_TOOLBAR_BOTH +gtk-cursor-theme-name=Banana +gtk-cursor-theme-size=40 gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR gtk-enable-event-sounds=1 gtk-enable-input-feedback-sounds=1 @@ -17,4 +17,3 @@ gtk-xft-antialias=1 gtk-xft-hinting=1 gtk-xft-hintstyle=hintmedium gtk-xft-rgba=none -gtk-modules=canberra-gtk-module:gail:atk-bridge diff --git a/.config/htop/htoprc b/.config/htop/htoprc index 4a3ad55..1679191 100644 --- a/.config/htop/htoprc +++ b/.config/htop/htoprc @@ -8,7 +8,7 @@ hide_userland_threads=0 hide_running_in_container=0 shadow_other_users=0 show_thread_names=0 -show_program_path=1 +show_program_path=0 highlight_base_name=0 highlight_deleted_exe=1 shadow_distribution_path_prefix=0 diff --git a/.config/i3/config b/.config/i3/config index 47a3b3e..f6739da 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -70,6 +70,7 @@ bindsym $super+x exec --no-startup-id toggle-xeyes bindsym $super+i exec --no-startup-id sh -c 'xdotool type "$(grep -v "^#\|^\s*$" ~/Documents/Notes/bookmarks.txt | tac | dmenu -i -l 50 | cut -d\ -f1)"' bindsym $super+Shift+z exec --no-startup-id dmenu-zeal bindsym $super+Shift+b exec --no-startup-id librewolf-open "$(xprint)" +bindsym $super+Shift+v exec --no-startup-id st -c "dropdown_clipboard" -e sh -c 'xclip -sel clip -o >/tmp/clipboard && nvim /tmp/clipboard && xclip -sel clip -i /tmp/clipboard || read -r ans' bindsym $super+period exec --no-startup-id sh -c 'xdotool click --clearmodifiers 1 && xdotool keyup super' bindsym $super+slash exec --no-startup-id sh -c 'xdotool click --clearmodifiers 3 && xdotool keyup super' bindsym $super+comma exec --no-startup-id scrcpy-k @@ -474,9 +475,9 @@ for_window [class="dropdown_*|tridactyl_*"] floating enable for_window [class="dropdown_*|tridactyl_*"] move scratchpad for_window [class="dropdown_*|tridactyl_*"] sticky enable for_window [class="dropdown_*|tridactyl_*"] scratchpad show +for_window [class="dropdown_tmuxdd"] resize set 1600 900 for_window [class="dropdown_*"] move position center for_window [class="dropdown_tmuxdd"] scratchpad hide -# for_window [class="dropdown_tmuxdd"] resize set 625 450 # for_window [class="dropdown_dropdowncalc"] resize set 800 300 # for_window [class="dropdown_tmuxdd"] border pixel 3 # for_window [class="dropdown_dropdowncalc"] border pixel 2 diff --git a/.config/ipython/profile_default/history-corrupt-2024-12-09T13.25.20.800268.sqlite b/.config/ipython/profile_default/history-corrupt-2024-12-09T13.25.20.800268.sqlite Binary files differnew file mode 100644 index 0000000..77a1302 --- /dev/null +++ b/.config/ipython/profile_default/history-corrupt-2024-12-09T13.25.20.800268.sqlite diff --git a/.config/ipython/profile_default/history-corrupt-2024-12-09T13.44.23.964600.sqlite b/.config/ipython/profile_default/history-corrupt-2024-12-09T13.44.23.964600.sqlite Binary files differnew file mode 100644 index 0000000..4736b07 --- /dev/null +++ b/.config/ipython/profile_default/history-corrupt-2024-12-09T13.44.23.964600.sqlite diff --git a/.config/ipython/profile_default/history.sqlite b/.config/ipython/profile_default/history.sqlite Binary files differindex 3f42fc7..294b3ed 100644 --- a/.config/ipython/profile_default/history.sqlite +++ b/.config/ipython/profile_default/history.sqlite diff --git a/.config/keepassxc/keepassxc.ini b/.config/keepassxc/keepassxc.ini index a966b00..4350875 100644 --- a/.config/keepassxc/keepassxc.ini +++ b/.config/keepassxc/keepassxc.ini @@ -12,6 +12,7 @@ CustomProxyLocation= Enabled=false [GUI] +ApplicationTheme=dark CheckForUpdates=false CompactMode=false HidePreviewPanel=true diff --git a/.config/lf/lfrc b/.config/lf/lfrc index daf9b1f..b8bf800 100644 --- a/.config/lf/lfrc +++ b/.config/lf/lfrc @@ -37,6 +37,15 @@ cmd on-cd &{{ echo "$PWD" >> ${XDG_DATA_HOME:-$HOME/.local/share}/cdhist }} +cmd delete ${{ + clear; tput cup $(($(tput lines)/3)); tput bold + set -f + printf "%s\n\t" "$fx" + printf "delete?[y/N] " + read ans + [ $ans = "y" ] && rm -rf -- $fx +}} + cmd extract ${{ # extract the current file with the right command # (xkcd link: https://xkcd.com/1168/) @@ -99,7 +108,7 @@ map <a-s> :source ~/.config/lf/lfrc map <tab> :toggle; down map <backtab> :toggle; up map Z :toggle; up -map <c-j> select_eval "fzf --reverse --header-first --header='Jump to location'" +map <c-j> select_eval "fzf --reverse --query '!/$ ' --header-first --header='Jump to location'" map <backspace> ${{ lf -remote "send $id select \"$(cat ${XDG_DATA_HOME:-$HOME/.local/share}/openhist | fzf --tac --reverse --header-first --header='File History')\"" }} map <c-k> ${{ lf -remote "send $id cd \"$(cat ${XDG_DATA_HOME:-$HOME/.local/share}/cdhist | diff --git a/.config/nvim/templates/_default.tex b/.config/nvim/templates/_default.tex index 397e28e..dbbf53a 100644 --- a/.config/nvim/templates/_default.tex +++ b/.config/nvim/templates/_default.tex @@ -1,7 +1,14 @@ \documentclass{article} +\usepackage[margin=0.5in]{geometry} +\usepackage{libertine} + +\title{<++>} +\author{<++>} \begin{document} +\maketitle + <++> \end{document} diff --git a/.config/nvim/templates/article.tex b/.config/nvim/templates/article.tex deleted file mode 100644 index a821909..0000000 --- a/.config/nvim/templates/article.tex +++ /dev/null @@ -1,11 +0,0 @@ -\documentclass{article} - -\title{<++>} -\author{<++>} - -\begin{document} -\maketitle - -<++> - -\end{document} diff --git a/.config/shell/aliasrc b/.config/shell/aliasrc index 1c4c7fc..e60a16b 100644 --- a/.config/shell/aliasrc +++ b/.config/shell/aliasrc @@ -38,7 +38,7 @@ sudoedit() { } lfcd () { - [ $# -gt 0 ] && [ -z "$1" ] && return 2 + [ $# -gt 0 ] && [ -z "$1" ] && return 3 # cd "$(command lf -print-last-dir "$@")" tmp="$(mktemp)" @@ -47,7 +47,7 @@ lfcd () { dir="$(cat "$tmp")" rm -f "$tmp" [ -d "$dir" ] || return - [ "$dir" != "$PWD" ] || return + [ "$dir" != "$PWD" ] || return 0 cd "$dir" fi } @@ -75,6 +75,7 @@ alias cp='cp -iv' alias mv='mv -iv' alias du='du -h' alias mkdir='mkdir -pv' +alias rmdir='rmdir -v' alias watch='watch -c -n 1 ' alias wget='wget -c' alias fzf='fzf --ansi' diff --git a/.config/shell/bm-dirs b/.config/shell/bm-dirs index 4918a18..93476eb 100644 --- a/.config/shell/bm-dirs +++ b/.config/shell/bm-dirs @@ -27,11 +27,11 @@ vrc ~/Dev/sites/vikas.rocks/content vrl ~/Dev/sites/vikas.rocks/layouts vrp ~/Dev/sites/vikas.rocks/public td ~/Dev/test -gd ~/GDrive/vartak/CS -gf ~/GDrive/vartak/CS/practical-files/sem5 -gp ~/GDrive/vartak/CS/practical-notes/sem5 +gd ~/GDrive/vartak/CS/sem6 +gf ~/GDrive/vartak/CS/sem6/practicals +gp ~/GDrive/vartak/CS/sem6/journal gz ~/GDrive/vartak/CS/practical-zip/sem5 -gn ~/GDrive/vartak/CS/notes/sem5 +gn ~/GDrive/vartak/CS/sem6/notes rs ~/GDrive/vartak/results ph ~/Phone stv ~/Phone/.stversions diff --git a/.config/shell/profile b/.config/shell/profile index 1393c45..46bbb9b 100644 --- a/.config/shell/profile +++ b/.config/shell/profile @@ -51,7 +51,7 @@ export QT_FONT_DPI=112 export SDCV_PAGER='less -R --quit-if-one-screen' export HTTP_HOME='https://www.duckduckgo.com' export CHROME_EXECUTABLE='chromium' -export FZF_DEFAULT_COMMAND="find -L . ! -wholename '*.git*' \( -type d -printf '%p/\n' , ! -type d -print \)" +export FZF_DEFAULT_COMMAND="find -H . ! -wholename '*.git*' \( -type d -printf '%p/\n' , ! -type d -print \)" export FZF_DEFAULT_OPTS=" --history='$XDG_DATA_HOME/fzf/history' --preview='\$PREVIEWER {}' --preview-window=hidden diff --git a/.config/zathura/zathurarc b/.config/zathura/zathurarc index 064e442..6e4930e 100644 --- a/.config/zathura/zathurarc +++ b/.config/zathura/zathurarc @@ -1,6 +1,8 @@ map u scroll half-up map d scroll half-down map D toggle_page_mode +map b toggle_statusbar +map <C-l> nohlsearch map > rotate rotate-cw map < rotate rotate-ccw diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc index 3f7ed30..f482fd2 100644 --- a/.config/zsh/.zshrc +++ b/.config/zsh/.zshrc @@ -34,6 +34,7 @@ setopt histignorespace # ignore lines starting with a space # Enable colors and change prompt: autoload -U colors && colors PS1="%B%{$fg[red]%}[%{$fg[yellow]%}%n%{$fg[green]%}@%{$fg[blue]%}%M %{$fg[magenta]%}%1~%{$fg[red]%}]%{$reset_color%}$%b " +#PS1=$'\n'"%B%{$fg[red]%}[%{$fg[green]%}%?%{$fg[red]%}] %{$fg[yellow]%}%n%{$fg[green]%}@%{$fg[blue]%}%M %{$fg[magenta]%}%~"$'\n'"%{$fg[red]%}>%{$reset_color%}%b " #PS1="%B%{$fg[red]%} %~ >%{$fg[yellow]%}%{$reset_color%}%b " [ -n "$LF_LEVEL" ] && PS1="$PS1(lf: $LF_LEVEL) " @@ -95,7 +96,7 @@ stty -ixon _command_fail_hook() { - [ $? != 1 ] && return + [ $? = 1 ] || return if [ -n "$TMUX" ]; then tmux send-keys C-p elif [ -n "$XDOTOOL_WINDOW_ID" ]; then @@ -186,11 +187,11 @@ _fzf-cd-widget() { cdpath="$(eval "${FZF_CD_COMMAND:-find -L . -type d ! -wholename '*.git*' -printf '%p/\n'}" | FZF_DEFAULT_OPTS="$FZF_DEFAULT_OPTS --reverse --height 40% $FZF_CD_OPTS" fzf | sed 's/"/\\\"/')" - [ -z "$cdpath" ] && { zle reset-prompt; return; } + [ -z "$cdpath" ] && { zle reset-prompt; return; } zle push-line - BUFFER="cd -- \"$cdpath\"" + BUFFER="cd -- \"$cdpath\"" zle reset-prompt - zle accept-line + zle accept-line } zle -N fzf-cd-widget _fzf-cd-widget bindkey '^[c' fzf-cd-widget @@ -231,7 +232,7 @@ _get-help() { cmd=(${=BUFFER}) zle push-line case "${cmd[1]}" in - gh|hugo|npm|git) BUFFER="help ${cmd[1]}-${cmd[2]}" ;; + docker|gh|hugo|npm|git) BUFFER="help ${cmd[1]}-${cmd[2]}" ;; *) BUFFER="get-help $cmd" ;; esac zle accept-line @@ -266,8 +267,8 @@ alias sp='sudo pacman' alias sv='sudo sv' alias mmv='noglob zmv -W' alias s='sudo ' -alias mirror='sudo reflector -f 30 -l 30 --number 10 --verbose --save /etc/pacman.d/mirrorlist' -alias mirrord='sudo reflector --latest 50 --number 20 --sort delay --save /etc/pacman.d/mirrorlist' +alias mirror='sudo reflector -f 30 -l 30 --number 10 --verbose --save /etc/pacman.d/mirrorlist-arch' +alias mirrord='sudo reflector --latest 50 --number 20 --sort delay --save /etc/pacman.d/mirrorlist-arch' alias cleanup='sudo pacman -Rns $(pacman -Qtdq)' alias fixpacman='sudo rm /var/lib/pacman/db.lck' alias gtypist="gtypist $GTYPIST_OPTS" @@ -289,5 +290,5 @@ f() { # alias ssudo='sudofu ' # Load syntax highlighter; should be last. -source "$ZDOTDIR/plugins/fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh" +source "/home/master/.config/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.plugin.zsh" |