Compare commits

...

3 commits

8 changed files with 33 additions and 10 deletions

View file

@ -31,8 +31,9 @@ vim.keymap.set("n", "<C-n>", "<cmd>cnext<CR>zz")
vim.keymap.set("n", "<A-h>", "<cmd>bp<CR>")
vim.keymap.set("n", "<A-l>", "<cmd>bn<CR>")
--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'

View file

@ -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

View file

@ -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'

View file

@ -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}}"

2
.local/bin/csgores Executable file
View file

@ -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}"

2
.local/bin/desktopres Executable file
View file

@ -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}"

6
.local/bin/mouserotation.sh Executable file
View file

@ -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

View file

@ -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