Compare commits

...

2 Commits

Author SHA1 Message Date
b264e9d805 nvim: switch to onenord theme 2024-02-24 14:38:57 +01:00
6181681134 Hyprland: try Hyperland before sx 2024-02-24 14:38:31 +01:00
3 changed files with 11 additions and 23 deletions

View File

@ -2,25 +2,12 @@ local function cwd()
return vim.fn.getcwd()
end
local function set_bg()
if vim.o.background == 'dark' then
vim.cmd.colorscheme("nordfox")
else
vim.cmd.colorscheme("dayfox")
end
end
vim.api.nvim_create_autocmd('OptionSet', {
callback = set_bg,
pattern = { 'background' },
})
return {
-- Colorscheme
{
'EdenEast/nightfox.nvim',
'rmehri01/onenord.nvim',
config = function()
set_bg()
vim.cmd.colorscheme("onenord")
end
},

View File

@ -27,5 +27,11 @@ done
export PATH
# start X at login
[[ -z "$DISPLAY" && "$XDG_VTNR" -eq 1 ]] && which /bin/sx > /dev/null && exec sx ~/.xsession
# start X or Hyprland at login
if [[ -z "$DISPLAY" && -z "$WAYLAND_DISPLAY" && "$XDG_VTNR" -eq 1 ]]; then
if which /usr/bin/Hyprland > /dev/null; then
exec /usr/bin/Hyprland
elif which /usr/bin/sx > /dev/null; then
exec /usr/bin/sx ~/.xsession
fi
fi

View File

@ -1,6 +1 @@
# start X at login on first console or otherwise source ~/.profile
if [[ -z "$DISPLAY" && "$XDG_VTNR" -eq 1 ]] && which /bin/sx > /dev/null; then
exec sx ~/.xsession
else
source ~/.profile
fi
source ~/.profile