Skip to content

Commit

Permalink
bulk changes
Browse files Browse the repository at this point in the history
* sxiv as default app for all images
* bash PS experiments
* tmux R shortcut to rename a window
  • Loading branch information
smoorg committed Feb 23, 2025
1 parent 43c0d6c commit b0bc975
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 3 deletions.
1 change: 1 addition & 0 deletions .bash_aliases
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ alias vnc='remmina'
alias castget='castget -C ~/.config/castget/castget.conf'
alias news='newsboat'
alias burncd='asunder'
alias kreya='WEBKIT_DISABLE_DMABUF_RENDERER=1 kreya'

alias ll="ls -l --color"

Expand Down
46 changes: 46 additions & 0 deletions .bash_params
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,49 @@ paths=$(echo ${sources[*]} | tr ' ' :)

export PATH=$PATH:$paths
source /usr/share/git/git-prompt.sh

# color
txtblk='\e[0;30m' # Black - Regular
txtred='\e[0;31m' # Red
txtgrn='\e[0;32m' # Green
txtylw='\e[0;33m' # Yellow
txtblu='\e[0;34m' # Blue
txtpur='\e[0;35m' # Purple
txtcyn='\e[0;36m' # Cyan
txtwht='\e[0;37m' # White
txtrst='\e[0m' # Text Reset

# bold
bldblk='\e[1;30m' # Black - Bold
bldred='\e[1;31m' # Red
bldgrn='\e[1;32m' # Green
bldylw='\e[1;33m' # Yellow
bldblu='\e[1;34m' # Blue
bldpur='\e[1;35m' # Purple
bldcyn='\e[1;36m' # Cyan
bldwht='\e[1;37m' # White

# underscore
unkblk='\e[4;30m' # Black - Underline
undred='\e[4;31m' # Red
undgrn='\e[4;32m' # Green
undylw='\e[4;33m' # Yellow
undblu='\e[4;34m' # Blue
undpur='\e[4;35m' # Purple
undcyn='\e[4;36m' # Cyan
undwht='\e[4;37m' # White

# background
bgblk='\e[40m' # Black - Background
bgred='\e[41m' # Red
bggrn='\e[42m' # Green
bgylw='\e[43m' # Yellow
bgblu='\e[44m' # Blue
bgpur='\e[45m' # Purple
bgcyn='\e[46m' # Cyan
bgwht='\e[47m' # White

next=""

PS1="\[\033[44;30m\]\u@\h \[\033[41;34m\]$next \[\033[41;30m\]\w \[\033[31;43m\]$next\[\033[43;30m\]\$(__git_ps1) \[\033[0;33m\]$next\[\033[0;37m\]\n\$\[\033[0m\] "

7 changes: 4 additions & 3 deletions .config/mimeapps.list
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ text/markdown=ghostwriter.desktop;nvim.desktop;
application/msword=docx2text;
application/vnd.openxmlformats-officedocument.wordprocessingml.document=docx2text;
application/vnd.openxmlformats-officedocument.wordprocessingml.document=docx2text;
image/png=sxiv.desktop;
x-scheme-handler/tg=userapp-Telegram Desktop-MT5KW1.desktop;org.telegram.desktop.desktop;
x-scheme-handler/tonsite=org.telegram.desktop.desktop;

Expand All @@ -22,13 +21,15 @@ x-scheme-handler/vnc=org.remmina.Remmina.desktop;
x-scheme-handler/remmina=org.remmina.Remmina.desktop;
application/x-remmina=org.remmina.Remmina.desktop;
application/pdf=xreader.desktop;
image/jpeg=sxiv.desktop;
x-scheme-handler/http=firefox.desktop;
x-scheme-handler/https=firefox.desktop;
text/html=firefox.desktop;
x-scheme-handler/msteams=teams.desktop;
x-scheme-handler/tg=org.telegram.desktop.desktop;
x-scheme-handler/jetbrains=jetbrains-toolbox.desktop
image/gif=sxiv.desktop
text/x-shellscript=nvim.desktop
x-scheme-handler/tonsite=org.telegram.desktop.desktop
image/x-sony-arw=sxiv.desktop;
image/jpeg=sxiv.desktop;
image/png=sxiv.desktop;
image/gif=sxiv.desktop
1 change: 1 addition & 0 deletions .config/tmux/tmux.conf
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,6 @@ bind o source-file $XDG_CONFIG_HOME/tmux/3panes

bind X kill-server
bind S command-prompt -p "New Session:" "new-session -A -s '%%'"
bind R command-prompt -p "Rename window:" "rename-window '%%'"

bind-key c new-window -c "#{pane_start_path}"

0 comments on commit b0bc975

Please sign in to comment.