Tmux 설정
This commit is contained in:
@@ -7,14 +7,14 @@ function node_monitor {
|
|||||||
xprop -id "$node" -f _PICOM_ROUNDED 32c -set _PICOM_ROUNDED 0
|
xprop -id "$node" -f _PICOM_ROUNDED 32c -set _PICOM_ROUNDED 0
|
||||||
else
|
else
|
||||||
bspc query -N -d | while read -r node; do
|
bspc query -N -d | while read -r node; do
|
||||||
xprop -id "$node" -remove _PICOM_ROUNDED
|
xprop -id "$node" -remove _PICOM_ROUNDED
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
elif [ $1 = "remove" ];then
|
elif [ $1 = "remove" ];then
|
||||||
if [ $num = "1" ];then
|
if [ $num = "1" ];then
|
||||||
bspc query -N -d | while read -r node; do
|
bspc query -N -d | while read -r node; do
|
||||||
xprop -id "$node" -f _PICOM_ROUNDED 32c -set _PICOM_ROUNDED 0
|
xprop -id "$node" -f _PICOM_ROUNDED 32c -set _PICOM_ROUNDED 0
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|||||||
@@ -1,20 +1,25 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
function set-props {
|
||||||
|
# Elan input setting
|
||||||
|
xinput set-prop 'Elan Touchpad' 'libinput Tapping Enabled' 1
|
||||||
|
xinput set-prop 'Elan Touchpad' 'libinput Natural Scrolling Enabled' 1
|
||||||
|
xinput set-prop 'Elan TrackPoint' 'libinput Accel Speed' -0.3
|
||||||
|
# Magic Trackpad 2
|
||||||
|
xinput set-prop 'Apple Inc. Magic Trackpad 2' 'libinput Natural Scrolling Enabled' 1
|
||||||
|
xinput set-prop 'Apple Inc. Magic Trackpad 2' 'libinput Accel Speed' 0.5
|
||||||
|
# Macbook Pro Trackpad
|
||||||
|
xinput set-prop "bcm5974" "libinput Natural Scrolling Enabled" 1
|
||||||
|
xinput set-prop "bcm5974" "libinput Accel Speed" 0.5
|
||||||
|
# Logitech G402
|
||||||
|
xinput set-prop 'Logitech Gaming Mouse G402' 'libinput Accel Speed' -0.8
|
||||||
|
# Logitech G102
|
||||||
|
xinput set-prop 'Logitech G102 LIGHTSYNC Gaming Mouse' 'libinput Natural Scrolling Enabled' 1
|
||||||
|
xinput set-prop 'Logitech G102 LIGHTSYNC Gaming Mouse' 'libinput Accel Speed' -0.5
|
||||||
|
}
|
||||||
|
|
||||||
|
set-props
|
||||||
udevadm monitor -u | while read -r _ _ tag _; do
|
udevadm monitor -u | while read -r _ _ tag _; do
|
||||||
if [ "$tag" = "bind" ];then
|
if [ "$tag" = "bind" ];then
|
||||||
# Elan input setting
|
set-props
|
||||||
xinput set-prop 'Elan Touchpad' 'libinput Tapping Enabled' 1
|
|
||||||
xinput set-prop 'Elan Touchpad' 'libinput Natural Scrolling Enabled' 1
|
|
||||||
xinput set-prop 'Elan TrackPoint' 'libinput Accel Speed' -0.3
|
|
||||||
# Magic Trackpad 2
|
|
||||||
xinput set-prop 'Apple Inc. Magic Trackpad 2' 'libinput Natural Scrolling Enabled' 1
|
|
||||||
xinput set-prop 'Apple Inc. Magic Trackpad 2' 'libinput Accel Speed' 0.5
|
|
||||||
# Macbook Pro Trackpad
|
|
||||||
xinput set-prop "bcm5974" "libinput Natural Scrolling Enabled" 1
|
|
||||||
xinput set-prop "bcm5974" "libinput Accel Speed" 0.5
|
|
||||||
# Logitech G402
|
|
||||||
xinput set-prop 'Logitech Gaming Mouse G402' 'libinput Accel Speed' -0.8
|
|
||||||
# Logitech G102
|
|
||||||
xinput set-prop 'Logitech G102 LIGHTSYNC Gaming Mouse' 'libinput Natural Scrolling Enabled' 1
|
|
||||||
xinput set-prop 'Logitech G102 LIGHTSYNC Gaming Mouse' 'libinput Accel Speed' -0.5
|
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|||||||
@@ -13,6 +13,9 @@ Plug 'preservim/nerdtree'
|
|||||||
" NERDTree icon color
|
" NERDTree icon color
|
||||||
Plug 'tiagofumo/vim-nerdtree-syntax-highlight'
|
Plug 'tiagofumo/vim-nerdtree-syntax-highlight'
|
||||||
|
|
||||||
|
" Restore Session
|
||||||
|
Plug 'tpope/vim-obsession'
|
||||||
|
|
||||||
" fuzzy finder
|
" fuzzy finder
|
||||||
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
|
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
|
||||||
Plug 'junegunn/fzf.vim'
|
Plug 'junegunn/fzf.vim'
|
||||||
|
|||||||
@@ -39,6 +39,7 @@ const linux: DotOption = {
|
|||||||
".config/systemd": "linux/systemd",
|
".config/systemd": "linux/systemd",
|
||||||
".config/wallpaper": "wallpaper",
|
".config/wallpaper": "wallpaper",
|
||||||
".config/nvim": "linux/nvim",
|
".config/nvim": "linux/nvim",
|
||||||
|
".tmux.conf": "tmux.conf",
|
||||||
".tmux/themes": "tmux/themes",
|
".tmux/themes": "tmux/themes",
|
||||||
".xinitrc": "linux/xinitrc",
|
".xinitrc": "linux/xinitrc",
|
||||||
".pam_environment": "linux/pam_environment",
|
".pam_environment": "linux/pam_environment",
|
||||||
|
|||||||
29
tmux.conf
Normal file
29
tmux.conf
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
# List of plugins
|
||||||
|
set -g @plugin 'tmux-plugins/tpm'
|
||||||
|
set -g @plugin 'tmux-plugins/tmux-sensible'
|
||||||
|
set -g @plugin 'tmux-plugins/tmux-pain-control'
|
||||||
|
set -g @plugin 'tmux-plugins/tmux-yank'
|
||||||
|
set -g @plugin 'tmux-plugins/tmux-resurrect'
|
||||||
|
set -g @plugin 'tmux-plugins/tmux-continuum'
|
||||||
|
|
||||||
|
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
|
||||||
|
run -b '~/.tmux/plugins/tpm/tpm'
|
||||||
|
|
||||||
|
set -g @themepack 'powerline/block/red'
|
||||||
|
set-option -g @pane_resize "1"
|
||||||
|
set -g @yank_selection_mouse 'clipboard'
|
||||||
|
set -g @continuum-boot 'on'
|
||||||
|
set -g @resurrect-strategy-nvim 'session'
|
||||||
|
set -g @resurrect-capture-pane-contents 'on'
|
||||||
|
|
||||||
|
set -g mouse on
|
||||||
|
set -g default-terminal screen-256color
|
||||||
|
|
||||||
|
source-file ~/.tmux/themes/tomorrow.tmux
|
||||||
|
|
||||||
|
bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xclip -in -selection clipboard'
|
||||||
|
|
||||||
|
|
||||||
|
# bind -n End send-key C-e
|
||||||
|
# bind -n Home send-key C-a
|
||||||
|
|
||||||
Reference in New Issue
Block a user