Compare commits

...

3 commits

7 changed files with 56 additions and 36 deletions

View file

@ -80,6 +80,7 @@ return {
buffer = "[buf]",
nvim_lsp = "[lsp]",
copilot = "[cop]",
org = "[org]",
luasnip = "[snip]",
nvim_lsp_signature_help = "[sig]",
nvim_lua = "[lua]",
@ -138,11 +139,15 @@ return {
{
'zbirenbaum/copilot.lua',
event = "InsertEnter",
config = function()
require("copilot").setup({
suggestion = {
enabled = true,
keymap = { accept = "<C-q>" },
auto_trigger = true,
keymap = {
accept = "<C-q>",
},
}
})
end

View file

@ -0,0 +1,7 @@
return {
"folke/zen-mode.nvim",
config = function ()
require("zen-mode").setup()
vim.keymap.set("n", "<leader>zz", vim.cmd.ZenMode)
end
}

View file

@ -38,6 +38,7 @@ format = ' [$symbol($version(-$name) )]($style)'
[conda]
symbol = " "
format = "[$symbol$environment]($style)"
[dart]
symbol = " "
@ -115,7 +116,7 @@ format = ' [$symbol($version(-$name) )]($style)'
[ocaml]
symbol = "🐫 "
format = '[$symbol($version )(\($switch_indicator$switch_name\) )]($style)'
format = ' [$symbol($version )(\($switch_indicator$switch_name\) )]($style)'
[package]
symbol = "󰏗 "

View file

@ -23,3 +23,4 @@ bind -r j select-pane -D
bind -r h select-pane -L
bind -r l select-pane -R
bind-key -r f run-shell "tmux neww ~/.local/share/scripts/tmux-sessionizer.sh"

View file

@ -1,15 +1,17 @@
#!/bin/sh
gpu_mode=$(/usr/bin/envycontrol -q)
if [ "$gpu_mode" = "nvidia" ]; then
if [ -f /usr/bin/envycontrol ]; then
gpu_mode=$(/usr/bin/envycontrol -q)
if [ "$gpu_mode" = "nvidia" ]; then
xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto
xrandr --output HDMI-0 --above eDP-1-1
xrandr --output HDMI-0 --primary
else
else
xrandr --auto
xrandr --output HDMI-1-0 --above eDP-1
xrandr --output HDMI-1-0 --primary
fi
fi
pkill picom

View file

@ -4,7 +4,7 @@
if [[ $# -eq 1 ]]; then
selected=$1
else
selected=$(find ~/Nextcloud ~/.config ~/gits ~/2sem ~/ -mindepth 1 -maxdepth 1 -type d,l | fzf)
selected=$(find -L ~/Nextcloud ~/.config ~/gits ~/2sem ~/ -mindepth 1 -maxdepth 1 -type d,l | fzf)
fi
if [[ -z "$selected" ]]; then

View file

@ -25,8 +25,8 @@ fi
# start some nice programs
if [ -d /etc/X11/xinit/xinitrc.d ] ; then
for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
if [ -d /etc/X11/xinit/xinitrc.d ]; then
for f in /etc/X11/xinit/xinitrc.d/?*.sh; do
[ -x "$f" ] && . "$f"
done
unset f
@ -41,15 +41,19 @@ fi
setxkbmap -layout us,pt
setxkbmap -option grp:win_space_toggle
gpu_mode=$(/usr/bin/envycontrol -q)
if [ "$gpu_mode" = "nvidia" ]; then
# setup monitors (laptop only)
if [ -f /usr/bin/envycontrol ]; then
gpu_mode=$(/usr/bin/envycontrol -q)
if [ "$gpu_mode" = "nvidia" ]; then
xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto
xrandr --output HDMI-0 --above eDP-1-1
xrandr --output HDMI-0 --primary
else
else
xrandr --auto
xrandr --output HDMI-1-0 --above eDP-1
xrandr --output HDMI-1-0 --primary
fi
fi
exec i3