diff --git a/.config/nvim/lua/core/variables.lua b/.config/nvim/lua/core/variables.lua index d525909..82d207a 100644 --- a/.config/nvim/lua/core/variables.lua +++ b/.config/nvim/lua/core/variables.lua @@ -31,8 +31,9 @@ vim.keymap.set("n", "", "cnextzz") vim.keymap.set("n", "", "bp") vim.keymap.set("n", "", "bn") --Undo dir -vim.opt.undodir = os.getenv("HOME") .. "/.vim/undodir" vim.opt.undofile = true +--Backup dir +vim.opt.backup = true --Org mode hide links vim.opt.conceallevel = 2 vim.opt.concealcursor = 'nc' diff --git a/.config/nvim/lua/plugins/ui.lua b/.config/nvim/lua/plugins/ui.lua index 062f150..369bca2 100644 --- a/.config/nvim/lua/plugins/ui.lua +++ b/.config/nvim/lua/plugins/ui.lua @@ -2,8 +2,8 @@ return { { "vimpostor/vim-tpipeline", config = function() - vim.g.tpipeline_restore = 1 - vim.g.tpipeline_autoembed = 1 + vim.g.tpipeline_restore = 0 + vim.g.tpipeline_autoembed = 0 vim.o.laststatus = 0 vim.g.tpipeline_statusline = '%=%l:%c' end diff --git a/.config/tmux/tmux_plugins.conf b/.config/tmux/tmux_plugins.conf index 7da6c6c..00bb099 100644 --- a/.config/tmux/tmux_plugins.conf +++ b/.config/tmux/tmux_plugins.conf @@ -14,7 +14,7 @@ set -g @plugin 'sainnhe/tmux-fzf' #set -g @catppuccin_window_tabs_enabled on set -g @resurrect-strategy-nvim 'session' set -g @resurrect-capture-pane-contents 'on' -set -g @continuum-restore 'on' +#set -g @continuum-restore 'on' set -g @continuum-save-interval '5' #set -g @continuum-boot 'on' #set -g @continuum-boot-options 'alacritty' diff --git a/.config/tmux/tmux_status_bar.conf b/.config/tmux/tmux_status_bar.conf index f912ac8..0d21a5c 100644 --- a/.config/tmux/tmux_status_bar.conf +++ b/.config/tmux/tmux_status_bar.conf @@ -5,20 +5,31 @@ set -g status-bg "#1d2021" set -g @unfocused-fg "#d4be98" set -g @focused-bg "#d4be98" set -g @focused-fg "#1d2021" + # Set status bar position set -g status-position top -# Set status bar style -set -g status-style ' #[bg=#{status-bg},fg=#{@unfocused-fg}] ' - # Set status bar justification set -g status-justify left # Set right side of the status bar -set -g status-right '#[bg=#{status-bg},fg=#{@unfocused-fg}] #S' +set -g status-right '#(cat #{socket_path}-\#{session_id}-vimbridge-R)' + +set -g status-left '[#S] ' + +# Set status bar style +set -g status-style ' #[bg=#{status-bg},fg=#{@unfocused-fg}]' # Set window status format -set -g window-status-format ' #[bg=#{status-bg},fg=#{@unfocused-fg}] #I:#W ' +set -g window-status-format ' #I:#W ' # Set window status format for the current window -set -g window-status-current-format ' #[bg=#{@focused-bg},fg=#{@focused-fg}] #I:#W ' +set -g window-status-current-format '#[bg=#{@focused-bg},fg=#{@focused-fg}] #I:#W ' + + +# AUTO RENAME WINDOW +set-option -g status-interval 1 + +set-option -g automatic-rename on + +set-option -g automatic-rename-format "#{?#{==:#{pane_current_command},zsh},#{b:pane_current_path},#{pane_current_command}}" diff --git a/.local/bin/csgores b/.local/bin/csgores new file mode 100755 index 0000000..1967928 --- /dev/null +++ b/.local/bin/csgores @@ -0,0 +1,2 @@ +#!/bin/sh +nvidia-settings --assign CurrentMetaMode="DP-0: nvidia-auto-select +0+0 {viewportin=1920x1440, AllowGSYNCCompatible=On}, HDMI-0: nvidia-auto-select +1920+0 {rotation=right}" diff --git a/.local/bin/desktopres b/.local/bin/desktopres new file mode 100755 index 0000000..6c42ae8 --- /dev/null +++ b/.local/bin/desktopres @@ -0,0 +1,2 @@ +#!/bin/sh +nvidia-settings --assign CurrentMetaMode="DP-0: nvidia-auto-select +0+0 {AllowGSYNCCompatible=On}, HDMI-0: nvidia-auto-select +2560+0 {rotation=right}" diff --git a/.local/bin/mouserotation.sh b/.local/bin/mouserotation.sh new file mode 100755 index 0000000..d6663e0 --- /dev/null +++ b/.local/bin/mouserotation.sh @@ -0,0 +1,6 @@ +#!/bin/sh +for id in `xinput --list | awk '/Razer Razer DeathAdder V3 Pro .*pointer/ {print $8}' | sed 's/id=\(.*\)/\1/'`; do + notify-send "Applied Mouse Rotation" + xinput set-prop $id "Coordinate Transformation Matrix" 0.9848 0.1736 0 -0.1736 0.9848 0 0 0 1 + sleep 1 +done diff --git a/.local/bin/tms b/.local/bin/tms index 6b9c737..f4c7a5d 100755 --- a/.local/bin/tms +++ b/.local/bin/tms @@ -16,6 +16,7 @@ if [[ -z $selected ]]; then fi selected_name=$(basename "$selected" | tr . _) +selected_name=${selected_name^^} tmux_running=$(pgrep tmux) if [[ -z $TMUX ]] && [[ -z $tmux_running ]]; then