Compare commits
No commits in common. "e71a31a11dfca2b30ac6e11326d16d5a9aaa004d" and "12e6b362d7ff380ed635d165e58b856587d5758c" have entirely different histories.
e71a31a11d
...
12e6b362d7
|
@ -15,11 +15,15 @@ local keys = {}
|
||||||
local function get_first_nonempty_tag()
|
local function get_first_nonempty_tag()
|
||||||
local screen = awful.screen.focused()
|
local screen = awful.screen.focused()
|
||||||
local tags = screen.tags
|
local tags = screen.tags
|
||||||
|
local first_empty = nil
|
||||||
for _, t in ipairs(tags) do
|
for _, t in ipairs(tags) do
|
||||||
if #t:clients() == 0 then
|
if #t:clients() > 0 then
|
||||||
return t
|
first_empty = nil
|
||||||
|
elseif first_empty == nil then
|
||||||
|
first_empty = t
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
return first_empty
|
||||||
end
|
end
|
||||||
|
|
||||||
local focus_bydirection = function(direction)
|
local focus_bydirection = function(direction)
|
||||||
|
|
|
@ -37,16 +37,15 @@ fi
|
||||||
#################################################
|
#################################################
|
||||||
|
|
||||||
if $NVIM; then
|
if $NVIM; then
|
||||||
dependencies="neovim git unzip fzf cmake gcc make curl wget"
|
dependencies="neovim git npm unzip fzf cmake gcc make curl wget"
|
||||||
if [[ $OS == "NAME=\"Arch Linux\"" ]]; then
|
if [[ $OS == "NAME=\"Arch Linux\"" ]]; then
|
||||||
$SUDO pacman -Sy --needed --noconfirm $dependencies npm
|
$SUDO pacman -Sy --needed --noconfirm $dependencies
|
||||||
elif [[ $OS == "NAME=\"Ubuntu\"" ]]; then
|
elif [[ $OS == "NAME=\"Ubuntu\"" ]]; then
|
||||||
$SUDO apt update
|
$SUDO apt update
|
||||||
$SUDO apt install -y software-properties-common
|
$SUDO apt install -y software-properties-common
|
||||||
$SUDO add-apt-repository ppa:neovim-ppa/unstable -y
|
$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 update
|
||||||
$SUDO apt install -y $dependencies python3-venv nodejs
|
$SUDO apt install -y $dependencies
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ln -s $PWD/nvim $XDG_CONFIG_HOME/nvim
|
ln -s $PWD/nvim $XDG_CONFIG_HOME/nvim
|
||||||
|
|
Loading…
Reference in New Issue