Last active
October 17, 2021 20:50
-
-
Save ekickx/9a100d980ab8564525612b2273a34e8c to your computer and use it in GitHub Desktop.
test colorscheme vim
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Cek nama wm | |
local nama_wm = vim.fn.system 'wmctrl -m | grep -i name | cut -d " " -f 2' | |
-- Hapus line break just in case | |
nama_wm = nama_wm:gsub("[\r\n]", "") | |
if nama_wm == 'GNOME' then | |
vim.cmd 'colorscheme blue' | |
elseif nama_wm == 'wlroots' then | |
vim.cmd 'colorscheme torte' | |
elseif nama_wm == 'Xfwm4' then | |
vim.cmd 'colorscheme darkblue' | |
elseif nama_wm == 'Openbox' then | |
vim.cmd 'colorscheme delek' | |
elseif nama_wm == 'i3' then | |
vim.cmd 'colorscheme evening' | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment