Compare commits

...

2 Commits

Author SHA1 Message Date
Thomas Avé e71a31a11d Improve install script 2023-07-17 16:53:31 +02:00
Thomas Avé e9661f2446 Switch to first empty tag 2023-07-17 16:53:31 +02:00
2 changed files with 6 additions and 9 deletions

View File

@ -15,15 +15,11 @@ local keys = {}
local function get_first_nonempty_tag()
local screen = awful.screen.focused()
local tags = screen.tags
local first_empty = nil
for _, t in ipairs(tags) do
if #t:clients() > 0 then
first_empty = nil
elseif first_empty == nil then
first_empty = t
if #t:clients() == 0 then
return t
end
end
return first_empty
end
local focus_bydirection = function(direction)

View File

@ -37,15 +37,16 @@ fi
#################################################
if $NVIM; then
dependencies="neovim git npm unzip fzf cmake gcc make curl wget"
dependencies="neovim git unzip fzf cmake gcc make curl wget"
if [[ $OS == "NAME=\"Arch Linux\"" ]]; then
$SUDO pacman -Sy --needed --noconfirm $dependencies
$SUDO pacman -Sy --needed --noconfirm $dependencies npm
elif [[ $OS == "NAME=\"Ubuntu\"" ]]; then
$SUDO apt update
$SUDO apt install -y software-properties-common
$SUDO add-apt-repository ppa:neovim-ppa/unstable -y
$SUDO curl -sL https://deb.nodesource.com/setup_14.x | $SUDO bash -
$SUDO apt update
$SUDO apt install -y $dependencies
$SUDO apt install -y $dependencies python3-venv nodejs
fi
ln -s $PWD/nvim $XDG_CONFIG_HOME/nvim