2 Commits

Author SHA1 Message Date
7565c99f12 Update tmux configs
+ Update alias for resetting plasmashell
+ Plugins for tmux as submodules
+ Enable MMB to paste
2022-07-16 10:20:50 -04:00
41dc71d3a4 Update dotfiles
+ Add less options and flags for man pages
+ Adjust tmux copy behavior
+ Allow mouse wheel scrolling while viewing man pages
2022-04-11 23:29:43 -04:00
6 changed files with 42 additions and 4 deletions

View File

@@ -3,7 +3,7 @@ alias python3='python3.9'
alias pip3='python3.9 -m pip'
# Alias to restart plasmashell for Kubuntu Plasma session
alias kapp-plasmashell='sudo pkill plasmashell && plasmashell --replace &> /dev/null &'
alias kapp-plasmashell='sudo pkill plasmashell && sleep 1 && (plasmashell --replace &> /dev/null &)'
# Alias to clear swap
alias kapp-swap='sudo swapoff -a && sudo swapon -a'
# Alias to initialize github user
@@ -46,3 +46,31 @@ fi
# + Execute tmux on start
export TERMINAL='konsole --profile Kapper -e tmux'
# Less colors for man pages
export PAGER=less
default=$(tput sgr0)
red=$(tput setaf 1)
green=$(tput setaf 2)
purple=$(tput setaf 5)
orange=$(tput setaf 9)
# Begin blinking
export LESS_TERMCAP_mb=$red
# Begin bold
export LESS_TERMCAP_md=$orange
# End mode
export LESS_TERMCAP_me=$default
# End standout-mode
export LESS_TERMCAP_se=$default
# Begin standout-mode - info box
export LESS_TERMCAP_so=$purple
# End underline
export LESS_TERMCAP_ue=$default
# Begin underline
export LESS_TERMCAP_us=$green
# Allow mouse wheel movement for less output (manpages, diffs)
export LESS='--mouse --wheel-lines 2'
# Set additional flags for less
# + -R for raw control characters
# + -w to highlight first unread line when jumping N>1 lines down
# + -#2 to shift 2 columns horizontally when right / left arrow is pressed
export LESS="$LESS -R -w -#2"

6
.gitmodules vendored
View File

@@ -31,3 +31,9 @@
[submodule ".tmux/plugins/tpm"]
path = .tmux/plugins/tpm
url = https://github.com/tmux-plugins/tpm
[submodule ".tmux/plugins/tmux-yank"]
path = .tmux/plugins/tmux-yank
url = https://github.com/tmux-plugins/tmux-yank
[submodule ".tmux/plugins/tmux-better-mouse-mode"]
path = .tmux/plugins/tmux-better-mouse-mode
url = https://github.com/NHDaly/tmux-better-mouse-mode

View File

@@ -164,6 +164,3 @@ set -g @scroll-speed-num-lines-per-scroll 2
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run -b '~/.tmux/plugins/tpm/tpm'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
#run '~/.tmux/plugins/tpm/tpm'

View File

@@ -42,6 +42,11 @@
"xbindkeys_show"
control+shift + q
# Disables middle-mouse button
# + If this doesn't work, try to remove '+ Release'
#"echo -n | xsel -n -i; pkill xbindkeys; xdotool click 2; xbindkeys"
# b:2 + Release
# set directly keycode (here control + f with my keyboard)
#"xterm"
# c:41 + m:0x4